ID: 32173 Updated by: [EMAIL PROTECTED] Reported By: d dot tonhofer at m-plify dot com -Status: Open +Status: Wont fix Bug Type: Compile Warning Operating System: 64bit (*nix) PHP Version: 4CVS, 5CVS (2005-03-04) New Comment:
Like you suspected, same issue as in bug #26769 Previous Comments: ------------------------------------------------------------------------ [2005-03-04 14:14:27] d dot tonhofer at m-plify dot com Tested on php4-STABLE-200503040930. Error still occurs, which is not surprising as the code did not change. Here is the complete list of warnings btw: /usr/local/tarballs/php4-STABLE-200503040930/ext/standard/exec.c: In function `proc_open_rsrc_dtor': /usr/local/tarballs/php4-STABLE-200503040930/ext/standard/exec.c:611: warning: cast from pointer to integer of different size /usr/local/tarballs/php4-STABLE-200503040930/ext/standard/exec.c: In function `zif_proc_open': /usr/local/tarballs/php4-STABLE-200503040930/ext/standard/exec.c:1030: warning: cast to pointer from integer of different size ------------------------------------------------------------------------ [2005-03-03 22:36:23] [EMAIL PROTECTED] 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 ------------------------------------------------------------------------ [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
