Anonymous | Login | Signup for a new account | 11-22-2024 04:36 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | |||||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
0004072 | [Quercus] | minor | always | 06-08-10 09:14 | 06-08-10 09:14 | |||||||
Reporter | sblommers | View Status | public | |||||||||
Assigned To | ||||||||||||
Priority | normal | Resolution | open | Platform | Linux | |||||||
Status | new | OS | Ubuntu | |||||||||
Projection | none | OS Version | 10.04 | |||||||||
ETA | none | Fixed in Version | Product Version | 4.0.8 | ||||||||
Product Build | ||||||||||||
Summary | 0004072: unset value does not seem to work correctly | |||||||||||
Description | After unsetting array_key_exists still returns true but should be false. | |||||||||||
Steps To Reproduce |
<?php unset($c); //force $c to be unset $a=&$c; // NULL, but this actually sets $a and $c to the 'same' NULL. $a = 5; unset($c); $a=&$c; unset($c); $a = 5; ?> In the following example, we see an alternate method of testing if a variable is actually set or not: <?php var_dump(array_key_exists('c',get_defined_vars())); // SHOULD BE false unset($c); // actually unset it var_dump(array_key_exists('c',get_defined_vars())); // SHOULD BE false ?> |
|||||||||||
Additional Information | ||||||||||||
Attached Files | ||||||||||||
|
There are no notes attached to this issue. |
Issue History | |||
Date Modified | Username | Field | Change |
06-08-10 09:14 | sblommers | New Issue | |
05-11-11 15:09 | dicr | Issue Monitored: dicr |
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed. 25 unique queries executed. |