philip Mon Apr 11 03:51:04 2005 EDT
Modified files: /phpdoc/en/appendices migration5.xml Log: Added an example illegal use of string offset, closes bug #31301 http://cvs.php.net/diff.php/phpdoc/en/appendices/migration5.xml?r1=1.40&r2=1.41&ty=u Index: phpdoc/en/appendices/migration5.xml diff -u phpdoc/en/appendices/migration5.xml:1.40 phpdoc/en/appendices/migration5.xml:1.41 --- phpdoc/en/appendices/migration5.xml:1.40 Tue Apr 5 21:02:45 2005 +++ phpdoc/en/appendices/migration5.xml Mon Apr 11 03:51:02 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.40 $ --> +<!-- $Revision: 1.41 $ --> <appendix id="migration5"> <title>Migrating from PHP 4 to PHP 5</title> @@ -39,7 +39,8 @@ <listitem> <simpara> Illegal use of string offsets causes <constant>E_ERROR</constant> instead - of <constant>E_WARNING</constant>. + of <constant>E_WARNING</constant>. An example illegal use is: + <literal>$str = 'abc'; unset($str[0]);</literal>. </simpara> </listitem> <listitem>