|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-01-10 23:06 UTC] tony2001@php.net
[2005-01-11 10:26 UTC] dcahh at gmx dot de
[2005-01-11 11:41 UTC] rrichards@php.net
[2005-01-11 13:31 UTC] dcahh at gmx dot de
[2005-01-11 13:40 UTC] rrichards@php.net
[2005-01-11 14:17 UTC] tony2001@php.net
[2005-01-12 09:45 UTC] dcahh at gmx dot de
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 14:00:01 2025 UTC |
Description: ------------ After updating from PHP 5.0.2 to 5.0.3 I had following strange errors (my code is unchanged and is running as is under PHP 5.0.2.): - I have a class CmsXmlFile which extends DomXmlFile. - DomXmlFile extends DomDocument. When instanciating DomXmlFile I actually only call the function load() and have a new domxpath object instanciated. Within the constructor of CmsXmlFile I call on the very first line parent::__construct. And that's where it crashes. I'm not able to echo "Hello"; after that anymore. But *I am able* to echo "Hello"; right after the last line of code in the constructor of DomXmlFile. Apache Log reads (repeated equal entries for every crash): [Wed Dec 22 18:04:34 2004] [notice] Parent: child process exited with status 3221225477 -- Restarting. [Wed Dec 22 18:04:34 2004] [notice] Parent: Created child process 5916 [Wed Dec 22 18:04:34 2004] [notice] Child 5916: Child process is running [Wed Dec 22 18:04:34 2004] [notice] Child 5916: Acquired the start mutex. [Wed Dec 22 18:04:34 2004] [notice] Child 5916: Starting 250 worker threads. Reproduce code: --------------- class CmsXmlFile extends DomXmlFile { public function __construct($sPath) { $this->sPath = $sPath; if (is_file($sPath)) parent::__construct($sPath); [No echo here anymore] echo 'Hello World 1'; [...] class DomXmlFile extends DomDocument { public function __construct($sPath) { parent::__construct(); $this->sPath = $sPath; $this->load($this->sPath); $this->xPath = new domxpath($this); [Echo here works] echo 'Hello World 1'; } [...] Expected result: ---------------- Hello World 1 Hello World 2 Actual result: -------------- Nothing is returned. My browser's page keep's blank. The apache error log is written as stated above.