If you ask me, scaler type hinting should try to do some auto-conversion. That way, the type hints would actually be useful.
-- Ron PS: Congrats on rolling out PHP 5.2.0. I sincerely (without sarcasm) hope the manual will be updated soon (e.g. filter extension is still marked experimental and datetime classes have not been documented at all). "Pierre" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > On 11/3/06, Hannes Magnusson <[EMAIL PROTECTED]> wrote: > > Hello all! > > > > Attached is a patch (against 5_2) to allow scalar type hinting \o/ > > > > I realize that maaany will be against it so I won't be pushing it (a > > lot), just wanted the patch archived somewhere :) > > -1 unless we add a "strongly typed" mode in php and allow scalar type > hinting only in this mode. But thinking about php raising errors when > I pass string("1") instead of int(1 )is not really what I consisder as > a nice addition :) > > --Pierre -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php