#43673 [Opn->Csd]: Wrong parameter usage in array_unshift manual

From: Date: Fri, 28 Dec 2007 15:06:45 +0000
Subject: #43673 [Opn->Csd]: Wrong parameter usage in array_unshift manual
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-390@lists.php.net to get a copy of this message
ID: 43673 Updated by: felipe@php.net Reported By: php at typefreak dot nl -Status: Open +Status: Closed Bug Type: Translation problem Operating System: Irrelevant PHP Version: Irrelevant New Comment: It is outdated, when updated it will be fixed. Previous Comments: ------------------------------------------------------------------------ [2007-12-25 15:46:00] php at typefreak dot nl Description: ------------ http://nl2.php.net/array_unshift The page gives the following syntax for this function: int array_unshift ( array $array , mixed $var [, mixed $ ... ] ) However, the first parameter should be given 'by reference', according to the english manual. Correct syntax (added &): int array_unshift ( array &$array , mixed $var [, mixed $ ... ] ) Reproduce code: --------------- Irrelevant Expected result: ---------------- Irrelevant Actual result: -------------- Irrelevant ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43673&edit=1

« previous php.doc.bugs (#390) next »