|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-08-18 09:43 UTC] laruence@php.net
-Assigned To:
+Assigned To: laruence
[2015-08-18 09:43 UTC] laruence@php.net
[2015-08-18 09:53 UTC] laruence@php.net
-Package: SimpleXML related
+Package: Scripting Engine problem
[2015-08-18 10:40 UTC] laruence@php.net
-Summary: Apache crash related to simplexml_load_file()
+Summary: Apache crash related to ZEND_SEND_REF
[2015-08-18 10:40 UTC] laruence@php.net
[2015-08-18 14:53 UTC] laruence@php.net
[2015-08-18 14:53 UTC] laruence@php.net
-Status: Assigned
+Status: Closed
[2015-08-18 16:23 UTC] ab@php.net
[2015-09-03 18:10 UTC] ab@php.net
[2016-07-20 11:36 UTC] davey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 12:00:01 2025 UTC |
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