php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34762 isset returns true for chars past the end of string
Submitted: 2005-10-06 16:55 UTC Modified: 2005-10-14 01:00 UTC
Votes:7
Avg. Score:4.1 ± 0.8
Reproduced:7 of 7 (100.0%)
Same Version:6 (85.7%)
Same OS:5 (71.4%)
From: dco at mail dot ru Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5.0.5 OS: Solaris 10
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dco at mail dot ru
New email:
PHP Version: OS:

 

 [2005-10-06 16:55 UTC] dco at mail dot ru
Description:
------------
I had a problem transferring my project to Solaris 10 from Windows. The thing is that on Solaris 10 the characters past the end of strings are considered set by the isset function.


Reproduce code:
---------------
$sa = 'sa';
if(isset($sa{2}))
  echo 'set';
else 
  echo 'not set';


Expected result:
----------------
I expect to see "not set".

Actual result:
--------------
I see "set" on Solaris 10,
"not set" on windows.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-06 18:09 UTC] marcot@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip


 [2005-10-14 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 03:01:33 2024 UTC