Re: fatal static call in php 6.0?
| From: | Todd Ruth | Date: | Thu, 25 May 2006 15:23:17 +0000 |
| Subject: | Re: fatal static call in php 6.0? | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-23658@lists.php.net to get a copy of this message | ||
On Thu, 2006-05-25 at 14:53 +0200, Marcus Boerger wrote:
> There is no way you can write heavy oo using code that supports PHP 4
> and PHP 5.2 without a version check every here and there, so i don't see
> this as an argument. It is a fact that 4 and 5 have very different object
> models.
Sort of. The fact that "$object1 = $object2" didn't mean
"$object1 =& $object2" in php4 drove us crazy, so each of
our objects keeps its data in an array. For us, moving
from 4 to 5 was mostly about adding "strtolower"s. We
already had our own cloning function, so the only reason
we can't go back to 4 is that we're using Derick's date
stuff. That was the "killer feature" for us that got us
to php 5. The object stuff has not been an issue. Perhaps
you're implying that my life will be difficult if I move
from 5.1 to 5.2, but hopefully that won't be too painful.
BTW, the phpt I posted that uses $this in a static call
doesn't even give a strict message in 5.1.2. It passes
with 0 messages even with "E_ALL|E_STRICT".
BTW, a big thanks to Derick for the timezone feature!
(not to overshadow my thanks to you for the numerous
handy patches I've seen you post!)
Thanks,
Todd