Re: Re: Problems with the fix for the BC break introduced in 5.4.29 and 5.5.13

From: Date: Thu, 19 Jun 2014 06:07:50 +0000
Subject: Re: Re: Problems with the fix for the BC break introduced in 5.4.29 and 5.5.13
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-74981@lists.php.net to get a copy of this message
Am 19.06.2014 00:22, schrieb Stas Malyshev: > How we can safely make that? For internal classes I'm afraid making them > work safely without ctor would be a challenge - after all, all the code > expects ctor to run. For user classes at least the engine would throw a > fatal error at worst, but for internal classes we'd get segfaults all > over the place. I'm not sure how this can be done safely. The use case I am interested is test doubles. When I create a stub or mock of a class then I do not wants its original functionality to be executed. I just want to have an object that looks like an object of the original class. When the original functionality is not executed, though, how can we run into a segfault when the constructor of an internal class is not executed?

« previous php.internals (#74981) next »