#29882 [Csd->Fbk]: isset crashes on arrays
| From: | derick@php.net | Date: | Mon, 30 Aug 2004 06:16:55 +0000 |
| Subject: | #29882 [Csd->Fbk]: isset crashes on arrays | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-65434@lists.php.net to get a copy of this message | ||
ID: 29882
Updated by: derick@php.net
Reported By: tomas_matousek at hotmail dot com
-Status: Closed
+Status: Feedback
Bug Type: Reproducible crash
Operating System: *
PHP Version: 4.3.8, 5.0.1
Assigned To: helly
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2004-08-29 18:57:33] helly@php.net
Correct versions. 4.3.9 and 5.0.2 will be correct.
------------------------------------------------------------------------
[2004-08-29 18:56:39] helly@php.net
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2004-08-29 15:42:57] helly@php.net
Fixed in 5, 4.3 still returns false.
------------------------------------------------------------------------
[2004-08-29 15:27:28] helly@php.net
4.3.8 returns false which is wrong, too.
------------------------------------------------------------------------
[2004-08-29 13:07:12] tomas_matousek at hotmail dot com
Description:
------------
isset applied to operator [] with empty array key crashes
Reproduce code:
---------------
$x = array();
var_dump(isset($x[]));
Expected result:
----------------
bool(false)
Actual result:
--------------
Crash
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29882&edit=1