#50315 [Csd]: Use of config.cache causes missing HAVE_FORK define
| From: | rasmus@php.net | Date: | Fri, 27 Nov 2009 23:43:09 +0000 |
| Subject: | #50315 [Csd]: Use of config.cache causes missing HAVE_FORK define | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-145152@lists.php.net to get a copy of this message | ||
ID: 50315
Updated by: rasmus@php.net
Reported By: jd at cpanel dot net
Status: Closed
Bug Type: Compile Failure
Operating System: Centos 5 AMD64
PHP Version: 5.2.12RC3
New Comment:
Fixed by simply not caching this check.
Previous Comments:
------------------------------------------------------------------------
[2009-11-27 23:41:13] svn@php.net
Automatic comment from SVN on behalf of rasmus
Revision: http://svn.php.net/viewvc/?view=revision&revision=291364
Log: Fix bug #50315
------------------------------------------------------------------------
[2009-11-27 23:11:33] jd at cpanel dot net
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 this bug report at http://bugs.php.net/?id=50315&edit=1