|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[1999-12-23 20:10 UTC] mog at linux dot nu
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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 10:00:01 2025 UTC |
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 anywayI have problem with using setcookie with linux webserver. my first test: setcookie("use","text"); // by this code it's working well with both Windows and Linux (FC6) pathform; The second test: setcookie("use","text",time()+3600); // by this code it's working well with Windows pathform. // But it's have some problem with Linux (FC6)pathform, when I call thge cookie by $_COOKIE["use"] is warmming as "Notice: Undefined index: User in /var/www/html/test.php on line 2" help me plz!