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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: biuro at bazodanowe dot pl
New email:
PHP Version: OS:

 

 [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: Sat Apr 20 05:01:27 2024 UTC