php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45699 references on new created arrayindices
Submitted: 2008-08-03 13:34 UTC Modified: 2008-08-03 13:55 UTC
From: hanke at werbewolken dot de Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.2.6 OS: *
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: hanke at werbewolken dot de
New email:
PHP Version: OS:

 

 [2008-08-03 13:34 UTC] hanke at werbewolken dot de
Description:
------------
look at Reproduce code, its selfexplaining

Reproduce code:
---------------
//this causes an error (also with brakets), but actually should not:
$ref =& $array[] = $foo;

//must be like: 
$array[] = $foo; 
$ref =& $array[count($array)-1];



Expected result:
----------------
$ref to reference the new arrayindex..

Actual result:
--------------
fatal error.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 10 19:01:34 2025 UTC