php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11854 PHP caused a stack fault in module PHP4TS.DLL at 0177:100a13c6.
Submitted: 2001-07-03 07:39 UTC Modified: 2001-07-03 07:42 UTC
From: toxic_ at hotmail dot com Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 4.0.5 OS: Windows 98 (Not SE)
Private report: No CVE-ID: None
 [2001-07-03 07:39 UTC] toxic_ at hotmail dot com
PHP caused a stack fault in module PHP4TS.DLL at 0177:100a13c6.

Was coding a Mail script - Was trying to call the same function within a function (to draw it out as what to do with the vars on the page). 
Overview: Variables Coming in -> Mail the Data || No Variables -> Draw the form

Running PHPTriad 2.11 -> PHP 4.0.5 & Apache(win32) 1.3.14

<?
// Filename : blah.php
function snail () {
	if (isset($sub_mail) || isset($body_mail) || isset($name_mail) || isset($from_mail)) {
	echo "Your Mail has Been Sent. Thank you for your response.";
} else {
	echo "<FORM METHOD='POST' ACTION='".snail()."'>";
	echo "Email: <INPUT TYPE='text' NAME='from_mail'>";
	echo "<INPUT type='submit'>";
	echo "</FORM>";
}
}
?>

<?
require ("blah.php");
?>
<HTML>
<BODY topmargin=1 leftmargin=3 BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#663366" ALINK VLINK>
<?= snail (); ?>
</BODY>
</HTML>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-03 07:42 UTC] derick@php.net
There is no way to prevent PHP from doing this. Infinite recursion is not supported, and the performance hit to check for this would be too high, and there is a possbility that this doesn't work even.

Derick
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 06:01:30 2024 UTC