| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2002-03-14 14:36 UTC] sniper@php.net
  | 
    |||||||||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 12:00:01 2025 UTC | 
<?PHP /* reported by Milan Rusek, rusek@ccs.cz */ 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? */ ?>