Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79927 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42289 invoked from network); 24 Dec 2014 23:27:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Dec 2014 23:27:16 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.215.10 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.215.10 mail.experimentalworks.net Received: from [217.114.215.10] ([217.114.215.10:55686] helo=mail.experimentalworks.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B5/00-39162-3DB4B945 for ; Wed, 24 Dec 2014 18:27:16 -0500 Received: by mail.experimentalworks.net (Postfix, from userid 1003) id 2F9A44802E; Thu, 25 Dec 2014 00:27:36 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on km31408.keymachine.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=ALL_TRUSTED autolearn=unavailable version=3.3.2 X-Spam-HAM-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP Received: from [192.168.2.34] (ppp-93-104-7-68.dynamic.mnet-online.de [93.104.7.68]) (using TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: johannes@schlueters.de) by mail.experimentalworks.net (Postfix) with ESMTPSA id E64A947D7B; Thu, 25 Dec 2014 00:27:32 +0100 (CET) Message-ID: <1419463624.28792.6.camel@kuechenschabe> To: Levi Morrison Cc: Andrea Faulds , Pierre Joye , PHP internals , Laruence Date: Thu, 25 Dec 2014 00:27:04 +0100 In-Reply-To: References: <946C1B1D-30B8-4029-A5A1-73D515A017D8@ajf.me> <1419428487.29904.6.camel@kuechenschabe> <5E26F21C-EA41-43FF-8DDB-D0A985AB4197@ajf.me> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] About SUCCESS/FAILURE From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) 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