php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12430 is_subclass_of
Submitted: 2001-07-27 11:59 UTC Modified: 2001-10-21 19:59 UTC
From: mailling at bigfoot dot com Assigned:
Status: Closed Package: Class/Object related
PHP Version: 4.0.6 OS: windows 2000
Private report: No CVE-ID: None
 [2001-07-27 11:59 UTC] mailling at bigfoot dot com
if I have a class like this
class PEAR_Error {
Note the uppercase !


and $a=new PEAR_Error();


if I do is_subclass_of($a,'PEAR_Error'), it won't work
but is_subclass_of($a,'pear_error') will work

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-21 19:59 UTC] sniper@php.net
Works for me just fine with PHP 4.1.0RC1

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 04:01:38 2024 UTC