PHP 5.3: Is the use of {} to access string offsets deprecated?
| From: | Christian Schneider | Date: | Mon, 06 Jul 2009 16:00:56 +0000 |
| Subject: | PHP 5.3: Is the use of {} to access string offsets deprecated? | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-44722@lists.php.net to get a copy of this message | ||
The migration guide states that "The use of {} to access string offsets
is deprecated. Use [] instead." but the code in zend_compile.c is
commented out with #ifdef ilia_0.
What's the take on this? Will it be deprecated later or should that part
be removed from the migration document?
Another side-note: The paragraph "The behaviour of functions with
by-reference parameters called by value has changed. Where previously
the function would accept the by-value argument, a warning is now
emitted and all by-ref parameters are set to NULL" was confusing for a
couple of people here and to be honest I'm not sure either what it means ;-)
Regards,
- Chris