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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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: Tue Apr 23 06:01:30 2024 UTC