|  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
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Feb 22 23:01:29 2024 UTC