Bug #74541 [Opn->Csd]: Wrong reflection on session_start()
| From: | laruence@php.net | Date: | Tue, 09 May 2017 03:15:45 +0000 |
| Subject: | Bug #74541 [Opn->Csd]: Wrong reflection on session_start() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-209018@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=74541&edit=1
ID: 74541
Updated by: laruence@php.net
Reported by: ext4 at asnetworks dot de
Summary: Wrong reflection on session_start()
-Status: Open
+Status: Closed
Type: Bug
Package: Reflection related
Operating System: Linux
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of fabien.villepinte@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=b39c70b4a7101c2939c49826e1bbd89ae79931f3
Log: Fix Bug #74541 Wrong reflection on session_start()
Previous Comments:
------------------------------------------------------------------------
[2017-05-04 08:23:58] ext4 at asnetworks dot de
Expected result:
array(1) {
[0]=>
object(ReflectionParameter)#2 (1) {
["name"]=>
string(2) "options"
}
}
------------------------------------------------------------------------
[2017-05-04 08:22:22] ext4 at asnetworks dot de
Description:
------------
When instantiating ReflectionFunction on the session_start() function and calling the
getParameters() method, the optional parameter "options" is not returned.
All PHP versions affected.
Test script:
---------------
<?php
$reflection = new ReflectionFunction('session_start');
var_dump($reflection->getParameters());
?>
Expected result:
----------------
array(1) {
[0]=>
object(ReflectionParameter)#2 (1) {
["name"]=>
string(2) "name"
}
}
Actual result:
--------------
array(0) {
}
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74541&edit=1