Date: 07/31/02
- Next message: James Cox: "RE: [PHP-DOC] cvs: phpdoc /en/reference/domxml/functions DomXsltStylesheet-process.xml domxml-xslt-stylesheet-doc.xml domxml-xslt-stylesheet-file.xml domxml-xslt-stylesheet.xml"
- Previous message: nohn <email protected>: "[PHP-DOC] #18649 [Opn->Csd]: Documentation for array_diff incomplete"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 15357
Updated by: nohn <email protected>
Reported By: manuzhai <email protected>
-Status: Closed
+Status: Open
Bug Type: Documentation problem
-Operating System: Win XP
+Operating System: Win XP, Compaq Tru64
-PHP Version: 4.1.0
+PHP Version: PHP4-CVS
New Comment:
Reopened this bug.
Manual says:
$stack = array ("orange", "banana", "apple", "raspberry");
$fruit = array_shift ($stack);
Will result in $stack beeing:
Array
(
[0] => banana
[1] => apple
[2] => raspberry
)
and orange will be assigned to $fruit.
In fact Array is:
(
[1] => banana
[2] => apple
[3] => raspberry
)
Don't know if this behaviour is expected and if it's a documentation
bug or if this feature is not expected and it's a real bug.
Previous Comments:
------------------------------------------------------------------------
[2002-02-03 12:56:38] philip <email protected>
Thank you for this report, this has been fixed in CVS and will show up
soon.
------------------------------------------------------------------------
[2002-02-03 12:01:55] manuzhai <email protected>
In the manual entry for array_shift(), this is stated: "This would
result in $fruit having 3 elements left:". But it seems that this
should be "This would result in $stack having 3 elements left:".
BTW: I'm not sure if I should report this kind of problems to this bug
database, but I couldn't think of another way.
Manuzhai
------------------------------------------------------------------------
-- Edit this bug report at http://bugs.php.net/?id=15357&edit=1-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: James Cox: "RE: [PHP-DOC] cvs: phpdoc /en/reference/domxml/functions DomXsltStylesheet-process.xml domxml-xslt-stylesheet-doc.xml domxml-xslt-stylesheet-file.xml domxml-xslt-stylesheet.xml"
- Previous message: nohn <email protected>: "[PHP-DOC] #18649 [Opn->Csd]: Documentation for array_diff incomplete"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

