Re: [PHP] Exceptions and builtin functions in PHP5

2004-04-08 Thread Greg Beaver
The exception mechanism will not replace trigger_error() or function return values any time soon Greg Tumurbaatar S. wrote: <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] If I understand right, PHP5 has an exception handling mechanism but it is only for "manual" using, i.e. a progra

RE: [PHP] Exceptions and builtin functions in PHP5

2004-04-08 Thread Hundiak, Arthur
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 n

Re: [PHP] Exceptions and builtin functions in PHP5

2004-04-08 Thread Tumurbaatar S.
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > If I understand right, PHP5 has an exception > > handling mechanism but it is only for "manual" using, i.e. > > a programmer can use try/catch but only for own code. > > PHP's built-in functions and functions from extensions still > >

Re: [PHP] Exceptions and builtin functions in PHP5

2004-04-07 Thread daniel
> If I understand right, PHP5 has an exception > handling mechanism but it is only for "manual" using, i.e. > a programmer can use try/catch but only for own code. > PHP's built-in functions and functions from extensions still > use old "return value" method. Yes? > > -- > PHP General Mailing List