|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32046 Wrong format string in zend_compile.c
Submitted: 2005-02-21 14:40 UTC Modified: 2005-03-06 17:22 UTC
From: mcihar at suse dot cz Assigned:
Status: Closed Package: Compile Warning
PHP Version: 5.0.3 OS: Linux, 64-bit
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
29 - 23 = ?
Subscribe to this entry?

 [2005-02-21 14:40 UTC] mcihar at suse dot cz
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


--- 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 {


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-06 17:22 UTC]
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
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Feb 01 07:05:52 2023 UTC