Re: About SUCCESS/FAILURE

From: Date: Wed, 24 Dec 2014 23:27:04 +0000
Subject: Re: About SUCCESS/FAILURE
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-79927@lists.php.net to get a copy of this message
On Wed, 2014-12-24 at 11:13 -0700, Levi Morrison wrote: > I'm asking for specific things. The reason is that some API's do a > non-zero error code; the fact that they are negative is a detail that > we should not need to care about. My guess is that positive values more often might have a meaning ("5 items changed", "address 0x1234") whereas negative values less often have a meaning. Also passing -1 as parameter is more often invalid. Thus passing -1 is making debug output look more suspicious. (while there are cases where -1 is valid, see recent famous pid = fork(); /* ... */ kill(pid, SIGKILL); issue) johannes

« previous php.internals (#79927) next »