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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nico at hostnet dot nl
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 00:00:02 2026 UTC