| Anonymous | Login | Signup for a new account | 10-30-2025 17:05 PDT | 
| Main | My View | View Issues | Change Log | Docs | 
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
| 0002934 | [Quercus] | block | always | 09-14-08 11:26 | 09-15-08 16:25 | ||||
| Reporter | koreth | View Status | public | ||||||
| Assigned To | ferg | ||||||||
| Priority | normal | Resolution | fixed | ||||||
| Status | closed | Product Version | 3.2.1 | ||||||
| Summary | 0002934: Modified local array variable value lost when leaving "try" block in compiled mode | ||||||||
| Description | <?php function doit() { $foo = null; try { $foo = array('x' => array()); $foo['x'][] = 1; } catch (Exception $e) { } if ($foo === null) { print "uh oh"; } else { print "whew"; } } doit(); This prints "whew" (the expected result since the array should never be null) in interpreted mode, but "uh oh" in compiled mode. If you put a print_r($foo) at the end of the try block, you see the expected output in both compiled and interpreted modes, but the value is discarded when the try block exits in compiled mode. | ||||||||
| Additional Information | |||||||||
| Attached Files | |||||||||
|  | |||||||||
| Mantis 1.0.0rc3[^]
	Copyright © 2000 - 2005 Mantis Group
	29 total queries executed. 26 unique queries executed. |