????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 216.73.216.172 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/home/b8009/php-5.6.22/sapi/fpm/tests/ |
Upload File : |
--TEST-- FPM: Test Unix Domain Socket with Posix ACL --SKIPIF-- <?php include "skipif.inc"; if (!(file_exists('/usr/bin/getfacl') && file_exists('/etc/passwd') && file_exists('/etc/group'))) die ("skip missing getfacl command"); ?> --XFAIL-- Mark as XFAIL because --with-fpm-acl is not enabled in default build --FILE-- <?php include "include.inc"; $logfile = dirname(__FILE__).'/php-fpm.log.tmp'; $socket = dirname(__FILE__).'/php-fpm.sock'; // Select 3 users and 2 groups known by system (avoid root) $users = $groups = []; $tmp = file('/etc/passwd'); for ($i=1 ; $i<=3 ; $i++) { $tab = explode(':', $tmp[$i]); $users[] = $tab[0]; } $users = implode(',', $users); $tmp = file('/etc/group'); for ($i=1 ; $i<=2 ; $i++) { $tab = explode(':', $tmp[$i]); $groups[] = $tab[0]; } $groups = implode(',', $groups); $cfg = <<<EOT [global] error_log = $logfile [unconfined] listen = $socket listen.acl_users = $users listen.acl_groups = $groups listen.mode = 0600 ping.path = /ping ping.response = pong pm = dynamic pm.max_children = 5 pm.start_servers = 2 pm.min_spare_servers = 1 pm.max_spare_servers = 3 EOT; $fpm = run_fpm($cfg, $tail); if (is_resource($fpm)) { fpm_display_log($tail, 2); try { var_dump(strpos(run_request('unix://'.$socket, -1), 'pong')); echo "UDS ok\n"; } catch (Exception $e) { echo "UDS error\n"; } passthru("/usr/bin/getfacl -cp $socket"); proc_terminate($fpm); echo stream_get_contents($tail); fclose($tail); proc_close($fpm); } ?> --EXPECTF-- [%s] NOTICE: fpm is running, pid %d [%s] NOTICE: ready to handle connections int(%d) UDS ok user::rw- user:%s:rw- user:%s:rw- user:%s:rw- group::--- group:%s:rw- group:%s:rw- mask::rw- other::--- [%s] NOTICE: Terminating ... [%s] NOTICE: exiting, bye-bye! --CLEAN-- <?php $logfile = dirname(__FILE__).'/php-fpm.log.tmp'; @unlink($logfile); ?>