PHP 4.0 Bug #3421: segfault when setting long cookies

From: Date: Mon, 07 Feb 2000 16:09:09 +0000
Subject: PHP 4.0 Bug #3421: segfault when setting long cookies
Groups: php.dev 
Request: Send a blank email to php-dev+get-15279@lists.php.net to get a copy of this message
From: philip.day@edt.ericsson.se Operating system: Linux Mandrake 7.0 (2.2.14) PHP version: 4.0 Beta 3 PHP Bug Type: Reproduceable crash Bug description: segfault when setting long cookies this script will crash apache every time. Shorten it by a few chars and the segfault disappears. <?php $string='xxx%3Bs%3A2%3A%2212%22%3Bi%3A13%3Bi%3A1%3Bi%3A17%3Bi%3A1%3Bi%3A20%3Bi%3A1%3Bi%3A11%3Bi%3A1%3Bi%3A14%3Bi%3A1%3Bi%3A15%3Bi%3A1%3Bi%3A16%3Bi%3A1%3Bi%3A21%3Bi%3A1%3Bi%3A24%3Bi%3A1%3Bi%3A23%3Bi%3A1%3Bi%3A26%3Bi%3A1%3B%7D'; SetCookie("test",$string,0); ?> <HTML><HEAD><TITLE>bug</TITLE></HEAD> <body>string length is: <?php print strlen($string); ?> </body></html>

« previous php.dev (#15279) next »