php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15074 unset does not work on an array
Submitted: 2002-01-16 14:14 UTC Modified: 2002-01-16 14:17 UTC
From: wilfried dot trinkl at maxmobil dot at Assigned:
Status: Not a bug Package: Arrays related
PHP Version: 4.1.0 OS: Sun Solaris 8
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: wilfried dot trinkl at maxmobil dot at
New email:
PHP Version: OS:

 

 [2002-01-16 14:14 UTC] wilfried dot trinkl at maxmobil dot at
When I use this statement:
 unset($testarray[]);

Output:
Fatal error: Cannot use [] for unsetting in test.php on line 101

This already worked on PHP4.0.6--

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-16 14:17 UTC] rasmus@php.net
lose the []'s
unset works fine on arrays.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 15:01:28 2024 UTC