From: yu at fstrf dot org Operating system: solaris 8/sparcv9 PHP version: 4.3.4 PHP Bug Type: Compile Warning Bug description: 64 bit pointer again
Description: ------------ I met more compiling warnings during the PHP compilation under solaris 8 /sparcv9 64-bit environment besides bug#26769. ____________________________________________________________ 1. ingres_ii warning messages: ================= php-4.3.4/ext/ingres_ii/ii.c: In function `php_ii_do_connect': php-4.3.4/ext/ingres_ii/ii.c:602: warning: cast from pointer to integer of different size php-4.3.4/ext/ingres_ii/ii.c:604: warning: cast from pointer to integer of different size php-4.3.4/ext/ingres_ii/ii.c:605: warning: cast from pointer to integer of different size php-4.3.4/ext/ingres_ii/ii.c:607: warning: cast from pointer to integer of different size code: ===== line# 601: link = (II_LINK *) index_ptr->ptr; line# 602: ptr = zend_list_find((int) link, &type); /* check if the link is still there */ line# 603: if (ptr && (type == le_ii_link || type == le_ii_plink)) { line# 604: zend_list_addref((int) link); line# 605: Z_LVAL_P(return_value) = (int) link; line# 606: line# 607: php_ii_set_default_link((int) link TSRMLS_CC); line# 608: line# 609: Z_TYPE_P(return_value) = IS_RESOURCE; line# 610: efree(hashed_details); line# 611: return; line# 612: } else { line# 613: zend_hash_del(&EG(regular_list), hashed_details, hashed_details_length + 1); line# 614: } ____________________________________________________________2. SAPI warning messages: ================= php-4.3.4/main/SAPI.c: In function `sapi_header_op': php-4.3.4/main/SAPI.c:510: warning: cast from pointer to integer of different size code: ===== line# 509: case SAPI_HEADER_SET_STATUS: line# 510: sapi_update_response_code((int) arg TSRMLS_CC); line# 511: return SUCCESS; ____________________________________________________________ In the 64-bit environment, pointers are defined in 64-bit. Would these assignments of 64-bit pointers to a 32-bit integer cause any memory problems? Thanks in advance for looking into these. Maggie -- Edit bug report at http://bugs.php.net/?id=26797&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26797&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26797&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26797&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26797&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26797&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26797&r=needscript Try newer version: http://bugs.php.net/fix.php?id=26797&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26797&r=support Expected behavior: http://bugs.php.net/fix.php?id=26797&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26797&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26797&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26797&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26797&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26797&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26797&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26797&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26797&r=float