|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-05-15 03:01 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 23:00:01 2026 UTC |
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>"; } }