Bug #64749 [Opn->Csd]: zend_compile.c: warning: cast from pointer to integer of different size
Edit report at https://bugs.php.net/bug.php?id=64749&edit=1
ID: 64749
Updated by: laruence@php.net
Reported by: sixd@php.net
Summary: zend_compile.c: warning: cast from pointer to
integer of different size
-Status: Open
+Status: Closed
Type: Bug
Package: Scripting Engine problem
Operating System: Linux x86_64
PHP Version: 5.5Git-2013-05-01 (Git)
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=9155d17fefec7c2a71e1c0b8d8324d5e1fa43433
Log: Fix #64749 (warning: cast from pointer to integer of different size)
Previous Comments:
------------------------------------------------------------------------
[2013-05-01 17:10:11] sixd@php.net
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 this bug report at https://bugs.php.net/bug.php?id=64749&edit=1
Thread (2 messages)