ID: 11854
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Reproducible crash
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

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

Previous Comments:
---------------------------------------------------------------------------

[2001-07-03 07:39:33] [EMAIL PROTECTED]

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>



---------------------------------------------------------------------------



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11854&edit=2


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to