Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79904 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18114 invoked from network); 24 Dec 2014 04:58:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Dec 2014 04:58:59 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.172 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.214.172 mail-ob0-f172.google.com Received: from [209.85.214.172] ([209.85.214.172:63361] helo=mail-ob0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8E/21-10609-2184A945 for ; Tue, 23 Dec 2014 23:58:58 -0500 Received: by mail-ob0-f172.google.com with SMTP id va8so28169680obc.3 for ; Tue, 23 Dec 2014 20:58:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=x2VkoWdY8jZcHXysZDsYHKE21ArWuvuhSyl62ULtZZk=; b=hpqLmc1dK83rx9AD8LlrWVshnDw8rG1fQmy7PpX+Gns3/JjKpCpNSlNlp/vqqMf0UT nn+uuKFQ8tm9ZjXgs2SdZA/jIABvRPEFnwvQAShWhNIWthfY2TGBcjvHdxdJgTbBHsff hj7xxWtRPnxhmdoxCihOyGUJPyiVC8LXMAtHQVvBZ90Zvw1Yn2eKtcnM5oDXqz3BiIX0 5WR/KH0JuJwBDuiigYtbvGkXYz+AGPfGvsS/IyjrqJyexo8qpO9xl/g9hetlZp7/6FlP skJKYbmFEo7njc0Nuj8pJPYmAoWkOllIX0Hcgzu2P/kGp9scEuI8sbq99+njNt3DyL+7 hBVA== X-Received: by 10.182.28.99 with SMTP id a3mr18588261obh.79.1419397135501; Tue, 23 Dec 2014 20:58:55 -0800 (PST) Received: from [192.168.2.145] (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by mx.google.com with ESMTPSA id v73sm11480373oie.19.2014.12.23.20.58.54 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Dec 2014 20:58:55 -0800 (PST) Message-ID: <549A480D.7030704@gmail.com> Date: Tue, 23 Dec 2014 20:58:53 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Xinchen Hui CC: Xinchen Hui , PHP Internals References: <549A45BD.9050304@gmail.com> <50C312FD-B626-4CDF-B6E5-7EB625C28214@gmail.com> In-Reply-To: <50C312FD-B626-4CDF-B6E5-7EB625C28214@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] About SUCCESS/FAILURE From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > I think if(func()) is better, more readeable than if(func() == success) Not really, especially given the fact that for major part of libc if(func()) means checking for error, not for success, as success value is 0. -- Stas Malyshev smalyshev@gmail.com