|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43673 Wrong parameter usage in array_unshift manual
Submitted: 2007-12-25 15:46 UTC Modified: 2007-12-28 15:06 UTC
From: php at typefreak dot nl Assigned:
Status: Closed Package: Translation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: php at typefreak dot nl
New email:
PHP Version: OS:


 [2007-12-25 15:46 UTC] php at typefreak dot nl

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:

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-12-28 15:06 UTC]
It is outdated, when updated it will be fixed.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Oct 28 12:03:36 2021 UTC