????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 18.117.71.244 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 status page --SKIPIF-- <?php include "skipif.inc"; ?> --XFAIL-- randomly intermittently failing all the time in CI, with diff: 017+ active processes: 0 018+ total processes: 1 017- active processes: 1 018- total processes: 2 --FILE-- <?php include "include.inc"; $logfile = dirname(__FILE__).'/php-fpm.log.tmp'; $port = 9000+PHP_INT_SIZE; $cfg = <<<EOT [global] error_log = $logfile [unconfined] listen = 127.0.0.1:$port pm.status_path = /status 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 { echo run_request('127.0.0.1', $port, '/status'); $html = run_request('127.0.0.1', $port, '/status', 'html'); var_dump(strpos($html, 'text/html') && strpos($html, 'DOCTYPE') && strpos($html, 'PHP-FPM Status Page')); $json = run_request('127.0.0.1', $port, '/status', 'json'); var_dump(strpos($json, 'application/json') && strpos($json, '"pool":"unconfined"')); $xml = run_request('127.0.0.1', $port, '/status', 'xml'); var_dump(strpos($xml, 'text/xml') && strpos($xml, '<?xml')); echo "IPv4 ok\n"; } catch (Exception $e) { echo "IPv4 error\n"; } proc_terminate($fpm); stream_get_contents($tail); fclose($tail); proc_close($fpm); } ?> --EXPECTF-- [%d-%s-%d %d:%d:%d] NOTICE: fpm is running, pid %d [%d-%s-%d %d:%d:%d] NOTICE: ready to handle connections X-Powered-By: PHP/%s Expires: %s Cache-Control: %s Content-type: text/plain%s pool: unconfined process manager: dynamic start time: %s start since: %d accepted conn: 1 listen queue: 0 max listen queue: 0 listen queue len: %d idle processes: 1 active processes: 1 total processes: 2 max active processes: 1 max children reached: 0 slow requests: 0 bool(true) bool(true) bool(true) IPv4 ok --CLEAN-- <?php $logfile = dirname(__FILE__).'/php-fpm.log.tmp'; @unlink($logfile); ?>