ID: 32173 Updated by: [EMAIL PROTECTED] Reported By: d dot tonhofer at m-plify dot com -Status: Open +Status: Feedback Bug Type: Compile Warning Operating System: Red Hat ES 4.0 on EM64T PHP Version: 4.3.10 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Previous Comments: ------------------------------------------------------------------------ [2005-03-03 15:21:04] d dot tonhofer at m-plify dot com 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 this bug report at http://bugs.php.net/?id=32173&edit=1
