From 95aeebf748a3f86a2c71d2dedb08f4fb782ed7d0 Mon Sep 17 00:00:00 2001 From: Yoshinari Takaoka Date: Sun, 5 Nov 2023 10:58:37 +0900 Subject: [PATCH] [PHP 8.3] Calling Phar::setStub() with a resource and a $length is now deprecated. --- appendices/migration83/deprecated.xml | 2 +- reference/phar/Phar/setStub.xml | 31 ++++++++++++++++++++++++--- 2 files changed, 29 insertions(+), 4 deletions(-) diff --git a/appendices/migration83/deprecated.xml b/appendices/migration83/deprecated.xml index 3b271ae26cad..ab65272d82a8 100644 --- a/appendices/migration83/deprecated.xml +++ b/appendices/migration83/deprecated.xml @@ -92,7 +92,7 @@ Calling Phar::setStub with a - $resource and a $length + resource and a $length is now deprecated. Such calls should be replaced by: $phar->setStub(stream_get_contents($resource)); diff --git a/reference/phar/Phar/setStub.xml b/reference/phar/Phar/setStub.xml index 694e52726485..c369e22b4d43 100644 --- a/reference/phar/Phar/setStub.xml +++ b/reference/phar/Phar/setStub.xml @@ -9,8 +9,8 @@ &reftitle.description; public boolPhar::setStub - stringstub - intlen-1 + resourcestringstub + intlength-1 &phar.write; @@ -58,7 +58,7 @@ include 'phar://myphar.phar/somefile.php'; - len + length @@ -87,6 +87,31 @@ include 'phar://myphar.phar/somefile.php'; + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.3.0 + + Calling Phar::setStub with a + resource and a length + is now deprecated. Such calls should be replaced by: + $phar->setStub(stream_get_contents($resource)); + + + + + + + &reftitle.examples;