php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28378 Apache.exe Application error cause by php
Submitted: 2004-05-12 22:12 UTC Modified: 2004-09-06 14:31 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: Kattana_ at hotmail dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 5.0.0RC2 OS: Windows XP Pro SP1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: Kattana_ at hotmail dot com
New email:
PHP Version: OS:

 

 [2004-05-12 22:12 UTC] Kattana_ at hotmail dot com
Description:
------------
I am running php5rc2 and apache 2.0.49 on winXP sp1. php4 compatability is enabled.

When running the following piece of code i got Application error from apache.exe. the error text is "The instruction at "0x0068d6ff" referenced memory at 0xffffffff. The memory could not be "read"."

The line causeing the error is:
$this->documentElement->appendChild($element);

Reproduce code:
---------------
class Authors extends DomDocument {
function __construct() {
        //has to be called!
        parent::__construct();
}
    
function addAuthor($name,$password,$group) {
$item = $this->createElement('author');
$attr = $item->setAttribute('name',$name);
$attr = $item->setAttribute('password',md5($password));
if($group=='none'){
$this->documentElement->appendChild($item);
}else{
foreach($this->documentElement->childNodes as $element){
if($element->nodeName == 'group' &&
$element->getAttribute('name') == $group){
$element->appendChild($item);
$this->documentElement->appendChild($element);
}
}
}
}
}

Expected result:
----------------
Unknown
The line:
$element->appendChild($item);
wasnt appending the child so i was testing some quick hacks to see what would work. 

Actual result:
--------------
PHP crash and no output.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-05-13 09:14 UTC] derick@php.net
What does "PHP 4 compatibility is enabled" mean?
 [2004-05-21 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2004-05-21 02:05 UTC] Kattana_ at hotmail dot com
It means the directive zend.ze1_compatibility_mode = On.
 [2004-09-06 14:31 UTC] nlopess@php.net
I can't reproduce this.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 07 01:01:34 2025 UTC