Bug #66568 [Opn]: Update reflection information for unserialize() function
Edit report at https://bugs.php.net/bug.php?id=66568&edit=1
ID: 66568
User updated by: lisachenko dot it at gmail dot com
Reported by: lisachenko dot it at gmail dot com
-Summary: Update reflection information for unserialize()
method
+Summary: Update reflection information for unserialize()
function
Status: Open
Type: Bug
Package: Reflection related
Operating System: Windows
PHP Version: 5.6.0alpha1
Block user comment: N
Private report: N
New Comment:
Change "method" to "function" in the summary
Previous Comments:
------------------------------------------------------------------------
[2014-01-24 05:55:09] lisachenko dot it at gmail dot com
Description:
------------
For version PHP5.6 additional parameter $consumed was added to the unserialize() method, but
it's marked as required, need to make it optional and add this parameter into official
documentation.
Test script:
---------------
$ /c/php/php-5.6.0alpha1-nts-Win32-VC11-x86/php --rf unserialize
Expected result:
----------------
Function [ <internal:standard> function unserialize ] {
- Parameters [2] {
Parameter #0 [ <required> $variable_representation ]
Parameter #1 [ <optional> &$consumed ]
}
}
Actual result:
--------------
Function [ <internal:standard> function unserialize ] {
- Parameters [2] {
Parameter #0 [ <required> $variable_representation ]
Parameter #1 [ <required> &$consumed ]
}
}
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66568&edit=1
Thread (6 messages)