|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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) {
}
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 13 09:00:01 2025 UTC |
Expected result: array(1) { [0]=> object(ReflectionParameter)#2 (1) { ["name"]=> string(2) "options" } }