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
Description: ------------ I am compiling PHP under solaris 8 /sparcv9 for 64-bit version. I get a successful compilation except the following warnings. php-4.3.4/ext/standard/exec.c:588: warning: cast from pinter to integer of different size php-4.3.4/ext/standard/exec.c: In function `zif_proc_open': php-4.3.4/ext/standard/exec.c:1007: warning: cast to pointer from integer of different size Here is the code in exec.c, ----------------------------------------------------------- line# 586: pid_t child, wait_pid; line# 587: line# 588: child = (pid_t)rsrc->ptr; . . . line# 1007: ZEND_REGISTER_RESOURCE(return_value, (void*)child, le_proc_open); ----------------------------------------------------------- Since pid_t is defined in solaris8/sparv9 in 32 bit and pointer is 64 bit, I am worried an assignment from 64-bit pointer to a 32-bit integer would cause segmentation fault in the runtime. Can anybody help me on that? Thank you, Maggie -- Edit bug report at http://bugs.php.net/?id=26769&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26769&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26769&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26769&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26769&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26769&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26769&r=needscript Try newer version: http://bugs.php.net/fix.php?id=26769&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26769&r=support Expected behavior: http://bugs.php.net/fix.php?id=26769&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26769&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26769&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26769&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26769&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26769&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26769&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26769&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26769&r=float