Bug #11040: Array does not return class from get_class()
| From: | geneva1999 at yahoo dot com | Date: | Tue, 22 May 2001 21:15:40 +0000 |
| Subject: | Bug #11040: Array does not return class from get_class() | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-56356@lists.php.net to get a copy of this message | ||
From: geneva1999@yahoo.com
Operating system: Sun Solaris 2.6
PHP version: 4.0.5
PHP Bug Type: *Function Specific
Bug description: Array does not return class from get_class()
$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.
--
Edit Bug report at: http://bugs.php.net/?id=11040&edit=1