ID: 16070 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: Variables related Operating System: Windows, Unix BSD, Linux RedHat PHP Version: 4.1.2 New Comment:
This is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Previous Comments: ------------------------------------------------------------------------ [2002-03-14 10:01:14] [EMAIL PROTECTED] <?PHP /* reported by Milan Rusek, [EMAIL PROTECTED] */ echo 'Before: '.(isset($retval)?'set':'not set'); echo "\n"; $retval = @unserialize('blablabla'); // FAIL !!!! // variable $retval it should not be set!! echo 'After : '.(isset($retval)?'set':'not set'); echo "\n"; echo "It must be same results!\n"; /* ---------------------------------------------- * I have found only one solution, but I mean * that it is very small powerful: $retval = @unserialize('blablabla'); if (serialize($retval) == 'blablabla') { // is ok. } else { // is failed. } * Do you have some better solution? */ ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16070&edit=1
