ID: 37267 User updated by: php at dogtoe dot com Reported By: php at dogtoe dot com Status: Open Bug Type: PCNTL related Operating System: Linux zeus 2.6.15-gentoo-r1 PHP Version: 5.1.2 New Comment:
Can anyone confirm that the only way to obtain the functions in apache is to generate a shared module for pcntl? Previous Comments: ------------------------------------------------------------------------ [2006-05-01 22:13:11] php at dogtoe dot com 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 this bug report at http://bugs.php.net/?id=37267&edit=1
