-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Simetrical wrote:
> Setting the default for typed parameter to be
null, allows type-X-or-null
[snip]
Someone mentioned that as a comment in the PHP docs,
but I suspect it
may have been added after 5.0 proper, since Rotem reported problems
with 5.0.4. We haven't introduced any dependencies for after 5.0;
otherwise I would have started type-hinting arrays too, which was
added in 5.1. So for now I'll be cautious when adding these.
Confirmed that this doesn't work in 5.0.4 (throws fatal error for null),
does work in 5.1.4.
There's still a lot of 5.0.x installations out there, though I'd love to
see them all die -- in addition to the security problems (probably left
unfixed since the currently maintained 5.x has continued on to 5.1.x,
and now 5.2.x) there's the array index corruption on 64-bit machines,
which is now fatal due to breakage of the namespace arrays.
For 1.9 and 1.8.3 I've introduced a check for the array index corruption
on install, with a recommendation to upgrade to 5.1 or later for
affected machines.
- -- brion vibber (brion @
pobox.com)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (Darwin)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org
iD8DBQFFZcC3wRnhpk1wk44RAqz9AJ45QNFa6SEIY3vbjaRhCz2DVofxBACfa4ul
emDPxU2wXHUSvrsYXcuqwgA=
=GZQB
-----END PGP SIGNATURE-----