php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #80910 Bug in source code
Submitted: 2021-03-27 02:34 UTC Modified: 2021-04-04 04:22 UTC
From: biuro at bazodanowe dot pl Assigned:
Status: No Feedback Package: Documentation problem
PHP Version: 8.0.3 OS: Windows 7 x64
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 — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
50 - 16 = ?
Subscribe to this entry?

 
 [2021-03-27 02:34 UTC] biuro at bazodanowe dot pl
Description:
------------
---
From manual page: https://php.net/language.oop5.basic
---
Example #16 Object name resolution

My script not return errors.

Test script:
---------------
namespace NS {
    class ClassName {
    }

$c = new ClassName();
print $c::class;
}

Actual result:
--------------
NS\ClassName

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-03-27 13:33 UTC] danack@php.net
-Status: Open +Status: Feedback
 [2021-03-27 13:33 UTC] danack@php.net
If you're saying it doesn't work for you, that's probably because you're not running PHP 8.

If that's not what you're saying, please clarify your issue, as it doesn't make any sense to me.
 [2021-04-04 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 14:01:30 2024 UTC