RE: [PECL-DEV] Compiler Warning with gcc 4.2
| From: | Tony Ser | Date: | Wed, 30 Apr 2008 18:35:37 +0000 |
| Subject: | RE: [PECL-DEV] Compiler Warning with gcc 4.2 | ||
| References: | 1 2 3 4 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-5428@lists.php.net to get a copy of this message | ||
As Alexey mentioned it's been fixed in 5.3
Just take a look at the definition of zend_function_entry in zend_api.h,
you'll see the difference.
Tony
> -----Original Message-----
> From: Antony Dovgal [mailto:tony@daylessday.org]
> Sent: Wednesday, April 30, 2008 10:53 AM
> To: Tony Ser
> Cc: pecl-dev@lists.php.net
> Subject: Re: [PECL-DEV] Compiler Warning with gcc 4.2
>
> On 30.04.2008 21:49, Tony Ser wrote:
> > A lot of sample code and tutorial use ZEND_FE The following
> page uses
> > PHP_FE which maps to ZEND_FE.
>
> Right, that's what I meant - PHP_FE should be used in PHP.
>
> > 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* .
>
> Never seen any problems with that.
>
> --
> Wbr,
> Antony Dovgal
>