Re: About SUCCESS/FAILURE

From: Date: Fri, 26 Dec 2014 00:46:56 +0000
Subject: Re: About SUCCESS/FAILURE
References: 1 2 3 4 5 6 7 8 9 10 11 12 13  Groups: php.internals 
Request: Send a blank email to internals+get-79952@lists.php.net to get a copy of this message
On Fri, Dec 26, 2014 at 8:33 AM, Michael Wallner <mike@php.net> wrote: > There's already ZEND_RESULT_CODE, or did I miss anything? Yes, to read the thread :) We are not talking about the lack of a status typedef but about the inconsistencies across PHP internal APIs. And what Xinchen suggests below is to begin by changing the functions signature from int to status (aka ZEND_RESULT_CODE, see my previous code example) as a 1st step.Functions returning 0/1/-1 themselves can be changed as a 2nd step. > On 25 Dec 2014 06:45, "Xinchen Hui" <laruence@php.net> wrote: >> we can change these functions which use success/failure return >> zend_status instead of int first.

« previous php.internals (#79952) next »