php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23634 APACHE caused a stack fault in module PHP4TS.DLL at 015f:10011915.
Submitted: 2003-05-14 23:44 UTC Modified: 2003-05-15 03:01 UTC
From: gekko_dev at hotmail dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4.3.2RC1 OS: Win 98 SE/Apache 1.3.20
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: gekko_dev at hotmail dot com
New email:
PHP Version: OS:

 

 [2003-05-14 23:44 UTC] 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>";
		}
	}


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-15 03:01 UTC] derick@php.net
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). 
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 04 11:01:37 2025 UTC