php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #62057 get_class also provides the namespace
Submitted: 2012-05-18 12:01 UTC Modified: 2013-10-09 06:19 UTC
From: nico at hostnet dot nl Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 5.3.13 OS: not applicable
Private report: No CVE-ID: None
 [2012-05-18 12:01 UTC] nico at hostnet dot nl
Description:
------------
---
From manual page: http://www.php.net/function.get-class#refsect1-function.get-class-changelog
---

The docs are not clear in the fact that the result of calling get_class($obj) on a namespaced object also includes the full namespace


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-10-09 06:19 UTC] krakjoe@php.net
-Status: Open +Status: Not a bug
 [2013-10-09 06:19 UTC] krakjoe@php.net
It is implicit: a class declared in a namespace has the namespace name prefixed to the class name.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 05:01:31 2024 UTC