From:             solace at ezmail dot ru
Operating system: WinXP
PHP version:      5.0.0RC2
PHP Bug Type:     Zend Engine 2 problem
Bug description:  New string offset syntax

Description:
------------
Here is an example from ZendEngine-2.0.pdf (from zend.com):

An example of the new functionality:
$str1 = $str2 = ��;
$str1{0} = �a�;
$str2[0] = �a�;
The result will be $str1 being the string �a�

But we still get array, just as for [].

Reproduce code:
---------------
$str1 = "";
$str1{0} = 'a';
var_dump($str1);


Expected result:
----------------
string(1) "a"

Actual result:
--------------
array(1) {
  [0]=>
  string(1) "a"
}


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

Reply via email to