Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79962 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48660 invoked from network); 27 Dec 2014 03:45:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Dec 2014 03:45:54 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.43 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.192.43 mail-qg0-f43.google.com Received: from [209.85.192.43] ([209.85.192.43:62136] helo=mail-qg0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D3/41-30435-07B2E945 for ; Fri, 26 Dec 2014 22:45:52 -0500 Received: by mail-qg0-f43.google.com with SMTP id z107so7677254qgd.2 for ; Fri, 26 Dec 2014 19:45:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=tGHuaeeu9CRdBxGD2LU1Y0glthF2OuwYSWHr4oewDrs=; b=UAiQHeOacf1xPPjeYSKojuCdO2iVypBKH41QcVMnbes6E020V1P3Jj0wC4CrYjYnCz TLefBHFScjHJ11RvraFMLZgpAGXzyQTn5l88Rm+YHJJK5WplK+pCH3OgvuaUkGRuu/sy RkW7RiRnUdowXL240OckreCe7Z2pR651nZaFUt/B88a05Tq0EbkVS8S2A8ZGTWITOb4F IyPLNAc2fxP3uCHEjoB195b3BVCcviEb1DsAFIy/+L5Q/FWjmK7eYmuz4TMeCFCWmM4s kAlkKXuY0WrrVvIKxdiNOhkpXDpmm17DqNUnsh8RMB2bpQXLXiT2cuiGpS3bbn0TFLve m6SA== MIME-Version: 1.0 X-Received: by 10.140.86.175 with SMTP id p44mr71755717qgd.54.1419651948639; Fri, 26 Dec 2014 19:45:48 -0800 (PST) Received: by 10.140.22.106 with HTTP; Fri, 26 Dec 2014 19:45:48 -0800 (PST) Received: by 10.140.22.106 with HTTP; Fri, 26 Dec 2014 19:45:48 -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: Sat, 27 Dec 2014 14:45:48 +1100 Message-ID: To: Laruence Cc: Andrea Faulds , Levi Morrison , =?UTF-8?Q?Johannes_Schl=C3=BCter?= , Michael Wallner , PHP internals Content-Type: multipart/alternative; boundary=001a11c125921a7c08050b2a7a01 Subject: Re: [PHP-DEV] About SUCCESS/FAILURE From: pierre.php@gmail.com (Pierre Joye) --001a11c125921a7c08050b2a7a01 Content-Type: text/plain; charset=UTF-8 On Dec 26, 2014 7:42 PM, "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 :) We could just do the ones returning integer as status as a 2nd step, or in the same commit. The latter would be cleaner. --001a11c125921a7c08050b2a7a01--