From: dco at mail dot ru Operating system: Solaris 10 PHP version: 5.0.5 PHP Bug Type: Scripting Engine problem Bug description: isset returns true for chars past the end of string
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. -- Edit bug report at http://bugs.php.net/?id=34762&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34762&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34762&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34762&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34762&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34762&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34762&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34762&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34762&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34762&r=support Expected behavior: http://bugs.php.net/fix.php?id=34762&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34762&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34762&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34762&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34762&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34762&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34762&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34762&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34762&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34762&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34762&r=mysqlcfg