isset gives invalid values on strings
| 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 (profile) | ||
| Status: | Closed | Package: | Scripting Engine problem | ||
| PHP Version: | 5.0.1 | OS: | WinXP | ||
| Private report: | No | CVE-ID: | None | ||
[2004-08-29 13:11 UTC] tomas_matousek at hotmail dot com
Description: ------------ isset applied on a string with negative index returns true. It should return false. Reproduce code: --------------- $x = "bug"; var_dump(isset($x[-1])); Expected result: ---------------- bool(false) Actual result: -------------- bool(true)
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits