ID:               31253
 Updated by:       [EMAIL PROTECTED]
 Reported By:      dcahh at gmx dot de
-Status:           Open
+Status:           Feedback
 Bug Type:         DOM XML related
 Operating System: XP, both Apache 2.0.50 + 2.0.52
 PHP Version:      5.0.3
 New Comment:

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.




Previous Comments:
------------------------------------------------------------------------

[2004-12-22 18:18:16] 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.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=31253&edit=1

Reply via email to