php.net |  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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php at typefreak dot nl
New email:
PHP Version: OS:

 

 [2007-12-25 15:46 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-12-28 15:06 UTC] felipe@php.net
It is outdated, when updated it will be fixed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 01:01:28 2024 UTC