php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30046 Apache crashes when $_COOKIE[] is accessed
Submitted: 2004-09-10 04:19 UTC Modified: 2004-09-18 01:00 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: verbert_p at hotmail dot com Assigned:
Status: No Feedback Package: Apache2 related
PHP Version: 5.0.1 OS: Win XP SP2
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: verbert_p at hotmail dot com
New email:
PHP Version: OS:

 

 [2004-09-10 04:19 UTC] verbert_p at hotmail dot com
Description:
------------
When I address $_COOKIE[] instead of $_COOKIE['name'], apache (2.0.50 win32) crashes. this problem does not exist on apache 2.0.48 / php 4.3.4

Reproduce code:
---------------
if (isset ($_COOKIE[])) { ... }

Expected result:
----------------
false / true

Actual result:
--------------
apache crash

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-10 08:51 UTC] ante dot dfg at moj dot net
I can also confirm this bug on Win XP under Apache 1.3.31 using release version of php 5.0.1...

Reproduce code
[PHP]
if(isset($_COOKIE[]))
	print ("Coookie");
[/PHP]

After runing the script Apache 1.3.31 craches...
 [2004-09-10 09:21 UTC] derick@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

And of course, your code is just plain wrong.
 [2004-09-10 09:32 UTC] tony2001@php.net
IIRC this was fixed before, so plz try latest snapshot first.
 [2004-09-18 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 02:01:29 2024 UTC