#32046 [Opn->Csd]: Wrong format string in zend_compile.c

From: Date: Sun, 06 Mar 2005 16:22:34 +0000
Subject: #32046 [Opn->Csd]: Wrong format string in zend_compile.c
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-74925@lists.php.net to get a copy of this message
ID: 32046 Updated by: sniper@php.net Reported By: mcihar at suse dot cz -Status: Open +Status: Closed Bug Type: Compile Warning Operating System: Linux, 64-bit PHP Version: 5.0.3 New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2005-02-21 14:40:38] mcihar at suse dot cz Description: ------------ php-5.0.3/Zend/zend_compile.c: In function `build_runtime_defined_function_key': php-5.0.3/Zend/zend_compile.c:71: warning: cast from pointer to integer of different size Fix: --- Zend/zend_compile.c.orig 2004-12-06 12:52:59.000000000 +0100 +++ Zend/zend_compile.c 2005-02-21 13:07:16.640804919 +0100 @@ -68,7 +68,7 @@ uint char_pos_len; char *filename; - char_pos_len = zend_sprintf(char_pos_buf, "%x", (unsigned int) LANG_SCNG(_yy_last_accepting_cpos)); + char_pos_len = zend_sprintf(char_pos_buf, "%p", LANG_SCNG(_yy_last_accepting_cpos)); if (CG(active_op_array)->filename) { filename = CG(active_op_array)->filename; } else { ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32046&edit=1

« previous php.bugs (#74925) next »