Bug #74541 [Opn]: Wrong reflection on session_start()

From: Date: Thu, 04 May 2017 08:23:59 +0000
Subject: Bug #74541 [Opn]: Wrong reflection on session_start()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-208951@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
 User updated by:    ext4 at asnetworks dot de
 Reported by:        ext4 at asnetworks dot de
 Summary:            Wrong reflection on session_start()
 Status:             Open
 Type:               Bug
 Package:            Reflection related
 Operating System:   Linux
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

Expected result:

array(1) {
  [0]=>
  object(ReflectionParameter)#2 (1) {
    ["name"]=>
    string(2) "options"
  }
}


Previous Comments:
------------------------------------------------------------------------
[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


Thread (3 messages)

« previous php.bugs (#208951) next »