From: gerry dot rodman at ness-usa dot com Operating system: Windows 2003 PHP version: 5CVS-2004-02-12 (dev) PHP Bug Type: XML related Bug description: Working with simplexml crashes apache2
Description: ------------ VERSION INFO: I am using the BETA 4 Release published on 2/2/04. (This was not available in the Version drop down). Also running on Apache 2 Run the code below in IE 6. When it returns, refresh the browser (CTRL-R). It will crash Apache2 everytime. The last version of the code I was working with prior to BETA 4 was a 2/1/04 snapshot. I tested this specific code using that snapshot..no error... but (as I said) it blows up on BETA4. I would like to call your attention to another bug I reported which I believe was first fixed in RC4. This may be worth looking at since it was also a SimpleXML problem. Perhaps fixing this bug is related to the current bug. I am just guessing here. The url for the fixed bug is: http://bugs.php.net/bug.php?id=27115 Thank you, gr Reproduce code: --------------- <? class ThemeInstance { public $name; public function __construct($ti) { $this->name = $ti->name; } } class Holder { public $themeCurrent; public function __construct() { $xml = '<themes><theme><name>blue</name></theme></themes>'; $config = simplexml_load_string($xml); $themeInstance = new ThemeInstance($config->theme); $this->themeCurrent = $themeInstance; } } $h = new Holder(); $x = $h->themeCurrent; echo $x->name; // This statement causes it to blow ?> Expected result: ---------------- I expect it to print the word "blue" and when I refresh the browser (CTRL-R) to print the word "blue" again Actual result: -------------- It prints the word "blue". If I refresh the browser it crashes Apache2. -- Edit bug report at http://bugs.php.net/?id=27237&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27237&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27237&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27237&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27237&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27237&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27237&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27237&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27237&r=support Expected behavior: http://bugs.php.net/fix.php?id=27237&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27237&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27237&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27237&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27237&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27237&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27237&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27237&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27237&r=float
