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
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: 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