Re: com php-src: Strong types for the result codes SUCCESS & FAILURE. These are common symbol names and using #defines can cause conflicts.:
Zend/zend.h

From: Date: Sun, 26 Aug 2012 18:05:24 +0000
Subject: Re: com php-src: Strong types for the result codes SUCCESS & FAILURE. These are common symbol names and using #defines can cause conflicts.:
Zend/zend.h
References: 1 2  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-69975@lists.php.net to get a copy of this message
Good idea! Am 26.08.2012 um 19:47 schrieb Stas Malyshev <smalyshev@sugarcrm.com>: > Hi! > >> +typedef enum { >> + SUCCESS = 0, >> + FAILURE = -1, /* this MUST stay a negative number, or it may affect functions! */ >> +} RESULT_CODE; > > If you use a type here, I'd suggest using zend_ prefix since otherwise > you just stomp on another (frequently used) global symbol. > > > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227

« previous php.cvs (#69975) next »