From: jpolaino at infonos dot com
Operating system: Win Me
PHP version: 4.3.3
PHP Bug Type: Unknown/Other Function
Bug description: Error PHP4TS.DLL

Description:
------------
I have a application with 15 files and 6000 lines of code instaled on
server with PHP 4.2.3
This runs O.K.
I just installed PHP 4.3.3 in my PC for I+D.
Now I have several errors in many lines of code.
The error says "Php provocó un error en PHP4TS.DLL. Php se cerrará"
I press the option "Debug" and then Microsoft Visual C++ give the message
"Unhandled exception in php.exe (PHP4TS.DLL): 0xC00000FD: Stack
Overflow".
This ocurrs some times when I use the function isset() but I can not
reproduce the fail: when I try to make a short file with the code ¡¡this
run!!
This error ocurrs too when I use the function eregi() in

eregi("^[_\.0-9a-z-]+([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}$", $Mail);

when $Mail value is any value with two points "..", but when I try to make
a short file (see below) this run OK.

Please Can any one help me?

Thanks


Reproduce code:
---------------
<?php

if (isset($Mail))
{
if (eregi("^[_\.0-9a-z-]+([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}$", $Mail))
$Msg = "El mail <b>'$Mail'</b> es correcto<hr>";
else
$Msg = "<b>ERROR:</b> El mail <b>'$Mail'</b> es incorrecto<hr>";
}
echo " <html><head></head><body>
$Msg
<form method=post>
Mail <input type=text name=Mail>
<input type=submit value=Send>
</form></body></head>";

?>


--
Edit bug report at [url]http://bugs.php.net/?id=25513&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=25513&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=25513&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=25513&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=25513&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=25513&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=25513&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=25513&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=25513&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=25513&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=25513&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=25513&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=25513&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=25513&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=25513&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=25513&r=gnused[/url]