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 17:47:32 +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  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-69974@lists.php.net to get a copy of this message
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 (#69974) next »