php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12677 setcookie() with one argument segfaults apache
Submitted: 2001-08-09 15:29 UTC Modified: 2001-08-09 15:33 UTC
From: harik at chaos dot ao dot net Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 4.0.6 OS: debian linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: harik at chaos dot ao dot net
New email:
PHP Version: OS:

 

 [2001-08-09 15:29 UTC] harik at chaos dot ao dot net
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-09 15:33 UTC] rasmus@php.net
Fixed in CVS a while ago
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 09:01:28 2025 UTC