From:             sixd
Operating system: Linux x86_64
PHP version:      5.5Git-2013-05-01 (Git)
Package:          Scripting Engine problem
Bug Type:         Bug
Bug description:zend_compile.c: warning: cast from pointer to integer of 
different size

Description:
------------
On Oracle Linux 5.9 (x86_64), there is a compilation warning in
zend_compile.c:

/home/cjones/php-5.5/Zend/zend_compile.c: In function
‘get_temporary_variable’:
/home/cjones/php-5.5/Zend/zend_compile.c:291: warning: cast from pointer to
integer of different size

The code is currently:

        return (zend_uint)EX_TMP_VAR_NUM(0, (op_array->T)++);

I expect this needs to be:
        return (zend_uint)(zend_uintptr_t)EX_TMP_VAR_NUM(0, (op_array->T)++);



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

Reply via email to