php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64749 zend_compile.c: warning: cast from pointer to integer of different size
Submitted: 2013-05-01 17:10 UTC Modified: -
From: sixd@php.net Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5.5Git-2013-05-01 (Git) OS: Linux x86_64
Private report: No CVE-ID: None
 [2013-05-01 17:10 UTC] 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)++);



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-05-04 12:44 UTC] laruence@php.net
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)
 [2013-05-04 12:44 UTC] laruence@php.net
-Status: Open +Status: Closed
 [2013-05-04 12:44 UTC] laruence@php.net
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)
 [2013-11-17 09:31 UTC] laruence@php.net
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)
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Jan 18 08:01:26 2021 UTC