Date: 03/17/01
- Next message: Jesus M. Castagnetto: "[PHP-DOC] cvs: phpdoc /en/functions datetime.xml"
- Previous message: Jesus M. Castagnetto: "[PHP-DOC] cvs: phpdoc /en/functions nis.xml"
- Next in thread: Jesus M. Castagnetto: "[PHP-DOC] cvs: phpdoc /en/functions array.xml"
- Maybe reply: Jesus M. Castagnetto: "[PHP-DOC] cvs: phpdoc /en/functions array.xml"
- Maybe reply: Jesus M. Castagnetto: "[PHP-DOC] cvs: phpdoc /en/functions array.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
jmcastagnetto Fri Mar 16 21:29:09 2001 EDT
Modified files:
/phpdoc/en/functions array.xml
Log:
arrya_pop/array_shift return NULL when passed empty arrays, bug #8106
Index: phpdoc/en/functions/array.xml
diff -u phpdoc/en/functions/array.xml:1.59 phpdoc/en/functions/array.xml:1.60
--- phpdoc/en/functions/array.xml:1.59 Wed Mar 7 02:39:01 2001
+++ phpdoc/en/functions/array.xml Fri Mar 16 21:29:09 2001
@@ -614,7 +614,9 @@
<para>
<function>Array_pop</function> pops and returns the last value of
the <parameter>array</parameter>, shortening the
- <parameter>array</parameter> by one element.
+ <parameter>array</parameter> by one element.
+ If <param>array</param> is empty (or is not an array),
+ <varname>NULL</varname> will be returned.
</para>
<para>
<example>
@@ -808,6 +810,8 @@
<parameter>array</parameter> off and returns it, shortening the
<parameter>array</parameter> by one element and moving everything
down.
+ If <param>array</param> is empty (or is not an array),
+ <varname>NULL</varname> will be returned.
</para>
<para>
<example>
- Next message: Jesus M. Castagnetto: "[PHP-DOC] cvs: phpdoc /en/functions datetime.xml"
- Previous message: Jesus M. Castagnetto: "[PHP-DOC] cvs: phpdoc /en/functions nis.xml"
- Next in thread: Jesus M. Castagnetto: "[PHP-DOC] cvs: phpdoc /en/functions array.xml"
- Maybe reply: Jesus M. Castagnetto: "[PHP-DOC] cvs: phpdoc /en/functions array.xml"
- Maybe reply: Jesus M. Castagnetto: "[PHP-DOC] cvs: phpdoc /en/functions array.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

