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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
40 - 8 = ?
Subscribe to this entry?

 
 [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: Thu Apr 18 05:01:28 2024 UTC