php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74541 Wrong reflection on session_start()
Submitted: 2017-05-04 08:22 UTC Modified: 2017-05-04 08:23 UTC
From: ext4 at asnetworks dot de Assigned:
Status: Closed Package: Reflection related
PHP Version: Irrelevant OS: Linux
Private report: No CVE-ID: None
 [2017-05-04 08:22 UTC] 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) {
}

Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-05-04 08:23 UTC] ext4 at asnetworks dot de
Expected result:

array(1) {
  [0]=>
  object(ReflectionParameter)#2 (1) {
    ["name"]=>
    string(2) "options"
  }
}
 [2017-05-09 03:15 UTC] laruence@php.net
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()
 [2017-05-09 03:15 UTC] laruence@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 10:01:28 2024 UTC