Re: Re: Problems with the fix for the BC break introduced in 5.4.29 and 5.5.13
| From: | Marco Pivetta | Date: | Mon, 30 Jun 2014 16:34:22 +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 4 5 6 7 8 9 10 11 12 13 14 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-75146@lists.php.net to get a copy of this message | ||
On 30 June 2014 17:55, Julien Pauli <jpauli@php.net> wrote:
> Perhaps anonymous classes ?
> Or just to know , why can't you create a class that extends the one
> you want, and write an empty constructor into it ?
> That way you'd be able to create an object using "new" , and redefine
> the methods you want to make them return what you want. am I wrong ?
>
That's what I've been doing so far, but the method doesn't work with:
- final constructors
- APIs that rely on reflection-ish logic (
get_class())
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/