php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50315 Use of config.cache causes missing HAVE_FORK define
Submitted: 2009-11-27 23:11 UTC Modified: 2009-11-27 23:43 UTC
From: jd at cpanel dot net Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5.2.12RC3 OS: Centos 5 AMD64
Private report: No CVE-ID: None
 [2009-11-27 23:11 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-27 23:41 UTC] 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:43 UTC] rasmus@php.net
Fixed by simply not caching this check.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 17:01:31 2024 UTC