Re: Re: [mfischer@php.net: Bug #12465 Updated: posix_* issuing Warnings, no error code.]
| From: | Edin Kadribasic | Date: | Fri, 01 Mar 2002 10:15:42 +0000 |
| Subject: | Re: Re: [mfischer@php.net: Bug #12465 Updated: posix_* issuing Warnings, no error code.] | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-80552@lists.php.net to get a copy of this message | ||
> My point was to remove the (not needed) php_error() calls
> completely and save the message(errorcode) in a variable so
> the user (developer) can decide himself if he wants to do
> something with the message or not.
>
> php_error() call's are, verbosely spoken, pain in the ass to
> catch ($php_errmsg global var?? no thanks). It would overal
> make more sense for this module to don't do any error output
> itself but provide a error string fetch function or so.
+1
Having posix_errno() which returns the error of the last message and
posix_strerror() which returns the description should be the way to go. In
addition it is consistent with the rest of posix functions.
Edin