Doc #60888 [NEW]: Invalid class returns false

From: Date: Wed, 25 Jan 2012 23:50:26 +0000
Subject: Doc #60888 [NEW]: Invalid class returns false
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-7864@lists.php.net to get a copy of this message
From: Operating system: PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:Invalid class returns false 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 bug report at https://bugs.php.net/bug.php?id=60888&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60888&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60888&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60888&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=60888&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60888&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=60888&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=60888&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=60888&r=needscript Try newer version: https://bugs.php.net/fix.php?id=60888&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=60888&r=support Expected behavior: https://bugs.php.net/fix.php?id=60888&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=60888&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=60888&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=60888&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60888&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=60888&r=dst IIS Stability: https://bugs.php.net/fix.php?id=60888&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=60888&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=60888&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=60888&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=60888&r=mysqlcfg

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