php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29882 isset crashes on arrays
Submitted: 2004-08-29 13:07 UTC Modified: 2004-08-30 08:31 UTC
From: tomas_matousek at hotmail dot com Assigned: helly (profile)
Status: Closed Package: Reproducible crash
PHP Version: 4.3.8, 5.0.1 OS: *
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tomas_matousek at hotmail dot com
New email:
PHP Version: OS:

 

 [2004-08-29 13:07 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-29 15:27 UTC] helly@php.net
4.3.8 returns false which is wrong, too.
 [2004-08-29 15:42 UTC] helly@php.net
Fixed in 5, 4.3 still returns false.
 [2004-08-29 18:56 UTC] 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 18:57 UTC] helly@php.net
Correct versions. 4.3.9 and 5.0.2 will be correct.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Nov 24 00:01:27 2024 UTC