php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77453 PCNTL tests skipped/failed
Submitted: 2019-01-13 15:57 UTC Modified: 2019-01-27 04:22 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: ursuleacv at gmail dot com Assigned:
Status: No Feedback Package: PCNTL related
PHP Version: 7.2.14 OS: CentOS Linux release 7.6.1810
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2019-01-13 15:57 UTC] ursuleacv at gmail dot com
Description:
------------
PHP Version => 7.2.14

System => Linux 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64
Build Date => Jan  8 2019 14:04:52

posix

Revision => $Id: 0a764bab332255746424a1e6cfbaaeebab998e4c $

pcntl

pcntl support => enabled



Test script:
---------------
# Install PHP 7.2.*

sudo yum -y install epel-release
sudo yum y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
sudo yum-config-manager --enable remi-php72
sudo yum -y update
sudo yum -y install php php-fpm php-gd php-json php-mbstring php-mysqlnd php-xml php-xmlrpc php-opcache
sudo yum -y install php-process

# Download php 7.2 from http://php.net/get/php-7.2.14.tar.xz/from/a/mirror 
cd php-7.2.14/ext/pcntl/
sudo phpize
sudo ./configure --enable-pcntl
sudo make
sudo make test

# result

=====================================================================
TIME START 2019-01-13 02:05:47
=====================================================================
SKIP Test pcntl wait functionality [tests/001.phpt] reason: posix_kill() not available
SKIP pcntl: pcntl_sigprocmask(), pcntl_sigwaitinfo(), pcntl_sigtimedwait() [tests/002.phpt] reason: posix extension not available
SKIP pcntl: SIG_BLOCK, SIG_UNBLOCK, SIG_SETMASK [tests/003.phpt] reason: posix extension not available
SKIP Asynchronous signal handling through VM interrupts [tests/async_signals.phpt] reason: posix_kill() not available
FAIL Bug #47566 (return value of pcntl_wexitstatus()) [tests/bug47566.phpt] 
FAIL Bug #72154 (pcntl_wait/pcntl_waitpid array internal structure overwrite) [tests/bug72154.phpt] 
SKIP Bug #73783: (SIG_IGN needs to be set to prevent syscals from returning early) [tests/bug73783.phpt] reason: posix extension not available
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] 
SKIP Test function pcntl_fork() by calling it with its expected arguments [tests/pcntl_fork_basic.phpt] reason: posix extension not available
SKIP Test function pcntl_fork() by testing the process isolation in the forking hierarchy father -> son -> grandson where father can not knows his grandson [tests/pcntl_fork_variation.phpt] reason: posix extension not available
FAIL Test pcntl_get_last_error() [tests/pcntl_get_last_error.phpt] 
SKIP pcntl_signal() [tests/pcntl_signal.phpt] reason: posix extension not available
SKIP pcnt_signal_dispatch() [tests/pcntl_signal_dispatch.phpt] reason: posix_kill() not available
SKIP pcntl_signal_get_handler() [tests/pcntl_signal_get_handler.phpt] reason: posix extension not available
SKIP pcntl_wait() [tests/pcntl_wait.phpt] reason: posix extension not available
SKIP pcntl_wait() and rusage [tests/pcntl_wait_rusage1.phpt] reason: posix extension not available
SKIP pcntl_waitpid() and rusage [tests/pcntl_waitpid_rusage1.phpt] reason: posix extension not available
SKIP Closures as a signal handler [tests/signal_closure_handler.phpt] reason: posix_kill() not available
=====================================================================
TIME END 2019-01-13 02:05:49

=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :    0
Exts tested     :   14
---------------------------------------------------------------------

Number of tests :   21                 7
Tests skipped   :   14 ( 66.7%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :    7 ( 33.3%) (100.0%)
Expected fail   :    0 (  0.0%) (  0.0%)
Tests passed    :    0 (  0.0%) (  0.0%)
---------------------------------------------------------------------
Time taken      :    2 seconds
=====================================================================



FAILED TEST SUMMARY
---------------------------------------------------------------------
Bug #47566 (return value of pcntl_wexitstatus()) [tests/bug47566.phpt]
Bug #72154 (pcntl_wait/pcntl_waitpid array internal structure overwrite) [tests/bug72154.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 pcntl_get_last_error() [tests/pcntl_get_last_error.phpt]
=====================================================================


Expected result:
----------------
tests should pass

Actual result:
--------------
Number of tests :   21                 7
Tests skipped   :   14 ( 66.7%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :    7 ( 33.3%) (100.0%)
Expected fail   :    0 (  0.0%) (  0.0%)
Tests passed    :    0 (  0.0%) (  0.0%)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-01-14 09:11 UTC] nikic@php.net
-Status: Open +Status: Feedback
 [2019-01-14 09:11 UTC] nikic@php.net
Can you please provide the diff output for some/all of these tests? It's located in tests/pcntl_exec.diff etc.
 [2019-01-27 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue May 21 02:01:26 2019 UTC