|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16070 Set any variable after error occur..
Submitted: 2002-03-14 10:01 UTC Modified: 2002-03-14 14:36 UTC
Avg. Score:4.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: rusek at ccs dot cz Assigned:
Status: Not a bug Package: Variables related
PHP Version: 4.1.2 OS: Windows, Unix BSD, Linux RedHat
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: rusek at ccs dot cz
New email:
PHP Version: OS:


 [2002-03-14 10:01 UTC] rusek at ccs dot cz
/* reported by Milan Rusek,
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.
	// is failed.

 * Do you have some better solution?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-14 14:36 UTC]
This is not a bug. Please double-check the documentation available
at and the instructions on how to report
a bug at

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 06:01:30 2024 UTC