From:             php at dogtoe dot com
Operating system: Linux zeus 2.6.15-gentoo-r1
PHP version:      5.1.2
PHP Bug Type:     PCNTL related
Bug description:  pcntl functions working under mod_php under some distros 
(FreeBSD/Debian)

Description:
------------
I'm hearing contradicting results about pcntl functions working in apache.
The manual clearly states they were not meant for webserver environments,
but does not say they wont work for webserver environments. It also states
that it WILL work for CGI/CLI, but does not say it will NOT work for
mod_php (apache module).

I'd like to bring attention to bug #'s 18536 and 32896, where users have
said that the pcntl extension is not available. Developers derick and
sniper have reported that this is not possible under apache (mod_php) but
only in cgi/cli mode.

Well, here's contradicting proof:

TML, an Op in #php on Freenode, has PCNTL working under a debian install,
not even self-compiled, as well as other private test-dev machines. Here
is phpinfo() from the debian install: http://joeysmith.com/info.php

Additionally, I have confirmed reports of it working under FreeBSD, where
the user simply used --enable-pcntl as part of the build command.

I checked with the Gentoo ebuild (package) maintainers and they all claim
this is a PHP problem as they are simply passing --enable-pcntl into the
build command.

Regardless of any personal bias against using pcntl functions under a
webserver, I'd like to know once and foreall if it is possible to somehow
enable these functions under mod_php in apache2 because they appear to not
even be defined.

Reproduce code:
---------------
$pid = pcntl_fork();

Expected result:
----------------
No errors. 

PCNTL module to show up in phpinfo(). 

No more contradicting results.

Actual result:
--------------
$pid = pcntl_fork();

Returns:

Fatal error: Call to undefined function pcntl_fork() in
/var/www/localhost/htdocs/test/index.php on line 2

-- 
Edit bug report at http://bugs.php.net/?id=37267&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=37267&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=37267&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=37267&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=37267&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=37267&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=37267&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=37267&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=37267&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=37267&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=37267&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=37267&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=37267&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=37267&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=37267&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=37267&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=37267&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=37267&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=37267&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=37267&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=37267&r=mysqlcfg

Reply via email to