Re: Re: [mfischer@php.net: Bug #12465 Updated: posix_* issuing Warnings, no error code.]

From: Date: Fri, 01 Mar 2002 14:48:23 +0000
Subject: Re: Re: [mfischer@php.net: Bug #12465 Updated: posix_* issuing Warnings, no error code.]
References: 1 2 3 4  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-9549@lists.php.net to get a copy of this message
On Fri, Mar 01, 2002 at 03:03:02PM +0100, Marcus Börger wrote : > From my point of view the best way would be to have a new function, say > php_debug(file,message,type) > #define PHP_DEBUG(message) php_debug(__FILE__,message,E_DEBUG) > and present debug only for cvs versions or the user can decide wether or not > e.g. the programmer. I think this is a bit overkill and should be more well thought than for the little purpose I was talking about. > With the old php_error() i would appreciate a switch to mentioned posix > mechanism. > But we would need a global .h file to keep track of all error messages. Why ? We just store the last error in a global variable within an extension. If a function returns FALSE, the user knows he now *can* retrieve the associated error message if he wants to. -- Please always Cc to me when replying to me on the lists. GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc

« previous php.cvs (#9549) next »