com php-src: Merge branch 'PHP-7.0' into PHP-7.1: NEWS ext/phar/phar_object.c ext/phar/tests/bug74383 .phpt
[email protected] (Joe Watkins)
| Newsgroups | php.cvs |
|---|---|
| Message-ID | <[email protected]> |
Commit: 9fe4d2d9cb52903decfb0177615dde35ec244111 Author: Joe Watkins <[email protected]> Mon, 10 Apr 2017 06:28:43 +0100 Parents: bb5535bd38549b0b1b3bc228ad77bd5d1dfaada4 775afd5e2de8091ddbb91373ce23ad2d6a8b3fac Branches: PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9fe4d2d9cb52903decfb0177615dde35ec244111 Log: Merge branch 'PHP-7.0' into PHP-7.1 * PHP-7.0: Fix of Bug #74383: Wrong reflection on Phar::running Bugs: https://bugs.php.net/74383 Changed paths: MM NEWS MM ext/phar/phar_object.c AM ext/phar/tests/bug74383.phpt Diff: diff --cc NEWS index 732a076,0e3d3b1..0dac949 --- a/NEWS +++ b/NEWS @@@ -31,15 -18,12 +31,18 @@@ PH . Fixed bug #74341 (openssl_x509_parse fails to parse ASN.1 UTCTime without seconds). (Moritz Fain) + - phar: - . Fixed reflection on Phar::isRunning parameters. (mhagstrand) ++ . Fixed bug #74383 phar method parameters reflection correction. (mhagstrand) ++ +- Standard: + . Fixed bug #72071 (setcookie allows max-age to be negative). (Craig Duncan) + . Fixed bug #74361 (Compaction in array_rand() violates COW). (Nikita) -13 Apr 2017 PHP 7.0.18 + +13 Apr 2017, PHP 7.1.4 - Core: + . Fixed bug #74149 (static embed SAPI linkage error). (krakjoe) . Fixed bug #73370 (falsely exits with "Out of Memory" when using USE_ZEND_ALLOC=0). (Nikita) . Fixed bug #73960 (Leak with instance method calling static method with diff --cc ext/phar/phar_object.c index 0072038,1799268..ba0b0da --- a/ext/phar/phar_object.c +++ b/ext/phar/phar_object.c @@@ -5134,7 -5190,8 +5134,7 @@@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_web ZEND_ARG_INFO(0, rewrites) ZEND_END_ARG_INFO() - ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_running, 0, 0, 1) -PHAR_ARG_INFO + ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_running, 0, 0, 0) ZEND_ARG_INFO(0, retphar) ZEND_END_ARG_INFO() diff --cc ext/phar/tests/bug74383.phpt index 0000000,366c4fc..4257629 mode 000000,100644..100644 --- a/ext/phar/tests/bug74383.phpt +++ b/ext/phar/tests/bug74383.phpt @@@ -1,0 -1,20 +1,20 @@@ + --TEST-- + Phar: bug #74383: Wrong reflection on Phar::running + --SKIPIF-- + <?php if (!extension_loaded("phar") || !extension_loaded('reflection')) die("skip"); ?> + --FILE-- + <?php + $rc = new ReflectionClass(Phar::class); + $rm = $rc->getMethod("running"); + echo $rm->getNumberOfParameters(); + echo PHP_EOL; + echo $rm->getNumberOfRequiredParameters(); + echo PHP_EOL; + echo (int) $rm->getParameters()[0]->isOptional(); + + ?> + + --EXPECT-- + 1 + 0 -1 ++1