> De : Zeev Suraski [mailto:z...@zend.com] > > If we do implement the single-mode, stricter-than-pure-weak and > weaker-than-pure-strict ruleset, we could introduce a new set of conversion > functions, along the lines of safe_int(), that would follow the same rules > as the corresponding type hints (i.e. accept (int) 32, (string) "32", but > not (float) 32.7, or (string) "32 dogs").
Nice. I like it : create a set of userland functions aligned on zend_parse_arg_xxx(). Just remains to bikeshed on function names :) Regards François -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php