Re: Compiler Warning with gcc 4.2

From: Date: Wed, 30 Apr 2008 17:49:40 +0000
Subject: Re: Compiler Warning with gcc 4.2
References: 1 2  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-5426@lists.php.net to get a copy of this message
On Wed, 30 Apr 2008 10:27:07 -0700, Antony Dovgal <tony@daylessday.org> wrote:
On 29.04.2008 04:11, Tony wrote:
Using the gcc 4.2 and later to compile an extension generates quite a few warnings. A typical zend_function_entry xxx_functions[] = { ZEND_FE(Function1, NULL) {NULL, NULL, NULL} };
Btw, I'm just curious: where did you get these ZEND_FE's from? Was there some kind of book or tutorial that used them?
A lot of sample code and tutorial use ZEND_FE The following page uses PHP_FE which maps to ZEND_FE. http://devzone.zend.com/article/1021-Extension-Writing-Part-I-Introduction-to-PHP-and-Zend The compiler does not like ZEND_FE. If you look at the definition of ZEND_FE -> ZEND_FENTRY (in zend_api.h), I believe the warning is complaining about assigning #zend_name to zend_function_entry.fname which is a char* . Tony

« previous php.pecl.dev (#5426) next »