php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #60888 Invalid class returns false
Submitted: 2012-01-25 23:50 UTC Modified: 2012-01-27 09:36 UTC
From: adam at adamhahn dot com Assigned: aharvey (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2012-01-25 23:50 UTC] 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

?>


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-01-26 01:23 UTC] phpmpan at mpan dot pl
Same applies to `get_parent_class`. The documentation mentions about returning `FALSE`, but in different cases.
 [2012-01-27 09:36 UTC] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=322841
Log: Fix doc bug #60888 (Invalid class returns false).
 [2012-01-27 09:36 UTC] aharvey@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: aharvey
 [2012-01-27 09:36 UTC] aharvey@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2012-02-13 19:55 UTC] tularis@php.net
Automatic comment from SVN on behalf of tularis
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=323193
Log: fixes bug #60888

--
Provided by christoph.rosse (christoph@rosse.at)
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 20:00:02 2026 UTC