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:

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


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

[2005-01-11 10:26:32] 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-10 23:06:07] [EMAIL PROTECTED]

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.



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

[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