From:             dcahh at gmx dot de
Operating system: XP, both Apache 2.0.50 + 2.0.52 
PHP version:      5.0.3
PHP Bug Type:     DOM XML related
Bug description:  child process exited

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.

-- 
Edit bug report at http://bugs.php.net/?id=31253&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31253&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=31253&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=31253&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31253&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31253&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31253&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31253&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31253&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31253&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31253&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=31253&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=31253&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31253&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31253&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31253&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31253&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31253&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31253&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=31253&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31253&r=mysqlcfg

Reply via email to