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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
34 + 23 = ?
Subscribe to this entry?

 
 [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: Thu Jun 13 08:01:30 2024 UTC