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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ext4 at asnetworks dot de
New email:
PHP Version: OS:

 

 [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

Pull Requests

Pull requests:

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 04:01:38 2025 UTC