Hi!

any mistmatch results in an error

  An error that is recoverable. So not only is the "strict typing"
  optional, but "type mismatches" can be caught and handled.

Unfortunately, PHP doesn't have good means to handle such kind of errors. Global "shut up" handler is not a good means, as it disables the whole protection, effectively forcing third-party code to work with variable it wasn't written to handle, and you have no means of separating OK and not OK cases. And on top of that, even silent errors are still very expensive in PHP.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to