#23634 [Opn->Bgs]: APACHE caused a stack fault in module PHP4TS.DLL at 015f:10011915.
| From: | derick@php.net | Date: | Thu, 15 May 2003 08:01:14 +0000 |
| Subject: | #23634 [Opn->Bgs]: APACHE caused a stack fault in module PHP4TS.DLL at 015f:10011915. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-39693@lists.php.net to get a copy of this message | ||
ID: 23634
Updated by: derick@php.net
Reported By: gekko_dev at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: Reproducible crash
Operating System: Win 98 SE/Apache 1.3.20
PHP Version: 4.3.2RC1
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
You're most likely recursively including a file here, which is not
supported (and will crash PHP).
Previous Comments:
------------------------------------------------------------------------
[2003-05-14 23:44:14] gekko_dev at hotmail dot com
APACHE caused a stack fault in module PHP4TS.DLL at 015f:10011915.
Registers:
EAX=013e40f8 CS=015f EIP=10011915 EFLGS=00010282
EBX=0000008d SS=0167 ESP=013e2000 EBP=013e40f8
ECX=100fa4a4 DS=0167 ESI=007d1010 FS=2987
EDX=04e95ae4 ES=0167 EDI=007d1010 GS=0000
Bytes at CS:EIP:
53 55 56 33 f6 57 85 c0 74 02 89 30 8b 44 24 18
Stack dump:
100fa4a4 10011af9 04e95ae4 100fa4a4 000000ad 013e40f8 00000000 007d1010
013e40f0 007d1010 013e40f0 00000001 00000000 00000000 00000000 00000000
Occurs using PHP 4.3.2RC1 & APACHE 1.3.20 on Windows 98 SE.
What's happening at the time:
main.php calls a page function which does this (settings.php):
@include($page . ".htm");
which inturn points to (.htm):
<?php include("news.htm"); ?>
which inturn points to (news.htm):
<?php
news("new",ROOT_DIR);
dynList("new",ROOT_DIR);
?>
Which are (settings.php, included by main.php):
function news($filter, $dir) {
if (is_dir($dir)) {
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
if ((substr($file,0,3) == $filter) && (substr($file,-4) ==
".htm")) { $a[] = $file; }
}
closedir($dh);
}
sort($a);
include($a[0]);
}
}
function dynList($filter, $dir) {
if (is_dir($dir)) {
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
if ((substr($file,0,3) == $filter) && (substr($file,-4) ==
".htm")) {
$file = substr($file,0,-4);
$a[] = "<td><a href=\"main.php?page=" . $file .
"\">" . $file .
"</a></td>\n";
}
}
closedir($dh);
}
sort($a);
print "<table>";
for ($i=0;$i<count($a);$i++) {
if (bcmod($i,3) == 0) { print "<tr>"; }
print $a[$i];
if (bcmod($i,3) == 2) { print "</tr>\n"; }
}
print "</table>";
}
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23634&edit=1