#19087 [NEW]: Invalid page fault in module PHP4TS.DLL
| From: | tony at marston-home dot demon dot co dot uk | Date: | Sat, 24 Aug 2002 19:41:04 +0000 |
| Subject: | #19087 [NEW]: Invalid page fault in module PHP4TS.DLL | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-17773@lists.php.net to get a copy of this message | ||
From: tony@marston-home.demon.co.uk
Operating system: Windows ME
PHP version: 4.2.2
PHP Bug Type: Reproducible crash
Bug description: Invalid page fault in module PHP4TS.DLL
I am running PHP 4.2.2 with Apache 1.3.26 under Windows ME.
When I run a particular PHP script Apache reports an error in PHP4TS.DLL.
Below is the contents of FAULTLOG.TXT:
Date 08/24/2002 Time 16:38
APACHE caused an invalid page fault in module PHP4TS.DLL at
018f:1009c557.
Registers:
EAX=051ad130 CS=018f EIP=1009c557 EFLGS=00010206
EBX=007e9f40 SS=0197 ESP=016ff998 EBP=016ffac4
ECX=00000000 DS=0197 ESI=016ff9a8 FS=454f
EDX=016ff9f4 ES=0197 EDI=007e9f40 GS=0000
Bytes at CS:EIP:
66 ff 48 0a 8b 06 66 8b 48 0a 66 85 c9 75 30 50
Stack dump:
00818e30 012c1b0a 016ff9a8 012c1b59 051ad130 00818ed0 012c1b32 00818e30
00818f70 012c1b32 00818ed0 0080f010 012c1b32 00818f70 00817080 012c1ac4
The particular script I am running is as follows:
<?php
header("Content-type: text/xml\n");
// connect
$connection = mysql_connect("localhost", "tony", "tony")
or die("Could not connect to MySQL");
$db = mysql_select_db('bondmovies', $connection)
or die("Unable to open database 'bondmovies'");
// construct the query
$sql = "SELECT movie.title,movie.year,actor.name
FROM movie,actor
WHERE movie.actor_id=actor.id
ORDER BY movie.year ASC";
$result = mysql_query($sql, $connection)
or die("Error in query: $sql." .mysql_error());
// create xml object
$doc = domxml_new_xmldoc("1.0");
// add root node
$root = $doc->create_element("bondmovies");
$root = $doc->append_child($root);
// iterate through resultset
while($row = mysql_fetch_object($result)){
$movie = $doc->create_element("movie");
$movie = $root->append_child($movie);
foreach ($row as $fieldname => $fieldvalue) {
$child = $doc->create_element($fieldname);
$child = $movie->append_child($child);
$value = $doc->create_text_node($fieldvalue);
$value = $child->append_child($value);
}
} // endwhile
mysql_close($connection);
echo $doc->dump_mem(true);
?>
When I run this inside PHPEdit in debug mode it fails AFTER producing all
the expected output.
I have another version of this script which uses an earlier set of DOMXL
functions (which are supposed to be deprecated) which works OK without
any
error.
--
Edit bug report at http://bugs.php.net/?id=19087&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19087&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19087&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19087&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19087&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19087&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19087&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19087&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19087&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19087&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19087&r=globals