From:             [EMAIL PROTECTED]
Operating system: debian linux
PHP version:      4.0.6
PHP Bug Type:     Reproducible crash
Bug description:  setcookie() with one argument segfaults apache

The following simple script:

<?php

setcookie("mycookie");
echo "Cookie set!";

?>

crashes the apache process running it.  (Segfault in error_log)

if I change it to setcookie("mycookie", ""); it works correctly.

Yes, it's a stupid thing to do.  I found it when I upgraded to 4.0.6 (I
believe from 4.0.5, but not sure. I wasn't the one who did the upgrade) and
a braindead script failed.

I'm using the debian php_4.0.6-4 package if this isn't reproducable with a
stock build.

--Dan

-- 
Edit bug report at: http://bugs.php.net/?id=12677&edit=1


-- 
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