|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesReflectionClass_newInstanceWithoutConstructor (last revision 2011-08-25 13:26 UTC by sebastian@php.net)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-08-25 09:24 UTC] sebastian@php.net
[2011-08-25 09:27 UTC] sebastian@php.net
[2011-08-25 09:39 UTC] sebastian@php.net
[2011-08-25 13:26 UTC] sebastian@php.net
[2011-08-26 07:40 UTC] sebastian@php.net
[2011-08-26 07:41 UTC] sebastian@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: sebastian
[2011-08-26 07:41 UTC] sebastian@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 00:00:02 2025 UTC |
Description: ------------ Libraries such as Doctrine 2 and PHPUnit_MockObject (ab)use the unserialize() function (unserialize(sprintf('O:%d:"%s":0:{}', strlen($name), $name))) to instantiate an object of a class without invoking the constructor. It would be nice if the Reflection API provided a clean API for this use case that does not depend on implementation details of PHP's serializer.