Hi, 2010/10/19 Derick Rethans <der...@php.net>
> Hi! > > On Sun, 5 Sep 2010, Derick Rethans wrote: > > > I've spend some more time on this, and have attached a new patch that: > > > > - Removes the strict type verification, changing it back into typehints > > only. > > - Keeps the current syntax so that typehints create structures in the > > function entries. > > - Keeps the reflection API for the syntax, so that you can query the > > typehints. > > - Changed the API so that the verification function can also modify the > > variables. > > I've just committed that patch, the implements the 3 first elements from > this list. I've also updated my little extension to behave in the same > way as it did with the previous patch: > There is a BC in the changes, I don't know if it is expected for the next version, at least it is very strange. <?php class int { } function f(int $a) { } f(new int); // no error f('foo'); // no error f(null); // no error ?> -- Regards, Felipe Pena