@ 2016-01-03T17:24:53Z <?php
var_dump(parse_ini_string('[unix_http_server]
file = /tmp/supervisor.sock
chmod = 0777
chown= nobody:nogroup
username = user
password = 123
[inet_http_server]
port = 127.0.0.1:9001
username = user
password = 123
[supervisord]
logfile = /tmp/supervisord.log
logfile_maxbytes = 50MB
logfile_backups=10 ;comment
loglevel = info
pidfile = /tmp/supervisord.pid
nodaemon = false
minfds = 1024
minprocs = 200
umask = 022
user = chrism
identifier = supervisor
directory = /tmp
nocleanup = true
childlogdir = /tmp
strip_ansi = false
environment = "KEY1="value1",KEY2="value2""
[supervisorctl]
serverurl = unix:///tmp/supervisor.sock
username = chris
password = 123
prompt = mysupervisor
[program:cat]
command = /bin/cat
process_name = "%(program_name)s"
numprocs = 1
directory = /tmp
umask = 022
priority = 999
autostart = true
autorestart = true
startsecs = 10
startretries = 3
exitcodes = 0,2
stopsignal = TERM
stopwaitsecs = 10
user = chrism
redirect_stderr = false
stdout_logfile = /a/path
stdout_logfile_maxbytes = 1MB
stdout_logfile_backups = 10
stdout_capture_maxbytes = 1MB
stderr_logfile = /a/path
stderr_logfile_maxbytes = 1MB
stderr_logfile_backups = 10
stderr_capture_maxbytes = 1MB
environment = "A="1",B="2""
serverurl = AUTO
[program:cat2]
command = /bin/cat
process_name = "%(program_name)s"
numprocs = 1
directory = /tmp
umask = 022
priority = 999
autostart = true
autorestart = true
startsecs = 10
startretries = 3
exitcodes = 0,2
stopsignal = TERM
stopwaitsecs = 10
user = chrism
redirect_stderr = false
stdout_logfile = /a/path
stdout_logfile_maxbytes = 1048576
stdout_logfile_backups = 10
stdout_capture_maxbytes = 1048576
stderr_logfile = /a/path
stderr_logfile_maxbytes = 1048576
stderr_logfile_backups = 10
stderr_capture_maxbytes = 1048576
environment = "A="1",B="2""
serverurl = AUTO
[include]
files = /an/absolute/filename.conf /an/absolute/*.conf foo.conf config??.conf
[group:foo]
programs = bar,baz
priority = 999
[group:foo]
programs = bar,baz
priority = 999
[fcgi-program:fcgiprogramname]
command = /usr/bin/example.fcgi
socket = "unix:///var/run/supervisor/%(program_name)s.sock"
socket_owner = chrism
socket_mode = 0700
process_name = "%(program_name)s_%(process_num)02d"
numprocs = 5
priority = 999
autostart = true
autorestart = unexpected
startsecs = 1
startretries = 3
exitcodes = 0,2
stopsignal = QUIT
stopwaitsecs = 10
user = chrism
redirect_stderr = true
stdout_logfile = /a/path
stdout_logfile_maxbytes = 1MB
stdout_logfile_backups = 10
stderr_logfile = /a/path
stderr_logfile_maxbytes = 1MB
stderr_logfile_backups = 10
environment = "A="1",B="2""
serverurl = AUTO
[eventlistener:theeventlistenername]
command = /bin/eventlistener
process_name = "%(program_name)s_%(process_num)02d"
numprocs = 5
events = PROCESS_STATE
buffer_size = 10
priority = -1
autostart = true
autorestart = unexpected
startsecs = 1
startretries = 3
exitcodes = 0,2
stopsignal = QUIT
stopwaitsecs = 10
user = chrism
redirect_stderr = true
stdout_logfile = /a/path
stdout_logfile_maxbytes = 1MB
stdout_logfile_backups = 10
stderr_logfile = /a/path
stderr_logfile_maxbytes = 1MB
stderr_logfile_backups = 10
environment = "A="1",B="2""
result_handler = supervisor.dispatchers:default_handler
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
retries = 1
',
true, INI_SCANNER_TYPED));
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 7.0.0 - 7.0.33 , 7.1.0 - 7.1.33 , 7.2.0 - 7.2.34 , 7.3.0 - 7.3.33 , 7.4.0 - 7.4.33 , 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.6 array(11) {
["unix_http_server"]=>
array(5) {
["file"]=>
string(20) "/tmp/supervisor.sock"
["chmod"]=>
int(777)
["chown"]=>
string(14) "nobody:nogroup"
["username"]=>
string(4) "user"
["password"]=>
int(123)
}
["inet_http_server"]=>
array(3) {
["port"]=>
string(14) "127.0.0.1:9001"
["username"]=>
string(4) "user"
["password"]=>
int(123)
}
["supervisord"]=>
array(16) {
["logfile"]=>
string(20) "/tmp/supervisord.log"
["logfile_maxbytes"]=>
string(4) "50MB"
["logfile_backups"]=>
int(10)
["loglevel"]=>
string(4) "info"
["pidfile"]=>
string(20) "/tmp/supervisord.pid"
["nodaemon"]=>
bool(false)
["minfds"]=>
int(1024)
["minprocs"]=>
int(200)
["umask"]=>
int(22)
["user"]=>
string(6) "chrism"
["identifier"]=>
string(10) "supervisor"
["directory"]=>
string(4) "/tmp"
["nocleanup"]=>
bool(true)
["childlogdir"]=>
string(4) "/tmp"
["strip_ansi"]=>
bool(false)
["environment"]=>
string(23) "KEY1=value1,KEY2=value2"
}
["supervisorctl"]=>
array(4) {
["serverurl"]=>
string(27) "unix:///tmp/supervisor.sock"
["username"]=>
string(5) "chris"
["password"]=>
int(123)
["prompt"]=>
string(12) "mysupervisor"
}
["program:cat"]=>
array(25) {
["command"]=>
string(8) "/bin/cat"
["process_name"]=>
string(16) "%(program_name)s"
["numprocs"]=>
int(1)
["directory"]=>
string(4) "/tmp"
["umask"]=>
int(22)
["priority"]=>
int(999)
["autostart"]=>
bool(true)
["autorestart"]=>
bool(true)
["startsecs"]=>
int(10)
["startretries"]=>
int(3)
["exitcodes"]=>
string(3) "0,2"
["stopsignal"]=>
string(4) "TERM"
["stopwaitsecs"]=>
int(10)
["user"]=>
string(6) "chrism"
["redirect_stderr"]=>
bool(false)
["stdout_logfile"]=>
string(7) "/a/path"
["stdout_logfile_maxbytes"]=>
string(3) "1MB"
["stdout_logfile_backups"]=>
int(10)
["stdout_capture_maxbytes"]=>
string(3) "1MB"
["stderr_logfile"]=>
string(7) "/a/path"
["stderr_logfile_maxbytes"]=>
string(3) "1MB"
["stderr_logfile_backups"]=>
int(10)
["stderr_capture_maxbytes"]=>
string(3) "1MB"
["environment"]=>
string(7) "A=1,B=2"
["serverurl"]=>
string(4) "AUTO"
}
["program:cat2"]=>
array(25) {
["command"]=>
string(8) "/bin/cat"
["process_name"]=>
string(16) "%(program_name)s"
["numprocs"]=>
int(1)
["directory"]=>
string(4) "/tmp"
["umask"]=>
int(22)
["priority"]=>
int(999)
["autostart"]=>
bool(true)
["autorestart"]=>
bool(true)
["startsecs"]=>
int(10)
["startretries"]=>
int(3)
["exitcodes"]=>
string(3) "0,2"
["stopsignal"]=>
string(4) "TERM"
["stopwaitsecs"]=>
int(10)
["user"]=>
string(6) "chrism"
["redirect_stderr"]=>
bool(false)
["stdout_logfile"]=>
string(7) "/a/path"
["stdout_logfile_maxbytes"]=>
int(1048576)
["stdout_logfile_backups"]=>
int(10)
["stdout_capture_maxbytes"]=>
int(1048576)
["stderr_logfile"]=>
string(7) "/a/path"
["stderr_logfile_maxbytes"]=>
int(1048576)
["stderr_logfile_backups"]=>
int(10)
["stderr_capture_maxbytes"]=>
int(1048576)
["environment"]=>
string(7) "A=1,B=2"
["serverurl"]=>
string(4) "AUTO"
}
["include"]=>
array(1) {
["files"]=>
string(69) "/an/absolute/filename.conf /an/absolute/*.conf foo.conf config??.conf"
}
["group:foo"]=>
array(2) {
["programs"]=>
string(7) "bar,baz"
["priority"]=>
int(999)
}
["fcgi-program:fcgiprogramname"]=>
array(24) {
["command"]=>
string(21) "/usr/bin/example.fcgi"
["socket"]=>
string(48) "unix:///var/run/supervisor/%(program_name)s.sock"
["socket_owner"]=>
string(6) "chrism"
["socket_mode"]=>
int(700)
["process_name"]=>
string(34) "%(program_name)s_%(process_num)02d"
["numprocs"]=>
int(5)
["priority"]=>
int(999)
["autostart"]=>
bool(true)
["autorestart"]=>
string(10) "unexpected"
["startsecs"]=>
int(1)
["startretries"]=>
int(3)
["exitcodes"]=>
string(3) "0,2"
["stopsignal"]=>
string(4) "QUIT"
["stopwaitsecs"]=>
int(10)
["user"]=>
string(6) "chrism"
["redirect_stderr"]=>
bool(true)
["stdout_logfile"]=>
string(7) "/a/path"
["stdout_logfile_maxbytes"]=>
string(3) "1MB"
["stdout_logfile_backups"]=>
int(10)
["stderr_logfile"]=>
string(7) "/a/path"
["stderr_logfile_maxbytes"]=>
string(3) "1MB"
["stderr_logfile_backups"]=>
int(10)
["environment"]=>
string(7) "A=1,B=2"
["serverurl"]=>
string(4) "AUTO"
}
["eventlistener:theeventlistenername"]=>
array(23) {
["command"]=>
string(18) "/bin/eventlistener"
["process_name"]=>
string(34) "%(program_name)s_%(process_num)02d"
["numprocs"]=>
int(5)
["events"]=>
string(13) "PROCESS_STATE"
["buffer_size"]=>
int(10)
["priority"]=>
int(-1)
["autostart"]=>
bool(true)
["autorestart"]=>
string(10) "unexpected"
["startsecs"]=>
int(1)
["startretries"]=>
int(3)
["exitcodes"]=>
string(3) "0,2"
["stopsignal"]=>
string(4) "QUIT"
["stopwaitsecs"]=>
int(10)
["user"]=>
string(6) "chrism"
["redirect_stderr"]=>
bool(true)
["stdout_logfile"]=>
string(7) "/a/path"
["stdout_logfile_maxbytes"]=>
string(3) "1MB"
["stdout_logfile_backups"]=>
int(10)
["stderr_logfile"]=>
string(7) "/a/path"
["stderr_logfile_maxbytes"]=>
string(3) "1MB"
["stderr_logfile_backups"]=>
int(10)
["environment"]=>
string(7) "A=1,B=2"
["result_handler"]=>
string(38) "supervisor.dispatchers:default_handler"
}
["rpcinterface:supervisor"]=>
array(2) {
["supervisor.rpcinterface_factory"]=>
string(46) "supervisor.rpcinterface:make_main_rpcinterface"
["retries"]=>
int(1)
}
}
Output for 5.6.1 - 5.6.40 Process exited with code 139 . Output for 5.5.0 - 5.5.38 , 5.6.0 Notice: Use of undefined constant INI_SCANNER_TYPED - assumed 'INI_SCANNER_TYPED' in /in/FToIb on line 159
Warning: parse_ini_string() expects parameter 3 to be long, string given in /in/FToIb on line 159
bool(false)
preferences:dark mode live preview
294.22 ms | 402 KiB | 339 Q