php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31253 child process exited
Submitted: 2004-12-22 18:18 UTC Modified: 2005-01-12 09:45 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: dcahh at gmx dot de Assigned:
Status: Closed Package: DOM XML related
PHP Version: 5.0.3 OS: XP, both Apache 2.0.50 + 2.0.52
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dcahh at gmx dot de
New email:
PHP Version: OS:

 

 [2004-12-22 18:18 UTC] dcahh at gmx dot de
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-10 23:06 UTC] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try avoid embedding huge scripts into the report.


 [2005-01-11 10:26 UTC] dcahh at gmx dot de
Ok, I downsized my sources to the files obviously affected and put a little .rar archive on my server:
http://vanilla-cms.de/down/

Hope you can download that from there.
Please let me know if no longer needed, so I can delete the file again.

A short note: 
if I call the index.php5 under php 5.0.2 I get "homepage_de_1.xml" printed twice. That's what I would expect. 
If I call it under 5.0.3 I do not get the second echo anymore, but an error message "Warning: basename() expects parameter 1 to be string, unknown given in D:\workdir\WWW\test_vanilla-cms.de\CmsXmlFile.class.php on line 38". Instead of "<h3>homepage_de_1.xml</h3>" I get "<h3><h3><h3><h3><h3><".

Strange.
 [2005-01-11 11:41 UTC] rrichards@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip

should be fixed
 [2005-01-11 13:31 UTC] dcahh at gmx dot de
I'm sorry, I downloaded the windows-zip from the link you provided, but the error is still there. Neither the test code I provided nor my CMS works...

My server signs
Apache/2.0.52 (Win32) PHP/5.0.4-dev Server at lt024 Port 80
 [2005-01-11 13:40 UTC] rrichards@php.net
wait for the next snap to be built. I dont think the one you grabbed has the change in it yet.
 [2005-01-11 14:17 UTC] tony2001@php.net
rrichards@php.net:
tested current 5.0.4-CVS, works fine.
 [2005-01-12 09:45 UTC] dcahh at gmx dot de
Good job, everything runs fine now... :O)

Cheers
Denis
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 15:01:28 2024 UTC