diff options
author | Dmitry Stogov <dmitry@zend.com> | 2017-10-17 11:50:34 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2017-10-17 11:50:34 +0300 |
commit | da781a5ac2cb9d2f983ef9fe070900664db12c67 (patch) | |
tree | 222f47248e058ca669485bc332933c39fc1ca558 /ext/gmp | |
parent | 3e195d4d168354a698799beeb2fb300a507a82aa (diff) | |
download | php-git-da781a5ac2cb9d2f983ef9fe070900664db12c67.tar.gz |
Allow internal functions to return values by reference (this was disabled in implementation of DO_ICALL, but enabled in DO_FCALL).
However, don't require internal functions returning by reference to return a reference.
Mark unserialize() as returning by reference and remove unwrap_reference hack, to allow proper returning of self referenced arrays using a reference.
Currently unserialize() is the only internal function that may return a reference.
Diffstat (limited to 'ext/gmp')
-rw-r--r-- | ext/gmp/tests/unserialize_with_reference.phpt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/gmp/tests/unserialize_with_reference.phpt b/ext/gmp/tests/unserialize_with_reference.phpt index b733430a38..e1f1580703 100644 --- a/ext/gmp/tests/unserialize_with_reference.phpt +++ b/ext/gmp/tests/unserialize_with_reference.phpt @@ -2,7 +2,7 @@ Unserialize GMP instance with internal reference to itself --FILE-- <?php -$s = 'C:3:"GMP":23:{s:1:"2";a:1:{i:46;R:1;}}'; +$s = 'C:3:"GMP":23:{s:1:"2";a:1:{i:46;r:1;}}'; var_dump(unserialize($s)); ?> --EXPECT-- |