colder Mon Apr 30 22:26:39 2007 UTC
Modified files:
/phpdoc/en/reference/array/functions list.xml
Log:
Fix #41205 (As of PHP 5.2.2 list doesn't work on strings)
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/array/functions/list.xml?r1=1.15&r2=1.16&diff_format=u
Index: phpdoc/en/reference/array/functions/list.xml
diff -u phpdoc/en/reference/array/functions/list.xml:1.15
phpdoc/en/reference/array/functions/list.xml:1.16
--- phpdoc/en/reference/array/functions/list.xml:1.15 Tue Oct 31 11:24:01 2006
+++ phpdoc/en/reference/array/functions/list.xml Mon Apr 30 22:26:39 2007
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.15 $ -->
+<!-- $Revision: 1.16 $ -->
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
<refentry id="function.list">
<refnamediv>
@@ -45,6 +45,9 @@
list( , , $power) = $info;
echo "I need $power!\n";
+// list() doesn't work with strings
+list($bar) = "abcde";
+var_dump($bar); // NULL
?>
]]>
</programlisting>