From: d dot tonhofer at m-plify dot com
Operating system: Red Hat ES 4.0 on EM64T
PHP version: 4.3.10
PHP Bug Type: Compile Warning
Bug description: exec.c:611: warning: cast from pointer to integer of
different size
Description:
------------
When compiling 4.3.10 on 64-bit Intel architecture, we get:
/usr/local/tarballs/php-4.3.10/ext/standard/exec.c: In function
`proc_open_rsrc_dtor':
/usr/local/tarballs/php-4.3.10/ext/standard/exec.c:611: warning: cast from
pointer to integer of different size
i.e.:
static void proc_open_rsrc_dtor(zend_rsrc_list_entry *rsrc TSRMLS_DC)
{
#ifdef PHP_WIN32
HANDLE child;
DWORD wstatus;
child = (HANDLE)rsrc->ptr;
WaitForSingleObject(child, INFINITE);
GetExitCodeProcess(child, &wstatus);
FG(pclose_ret) = wstatus;
CloseHandle(child);
#else
# if HAVE_SYS_WAIT_H
int wstatus;
pid_t child, wait_pid;
child = (pid_t)rsrc->ptr; <--------- HERE
do {
wait_pid = waitpid(child, &wstatus, 0);
} while (wait_pid == -1 && errno == EINTR);
if (wait_pid == -1)
FG(pclose_ret) = -1;
else {
if (WIFEXITED(wstatus))
wstatus = WEXITSTATUS(wstatus);
FG(pclose_ret) = wstatus;
}
....
Probably nothing, and probably related to
http://bugs.php.net/bug.php?id=26769.
--
Edit bug report at http://bugs.php.net/?id=32173&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32173&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=32173&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=32173&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32173&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32173&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32173&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32173&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32173&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32173&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32173&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=32173&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=32173&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32173&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32173&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32173&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32173&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32173&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32173&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32173&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32173&r=mysqlcfg