#29882 [Csd]: isset crashes on arrays
| From: | helly@php.net | Date: | Sun, 29 Aug 2004 16:57:33 +0000 |
| Subject: | #29882 [Csd]: isset crashes on arrays | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-65420@lists.php.net to get a copy of this message | ||
ID: 29882
Updated by: helly@php.net
Reported By: tomas_matousek at hotmail dot com
Status: Closed
Bug Type: Reproducible crash
Operating System: *
-PHP Version: 4.3.9, 5.0.1
+PHP Version: 4.3.8, 5.0.1
Assigned To: helly
New Comment:
Correct versions. 4.3.9 and 5.0.2 will be correct.
Previous Comments:
------------------------------------------------------------------------
[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