Bug #3034 Updated: SetCookie bug
| From: | Bug Database | Date: | Fri, 24 Dec 1999 20:20:45 +0000 |
| Subject: | Bug #3034 Updated: SetCookie bug | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-14019@lists.php.net to get a copy of this message | ||
ID: 3034
User Update by: mog@linux.nu
Old-Status: Analyzed
Status: Open
Bug Type: Reproduceable crash
Description: SetCookie bug
That's strange, i'm quite sure that it crashed with the code i sent.
However, it didn't now, and, this code with 71 "%" char's (problably crashes
with less) crashes php.
It crashes even if the header was already sent.
<?PHP
$text = "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%";
SetCookie("cookie",$text); // This is where PHP (3.11|4b3) crashes
?>
---- _old_ report ----
This code crashes php-3.11 win32 cgi and php4-b3
In win32 cgi mode this brings up a "Access Violation" box.
web server is Apache/1.3.9-win32.
<?PHP
$text = "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%";
SetCookie("cookie",$text,0); // This is wher PHP (3.11|4b3) crashes
?>
php3.ini is unmodified except for modules stuff that wasn't working anyway
Full Bug description available at: http://bugs.php.net/?id=3034