#23634 [NEW]: APACHE caused a stack fault in module PHP4TS.DLL at 015f:10011915.
| From: | gekko_dev at hotmail dot com | Date: | Thu, 15 May 2003 04:44:14 +0000 |
| Subject: | #23634 [NEW]: APACHE caused a stack fault in module PHP4TS.DLL at 015f:10011915. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-39683@lists.php.net to get a copy of this message | ||
From: gekko_dev at hotmail dot com
Operating system: Win 98 SE/Apache 1.3.20
PHP version: 4.3.2RC1
PHP Bug Type: Reproducible crash
Bug description: APACHE caused a stack fault in module PHP4TS.DLL at 015f:10011915.
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 bug report at http://bugs.php.net/?id=23634&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23634&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23634&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23634&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23634&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23634&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23634&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23634&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23634&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23634&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23634&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23634&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23634&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23634&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23634&r=gnused