|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #67713 loosen the restrictions on ReflectionClass::newInstanceWithoutConstructor()
Submitted: 2014-07-30 08:39 UTC Modified: 2014-07-30 08:52 UTC
From: Assigned: tyrael (profile)
Status: Closed Package: Reflection related
PHP Version: 5.6.0RC2 OS:
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.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2014-07-30 08:39 UTC]
with the removal of the unserialize O: bypass in now a bunch of userland tools are broken with 5.6, as there is no easy way to instantiate internal classes without calling their constructors.
as explained on the mailing list(,959450,987654#msg-987654) and in the pull request(, the current limitation in the Reflection::newInstanceWithoutConstructor() method is rather arbitrary, so making it less rigid would allow the affected userland libs/tools to have a clear upgrade path.


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-07-30 08:39 UTC]
-Assigned To: +Assigned To: tyrael
 [2014-07-30 08:52 UTC]
-Status: Assigned +Status: Closed
 [2014-07-30 08:52 UTC]
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at

 For Windows:
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat Oct 01 04:05:52 2022 UTC