RE: [PHP] Exceptions and builtin functions in PHP5

From: Date: Thu, 08 Apr 2004 13:17:39 +0000
Subject: RE: [PHP] Exceptions and builtin functions in PHP5
Groups: php.general 
Request: Send a blank email to php-general+get-182816@lists.php.net to get a copy of this message
Builtin functions in php5 will not throw exceptions. The basic idea is that exceptions are part of the OOP portion of PHP. What you will need to do is to wrap these functions into classes. Fortunately, many existing class libraries such as PEAR can be tweaked to throw exceptions with little or no effort. >I want to write: >... > $res = some_builtin_func(); // func raises exception on error >... > >So will PHP5 (or future versions) work as in my 2nd example?

« previous php.general (#182816) next »