php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1466 join() uses ghost elements of an array
Submitted: 1999-05-29 08:20 UTC Modified: 1999-05-29 11:18 UTC
From: bakksjo at stud dot ntnu dot no Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0.6 OS: Linux
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: bakksjo at stud dot ntnu dot no
New email:
PHP Version: OS:

 

 [1999-05-29 08:20 UTC] bakksjo at stud dot ntnu dot no
The following code fragment:
--------------------
$array[0] = "something";
$array[1] = "strange";
$array[2] = "here";

unset($array[1]);

echo "count: " . count($array) . "<br>\n";
echo join($array,":");
--------------------

Produces the following output:
--------------------
count: 2
something::here
--------------------

There shouldn't be more than one colon, right? Or how should I otherwise get completely rid of an element in an array?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-05-29 11:18 UTC] thies at cvs dot php dot net
fixed in > 3.0.7 

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 07:01:33 2025 UTC