Bug #70288 [NEW]: Apache crash related to simplexml_load_file()

From: Date: Tue, 18 Aug 2015 08:01:50 +0000
Subject: Bug #70288 [NEW]: Apache crash related to simplexml_load_file()
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195263@lists.php.net to get a copy of this message
From: bensor987 at neuf dot fr Operating system: Windows 7 Pro PHP version: 7.0Git-2015-08-18 (snap) Package: SimpleXML related Bug Type: Bug Bug description:Apache crash related to simplexml_load_file() Description: ------------ I've managed to locate this very tricky bug. It makes my Apache crash. It happens when : - Using simplexml_load_file() - Using a function, where the SimpleXML arg is "referenced" It doesn't happen when I don't reference the arg or if I use simplexml_load_string(). See the test script for example. I'm testing on snap "php-master-ts-windows-vc14-x86-r531fa70" (can't test on a more recent snap, Apache crashes on service startup), with Apache/2.4.12 (Win32) Test script: --------------- ==segfault.xml== <Menu> <Node title=""> </Node> </Menu> ==PHP script== <?php $xml = simplexml_load_file('segfault.xml'); function test(&$xml) { var_dump($xml); } test($xml->Node); Expected result: ---------------- Dump of the SimpleXML object Actual result: -------------- Crash -- Edit bug report at https://bugs.php.net/bug.php?id=70288&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70288&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70288&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70288&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=70288&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=70288&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=70288&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=70288&r=needscript Try newer version: https://bugs.php.net/fix.php?id=70288&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=70288&r=support Expected behavior: https://bugs.php.net/fix.php?id=70288&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=70288&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=70288&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=70288&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70288&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=70288&r=dst IIS Stability: https://bugs.php.net/fix.php?id=70288&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=70288&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=70288&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=70288&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=70288&r=mysqlcfg

« previous php.bugs (#195263) next »