|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
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: Tue Nov 30 12:03:35 2021 UTC