Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
2259 | minor | always | 12-15-07 13:30 | 05-12-08 16:47 | |
|
|||||
Reporter: | koreth | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.1.4 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.2.0 | ||
|
|||||
Summary: | 0002259: Can't unset a global from inside a function | ||||
Description: |
<?php $TESTVAR = 'abc'; function rm1() { unset($GLOBALS['TESTVAR']); } function rm2() { global $TESTVAR; unset($TESTVAR); } rm1(); print $TESTVAR . "\n"; rm2(); print $TESTVAR . "\n"; unset($TESTVAR); print $TESTVAR . "\n"; Vanilla PHP prints three blank lines. Quercus (both interpreted and compiled mode) prints "abc" twice, then a blank line -- the unset() calls inside the functions aren't working, but the global-scope one is. |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|