From:             php-bugs-2004 at ryandesign dot com
Operating system: N/A
PHP version:      5.0.2
PHP Bug Type:     Strings related
Bug description:  Issue E_STRICT errors for deprecated array notation for 
string char access

Description:
------------
The E_STRICT option purports to issue warnings when 
using deprecated features. I would like to see warnings 
issued when using the array notation of accessing 
characters in a string, since this has been deprecated 
since PHP 4 and can cause problems ( as seen in
http://bugs.php.net/bug.php?id=29271 )

Reproduce code:
---------------
$test = 'blah';

$test[2] = 'x'; // <-- would like this to issue
                //     an error of type 2048

Expected result:
----------------
$test == 'blxh' and an error that the array notation is 
deprecated, use {} notation instead

Actual result:
--------------
$test == 'blxh' and no error of any kind

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

Reply via email to