|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-09-15 01:42 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 11:00:01 2025 UTC |
Description: ------------ In php 5.0.4 and prior, this code snippet worked. In php 5.0.5, it now returns an error. A work around is to change the code to: $obj = unserialize($data); echo array_pop($obj); Reproduce code: --------------- <? $data = serialize(array('test', 'test2')); echo array_pop(unserialize($data)); ?> Expected result: ---------------- test2 Actual result: -------------- Fatal error: Only variables can be passed by reference in /var/www/bountysource/public/test.php on line 4