Re: [patch] Late static bindings (LSB)
| From: | Michael Lively | Date: | Sun, 16 Sep 2007 18:28:12 +0000 |
| Subject: | Re: [patch] Late static bindings (LSB) | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-32345@lists.php.net to get a copy of this message | ||
----- Original Message ----- From: "Etienne Kneuss" <colder@php.net>
To: <internals@lists.php.net>
Sent: Sunday, September 16, 2007 10:50 AM
Subject: Re: [PHP-DEV] [patch] Late static bindings (LSB)
Yah, quickly found that out after running gdbHowever this causes a seg fault in your current patch. I will do a little more checking to see why you are segfaulting here.That's an endless recursion, hence the segfault ;)
You of course wouldn't HAVE to redeclare the static function. Occasionally you just need to do a little extra in a child class and if this breaks lsb (or makes it innefective) with no work around (static::) then that would be no good.In either case without having some way to chain callers this is going to become a very annoying problem when utilizing inheritance with late static binding.I aggree that it could be a problem indeed, but you usually use LSB to avoid having to redeclare static functions in child classes, if you do anyway, LSB looses its interest.