|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79898 WeakReference constructor should be documented as private
Submitted: 2020-07-25 13:43 UTC Modified: 2021-05-22 12:22 UTC
Avg. Score:1.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: michael dot vorisek at email dot cz Assigned: krakjoe (profile)
Status: Not a bug Package: *General Issues
PHP Version: 7.4.8 OS:
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: michael dot vorisek at email dot cz
New email:
PHP Version: OS:


 [2020-07-25 13:43 UTC] michael dot vorisek at email dot cz
like Closure constructor

is there a git repo to submit PRs like this to?

Test script:

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-07-25 14:19 UTC]
-Type: Documentation Problem +Type: Bug -Package: Documentation problem +Package: *General Issues -Assigned To: +Assigned To: krakjoe
 [2020-07-25 14:19 UTC]
The constructor is not private.

Not sure why it's public and throws an exception when called... @krakjoe?
 [2020-07-26 13:24 UTC]
> Not sure why it's public and throws an exception when called

Perhaps to provide a more useful error message ("use ::create()
 [2021-05-22 12:22 UTC]
-Status: Assigned +Status: Not a bug
 [2021-05-22 12:22 UTC]
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 23 01:01:29 2024 UTC