Doc #60888 [Opn->Csd]: Invalid class returns false
| From: | aharvey@php.net | Date: | Fri, 27 Jan 2012 09:36:20 +0000 |
| Subject: | Doc #60888 [Opn->Csd]: Invalid class returns false | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-7872@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
Updated by: aharvey@php.net
Reported by: adam at adamhahn dot com
Summary: Invalid class returns false
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: aharvey
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2012-01-27 09:36:00] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&revision=322841
Log: Fix doc bug #60888 (Invalid class returns false).
------------------------------------------------------------------------
[2012-01-26 01:23:35] phpmpan at mpan dot pl
Same applies to
get_parent_class. The documentation mentions about returning
FALSE, but in different cases.
------------------------------------------------------------------------
[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