From:             jsgoupil at lookstrike dot com
Operating system: WinXP
PHP version:      5.0.0RC3
PHP Bug Type:     Scripting Engine problem
Bug description:  Error on isset char table

Description:
------------
When I check an isset of a variable that contain text I receive an error
ONLY when i check the last+1 char...

NOTE: Working properly on php4.3.6

Reproduce code:
---------------
<?php
$test = "s";
if(isset($test[1]))
        echo "OK";
else
        echo "ERROR";
?>

Expected result:
----------------
It supposed to return "ERROR" because $test[1] is not existing (in real,
there is a \0 in C++ but in php, we are not supposed to see it).
(working fine in php4.3.6)

Actual result:
--------------
We currently get "OK"
If we do an isset of $test[2], we get an error...
Obviously, php check the \0

-- 
Edit bug report at http://bugs.php.net/?id=28862&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28862&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28862&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28862&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28862&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28862&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28862&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28862&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28862&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28862&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28862&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28862&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28862&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28862&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28862&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28862&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28862&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28862&r=float

Reply via email to