Doc #60888 [Com]: Invalid class returns false

From: Date: Thu, 26 Jan 2012 01:23:35 +0000
Subject: Doc #60888 [Com]: Invalid class returns false
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-7865@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60888&edit=1 ID: 60888 Comment by: phpmpan at mpan dot pl Reported by: adam at adamhahn dot com Summary: Invalid class returns false Status: Open Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Same applies to get_parent_class. The documentation mentions about returning FALSE, but in different cases. Previous Comments: ------------------------------------------------------------------------ [2012-01-25 23:50:25] adam at adamhahn dot com Description: ------------ --- From manual page: http://www.php.net/function.get-class-vars#refsect1-function.get-class-vars-returnvalues --- the documentation should report that in the event that the function 'get_class_vars' is not passed a valid class name, then the function returns false. Test script: --------------- <?php get_class_vars('nonexistantclass'); // returns false get_class_vars('stdClass'); // returns empty array ?> ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60888&edit=1

« previous php.doc.bugs (#7865) next »