|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29883 isset gives invalid values on strings
Submitted: 2004-08-29 13:11 UTC Modified: 2004-12-01 15:03 UTC
From: tomas_matousek at hotmail dot com Assigned: andi
Status: Closed Package: Scripting Engine problem
PHP Version: 5.0.1 OS: WinXP
Private report: No CVE-ID:
 [2004-08-29 13:11 UTC] tomas_matousek at hotmail dot com
isset applied on a string with negative index returns true.
It should return false.

Reproduce code:
$x = "bug";

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-29 15:11 UTC]
Andi, please, review & commit these two patches:

The bug really affects BC issues and should have been fixed long ago IMO.
 [2004-12-01 15:03 UTC]
Fixed in CVS HEAD and PHP_5_0.
PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Sun Nov 29 12:01:29 2015 UTC