php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11040 Array does not return class from get_class()
Submitted: 2001-05-22 23:15 UTC Modified: 2001-05-22 23:17 UTC
From: geneva1999 at yahoo dot com Assigned:
Status: Not a bug Package: *Function Specific
PHP Version: 4.0.5 OS: Sun Solaris 2.6
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: geneva1999 at yahoo dot com
New email:
PHP Version: OS:

 

 [2001-05-22 23:15 UTC] geneva1999 at yahoo dot com
$arr = Array();
$arr[0] = 5;
$arr[1] = 3;

$cl = get_class($arr);



if($cl == "") print "error: get_class returned nothing";

//  the if statment is true, and error is printed.
//   I tried this on a Linux 2.2 server and $cl = "Array"

// BUT:  If you do this:"
print $arr;
//  "Array" will display in the browser.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 07:01:28 2024 UTC