From: jd at cpanel dot net Operating system: Centos 5 AMD64 PHP version: 5.2.12RC3 PHP Bug Type: *Compile Issues Bug description: Use of config.cache causes missing HAVE_FORK define
Description: ------------ The bug fix in revision 291318 exposes additional problems with ext/standard/config.m4 When php_cv_can_support_proc_open is loaded from config.cache the function tests that come after are not executed. As a result, the existence of fork() is not tested and HAVE_FORK is not defined. ext/standard/proc_open.c has a chain of preprocessor if blocks that expects one of PHP_WIN32, NETWARE or HAVE_FORK to be set whenever PHP_CAN_SUPPORT_PROC_OPEN is set. Reproduce code: --------------- Remove config.cache then run configure twice without --enable-pcntl (which also tests for fork()). Diff the two generated php_config.h files. -- Edit bug report at http://bugs.php.net/?id=50315&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50315&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50315&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50315&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50315&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50315&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50315&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50315&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50315&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50315&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50315&r=support Expected behavior: http://bugs.php.net/fix.php?id=50315&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50315&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50315&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50315&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50315&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50315&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50315&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50315&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50315&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50315&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50315&r=mysqlcfg
