From:             alex dot belonosov at gmail dot com
Operating system: Linux GCC3.4
PHP version:      5.3.1
PHP Bug Type:     *Compile Issues
Bug description:  ZEND_GCC_VERSION is incorrectly defined

Description:
------------
The definition of ZEND_GCC_VERSION is incorrect in zend.h or further
checks for version 3400 is incorrect.

It's defined as ZEND_GCC_VERSION (__GNUC__ * 1000 + __GNUC_MINOR__)
But __GNUC_MINOR__ is usually one digit e.g. __GNUC_MINOR__ is 4 for
GCC3.4. This causes problems with php extensions compatibility built with
GCC3.4 with another PHP built with GCC4+ The reason is difference in
ZEND_FASTCALL definitions under different GCCs. 

I suppose you guys meant 3004 instead of 3400 in ZEND_GCC_VERSION
conditions within zend.h as I think nobody can expect GCC with the minor
version number=400 to make the condition for ZEND_FASTCALL true for GCC3.
See zend.h:169 and below

Or ZEND_GCC_VERSION definition should be changed to ZEND_GCC_VERSION
(__GNUC__ * 1000 + __GNUC_MINOR__ * 100) but you will also need to correct
other ZEND_GCC_VERSION conditions.

Please correct the above in any way as the current code is inconsistent
with all GCC3 since v3.4

Thanks


-- 
Edit bug report at http://bugs.php.net/?id=50771&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=50771&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=50771&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=50771&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=50771&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=50771&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=50771&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=50771&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=50771&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=50771&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=50771&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=50771&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=50771&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=50771&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=50771&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=50771&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=50771&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=50771&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=50771&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=50771&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=50771&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=50771&r=mysqlcfg

Reply via email to