. Fixed bug #74341 (openssl_x509_parse fails to parse ASN.1 UTCTime without
seconds). (Moritz Fain)
- . Fixed reflection on Phar::isRunning parameters. (mhagstrand)
+ - phar:
++ . 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
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()
--- /dev/null
-1
+ --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