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>
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Andrei Zmievski
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Egon Schmid
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Jim Winstead
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Jim Winstead
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Jim Winstead
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Sebastian Bergmann
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Damien Seguy
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Andrei Zmievski
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Jesus M. Castagnetto
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Jesus M. Castagnetto
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Jesus M. Castagnetto
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Jesus M. Castagnetto
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Hartmut Holzgraefe
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Stig Bakken
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Damien Seguy
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Jesus M. Castagnetto
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Damien Seguy
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Daniel Beckham
- [PHP-DOC] cvs: phpdoc /en/functions array.xml Egon Schmid
- Re: [PHP-DOC] cvs: phpdoc /en/functions arra... Daniel Beckham
