|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17776 arrays incorrectly assigned "NULL" type
Submitted: 2002-06-15 16:59 UTC Modified: 2002-06-15 23:14 UTC
From: adam at adeptsoftware dot com Assigned:
Status: Not a bug Package: Arrays related
PHP Version: 4.1.2 OS: winxp
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.
Block user comment
Status: Assign to:
Bug Type:
From: adam at adeptsoftware dot com
New email:
PHP Version: OS:


 [2002-06-15 16:59 UTC] adam at adeptsoftware dot com
$Array = array();
gettype($Array) is NULL

$Array = (array)array();
gettype($Array) is NULL

$Array = array();
settype($Array, "array");
gettype($Array) is "array" finally


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-15 19:57 UTC]
Can not reproduce with latest CVS. Please try PHP 4.2.1
Here's the script I used:


  $Array = array();
  echo gettype($Array);


 [2002-06-15 23:14 UTC] adam at adeptsoftware dot com
Hmm it works now.  There appear to be other factors causing this.  I will see if I can figure it out.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Sep 16 23:03:39 2021 UTC