Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79961 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39597 invoked from network); 27 Dec 2014 00:04:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Dec 2014 00:04:07 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.48 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.218.48 mail-oi0-f48.google.com Received: from [209.85.218.48] ([209.85.218.48:46943] helo=mail-oi0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C2/90-30435-677FD945 for ; Fri, 26 Dec 2014 19:04:07 -0500 Received: by mail-oi0-f48.google.com with SMTP id u20so23626656oif.7 for ; Fri, 26 Dec 2014 16:04:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=9eaVOOrpWgA/RXrf9KOa6xZQ04f2A2jKjR5NKvA3sow=; b=dTISBjeRUjGxLpK1ZJVJzSJwjCHHLC8Ic488UMbz2pTUI4CDyL229ImRWPoIEvrW5u oojHhbmLeh6k2EuQPi21L0T0nObN28chWeK5VpqWNZvtNVU6HGfEdPjx/hOCu4uU5PNq LGQQP6hwIflYZ1JoERhZigakr4Fyu57uMOUr1GAGVX2Uq6KFvN0zS12DjgOR644RWp+T 4UPDmtelzj48843Mq1xKGMJAWh/p5JxKVjOQoo0BCjS4G+QFHPG5FxnQlzWL/IaXOkuu byP5/S9xJJahZ9P5oUMOoB9Lei3AswVdqLt65tR1R+keJeJJ7NFktawYd/PbZYzL3NiS ELTg== MIME-Version: 1.0 X-Received: by 10.182.120.100 with SMTP id lb4mr21824957obb.50.1419638644240; Fri, 26 Dec 2014 16:04:04 -0800 (PST) Sender: morrison.levi@gmail.com Received: by 10.76.89.237 with HTTP; Fri, 26 Dec 2014 16:04:04 -0800 (PST) In-Reply-To: References: <946C1B1D-30B8-4029-A5A1-73D515A017D8@ajf.me> <1419428487.29904.6.camel@kuechenschabe> <5E26F21C-EA41-43FF-8DDB-D0A985AB4197@ajf.me> <1419463624.28792.6.camel@kuechenschabe> <51160B8D-F662-458E-A0E0-1F37DC3A8869@ajf.me> <8F70E62C-FCB6-49F1-8F30-BD211BB050EA@ajf.me> Date: Fri, 26 Dec 2014 17:04:04 -0700 X-Google-Sender-Auth: lwL0m_C39rlAttGDRLmtArIiQL4 Message-ID: To: Xinchen Hui Cc: Andrea Faulds , Michael Wallner , =?UTF-8?Q?Johannes_Schl=C3=BCter?= , Pierre Joye , PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] About SUCCESS/FAILURE From: levim@php.net (Levi Morrison) On Fri, Dec 26, 2014 at 5:42 AM, Xinchen Hui wrote: > Hey: > > On Fri, Dec 26, 2014 at 7:54 PM, Andrea Faulds wrote: >> >>> On 26 Dec 2014, at 05:57, Levi Morrison wrote: >>> >>>> On Thu, Dec 25, 2014 at 2:33 PM, Michael Wallner wrote: >>>> There's already ZEND_RESULT_CODE, or did I miss anything? >>> >>> According to lxr.php.net, this symbol ZEND_RESULT_CODE is not >>> referenced in any place except its definition. We can begin using it >>> if we like, or even rename it. Theoretically renaming it may break >>> extensions; none that I could find reference it, though. >> >> Hey Levi, >> >> I think we should just rename it, it's a little too long. zend_status or ZEND_STATUS would be fine with me, preferably the former since we tend to use lowercase type names. Another possibility might be zend_result. >> > zend_status +1 >> If you folks like, I could go ahead and write a patch for master to rename it and use it in a bunch of places. > > great, thanks... please only added it to these functions who already > use success/failure, don't change others :) Here is a preliminary diff for a zend_status: https://gist.github.com/morrisonlevi/04e9e20f5addadd656c3. It only changes stuff in Zend/zend_API.{h,c} (except for the zend_status definition in zend_types.h).