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
 [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-2019 The PHP Group
All rights reserved.
Last updated: Fri Dec 13 20:01:23 2019 UTC