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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 10:01:33 2025 UTC