title: Enable PCNTL in Ubuntu PHP - test fails
body: <p>I need help on How to: Enable PCNTL in Ubuntu PHP.</p>
  
  <pre><code>$ mkdir /tmp/phpsource
  $ cd /tmp/phpsource
  
  
  $ wget http://museum.php.net/php5/php-5.3.2.tar.gz
  $ tar xvf php-5.3.2.tar.gz
  $ cd php-5.3.2/ext/pcntl
  
  
  $ phpize   -bash: phpize: command not found
  </code></pre>
  
  <p>Everything went fine until I tried to run phpize! And then I get the error '-bash: phpize: command not found' ?? Any ideas?</p>
  
  <p>UPDATE ran:</p>
  
  <pre><code>$ sudo apt-get update
  </code></pre>
  
  <p>and then ran:</p>
  
  <pre><code>$ sudo apt-get install php5-dev
  </code></pre>
  
  <p>With the help of Nick I managed to finish the procedure. But 'make test' fails???</p>
  
  <pre><code>$ phpize
  $ ./configure
  $ make
  
  $ cp modules/pcntl.so /usr/lib/php5/20090626/
  $ echo "extension=pcntl.so" &gt; /etc/php5/conf.d/pcntl.ini
  
  $ make test - FAILED!
  </code></pre>
  
  <p>HELP: I typed 'echo "extension=pcntl.so > /etc/php5/conf.d/pcntl.ini' instead of 'echo "extension=pcntl.so" > /etc/php5/conf.d/pcntl.ini' the first time I ran this. Is that BAD?</p>
  
  <p>--------------------------------- Make TEst Error Messages --------------------------------------</p>
  
  <pre><code>PHP Deprecated: Comments starting with '#' are deprecated in /tmp/phpsource/php-5.3.2/ext/pcntl/tmp-php.ini on line 1850 in Unknown on line 0
  PHP Deprecated: Comments starting with '#' are deprecated in /tmp/phpsource/php-5.3.2/ext/pcntl/tmp-php.ini on line 1852 in Unknown on line 0
  PHP Deprecated: Comments starting with '#' are deprecated in /tmp/phpsource/php-5.3.2/ext/pcntl/tmp-php.ini on line 1850 in Unknown on line 0
  PHP Deprecated: Comments starting with '#' are deprecated in /tmp/phpsource/php-5.3.2/ext/pcntl/tmp-php.ini on line 1852 in Unknown on line 0
  PHP Warning: Module 'pcntl' already loaded in Unknown on line 0
  
  Warning: Module 'pcntl' already loaded in Unknown on line 0
  PHP Deprecated: Comments starting with '#' are deprecated in /tmp/phpsource/php-5.3.2/ext/pcntl/tmp-php.ini on line 1850 in Unknown on line 0
  PHP Deprecated: Comments starting with '#' are deprecated in /tmp/phpsource/php-5.3.2/ext/pcntl/tmp-php.ini on line 1852 in Unknown on line 0
  PHP Warning: Module 'pcntl' already loaded in Unknown on line 0
  
  Warning: Module 'pcntl' already loaded in Unknown on line 0
  
  =====================================================================
  PHP : /usr/bin/php
  PHP_SAPI : cli
  PHP_VERSION : 5.3.2-1ubuntu4.18
  ZEND_VERSION: 2.3.0
  PHP_OS : Linux - Linux lvps217-8-253-63.vps.webfusion.co.uk 2.6.32-042stab068.8 #1 SMP Fri Dec 7 17:06:14 MSK 2012 x86_64
  INI actual : /tmp/phpsource/php-5.3.2/ext/pcntl/tmp-php.ini
  More .INIs :
  CWD : /tmp/phpsource/php-5.3.2/ext/pcntl
  Extra dirs :
  VALGRIND : Not used
  =====================================================================
  TIME START 2013-01-02 23:05:56
  =====================================================================
  FAIL Test pcntl wait functionality [tests/001.phpt]
  FAIL pcntl: pcntl_sigprocmask(), pcntl_sigwaitinfo(), pcntl_sigtimedwait() [tests/002.phpt]
  FAIL pcntl: SIG_BLOCK, SIG_UNBLOCK, SIG_SETMASK [tests/003.phpt]
  FAIL Bug #47566 (return value of pcntl_wexitstatus()) [tests/bug47566.phpt]
  FAIL pcntl_alarm() [tests/pcntl_alarm.phpt]
  FAIL pcntl_exec() [tests/pcntl_exec.phpt]
  FAIL pcntl_exec() 2 [tests/pcntl_exec_2.phpt]
  FAIL pcntl_exec() 3 [tests/pcntl_exec_3.phpt]
  FAIL Test function pcntl_fork() by calling it with its expected arguments [tests/pcntl_fork_basic.phpt]
  FAIL Test function pcntl_fork() by testing the process isolation in the forking hierarchy father -&gt; son -&gt; grandson where father can not knows his grandson [tests/pcntl_fork_variation.phpt]
  FAIL pcntl_signal() [tests/pcntl_signal.phpt]
  FAIL pcnt_signal_dispatch() [tests/pcntl_signal_dispatch.phpt]
  FAIL pcntl_wait() [tests/pcntl_wait.phpt]
  FAIL Closures as a signal handler [tests/signal_closure_handler.phpt]
  =====================================================================
  TIME END 2013-01-02 23:05:59
  
  =====================================================================
  TEST RESULT SUMMARY
  ---------------------------------------------------------------------
  Exts skipped : 0
  Exts tested : 44
  ---------------------------------------------------------------------
  
  Number of tests : 14 14
  Tests skipped : 0 ( 0.0%) --------
  Tests warned : 0 ( 0.0%) ( 0.0%)
  Tests failed : 14 (100.0%) (100.0%)
  Expected fail : 0 ( 0.0%) ( 0.0%)
  Tests passed : 0 ( 0.0%) ( 0.0%)
  ---------------------------------------------------------------------
  Time taken : 3 seconds
  =====================================================================
  
  =====================================================================
  FAILED TEST SUMMARY
  ---------------------------------------------------------------------
  Test pcntl wait functionality [tests/001.phpt]
  pcntl: pcntl_sigprocmask(), pcntl_sigwaitinfo(), pcntl_sigtimedwait() [tests/002.phpt]
  pcntl: SIG_BLOCK, SIG_UNBLOCK, SIG_SETMASK [tests/003.phpt]
  Bug #47566 (return value of pcntl_wexitstatus()) [tests/bug47566.phpt]
  pcntl_alarm() [tests/pcntl_alarm.phpt]
  pcntl_exec() [tests/pcntl_exec.phpt]
  pcntl_exec() 2 [tests/pcntl_exec_2.phpt]
  pcntl_exec() 3 [tests/pcntl_exec_3.phpt]
  Test function pcntl_fork() by calling it with its expected arguments [tests/pcntl_fork_basic.phpt]
  Test function pcntl_fork() by testing the process isolation in the forking hierarchy father -&gt; son -&gt; grandson where father can not knows his grandson [tests/pcntl_fork_variation.phpt]
  pcntl_signal() [tests/pcntl_signal.phpt]
  pcnt_signal_dispatch() [tests/pcntl_signal_dispatch.phpt]
  pcntl_wait() [tests/pcntl_wait.phpt]
  Closures as a signal handler [tests/signal_closure_handler.phpt]
  </code></pre>
  
  <p>ANY ideas!?!
  Carl</p>