Questions tagged [pcntl]

PCNTL is short for Process Control, a PHP Extension implementing the Unix style of process creation, program execution, signal handling and process termination.

Documentation of the PHP PCNTL extension can be found here: https://php.net/pcntl

157 questions
0
votes
1 answer

creating a new db connection based on an existing one in Zend Framework

I have a CLI script that uses Zend Framework and forks a child process. It works well when I start it from CLI but when I start it from a bash script the db connection is closed when the bash script ends. I think I need to give the child a new db…
SunWuKung
  • 403
  • 4
  • 14
0
votes
1 answer

PNCTL not enabled in php even after compiling

I just compiled my PHP with --enable-pcntl, but when I try to access the process control functions in PHP, I get: Fatal error: Call to undefined function pcntl_fork() Am I missing something? My apache is not compiled with prefork. Is that required…
Rohit Chopra
  • 2,653
  • 4
  • 26
  • 31
-1
votes
1 answer

What environment should PCNTL be used in?

The PHP manual states: Process Control should not be enabled within a web server environment and unexpected results may happen if any Process Control functions are used within a web server environment. However, the manual does not state what…
Xavier
  • 113
  • 9
-1
votes
1 answer

Why appear "Linux host path" in the process of the code "echo"? Usage PHP extension "PCNTL"

I use PHP extension "PCNTL" write some codes, and run it in terminal, but why appear the Linux host Path "gdy@localhost:~/myDev/webroot/spider/my$" This is my echo in terminal This is my PHP CODE
Damon
  • 83
  • 1
  • 7
-1
votes
1 answer

Who to install PCNTL Extension on Cpanel

I am using php version 5.5.3 and want to install PCNTL, can you help me? It's VPS and I have root and WHM. I tried: Get your current php version (check phpinfo()) Get the sources for that version here: http://www.php.net/releases/ Extract this…
KAKHA13
  • 193
  • 1
  • 2
  • 12
-3
votes
1 answer

PHP PCNTL - trustful error logging possible?

My current application makes an ajax call to a PHP page which makes an API request to a JSP page on our Oracle platform. Currently the PHP script simply trusts that valid data was returned from JSP and sends back a {true} json response to the ajax…
AlienWebguy
  • 73,720
  • 16
  • 109
  • 137
-4
votes
1 answer

Use cakeresque on xampp on windows

I want to use cakeresque running on, and first I need to install PhpRedis. When I install cakeresque with composer.json it gives me this error: kamisama/php-resque-ex 1.3.0 requires ext-pcntl * -> the requested PHP extension > pcntl is missing from…
1 2 3
10
11