<?php
$value = parse_ini_file('data://text/plain,[reply]
0 = "In progress (a normal message submission, with no error encountered so far)"
10 = "Delivered upstream"
11 = "Delivered to mobile"', true);
var_dump($value);
var_dump($value['reply'][11]);
var_dump($value['reply']['11']);
Warning: parse_ini_file(): data:// wrapper is disabled in the server configuration by allow_url_include=0 in /in/43o2N on line 3
Warning: parse_ini_file(data://text/plain,[reply]
0 = "In progress (a normal message submission, with no error encountered so far)"
10 = "Delivered upstream"
11 = "Delivered to mobile"): Failed to open stream: no suitable wrapper could be found in /in/43o2N on line 3
bool(false)
Warning: Trying to access array offset on false in /in/43o2N on line 9
Warning: Trying to access array offset on null in /in/43o2N on line 9
NULL
Warning: Trying to access array offset on false in /in/43o2N on line 10
Warning: Trying to access array offset on null in /in/43o2N on line 10
NULL
Output for 8.2.0 - 8.2.18
Warning: parse_ini_file(): data:// wrapper is disabled in the server configuration by allow_url_include=0 in /in/43o2N on line 3
Warning: parse_ini_file(data://text/plain,[reply]
0 = "In progress (a normal message submission, with no error encountered so far)"
10 = "Delivered upstream"
11 = "Delivered to mobile"): Failed to open stream: no suitable wrapper could be found in /in/43o2N on line 3
bool(false)
Warning: Trying to access array offset on value of type bool in /in/43o2N on line 9
Warning: Trying to access array offset on value of type null in /in/43o2N on line 9
NULL
Warning: Trying to access array offset on value of type bool in /in/43o2N on line 10
Warning: Trying to access array offset on value of type null in /in/43o2N on line 10
NULL
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28
Warning: parse_ini_file(): data:// wrapper is disabled in the server configuration by allow_url_include=0 in /in/43o2N on line 6
Warning: parse_ini_file(data://text/plain,[reply]
0 = "In progress (a normal message submission, with no error encountered so far)"
10 = "Delivered upstream"
11 = "Delivered to mobile"): Failed to open stream: no suitable wrapper could be found in /in/43o2N on line 6
bool(false)
Warning: Trying to access array offset on value of type bool in /in/43o2N on line 9
Warning: Trying to access array offset on value of type null in /in/43o2N on line 9
NULL
Warning: Trying to access array offset on value of type bool in /in/43o2N on line 10
Warning: Trying to access array offset on value of type null in /in/43o2N on line 10
NULL
Output for 7.4.0 - 7.4.33
Warning: parse_ini_file(): data:// wrapper is disabled in the server configuration by allow_url_include=0 in /in/43o2N on line 6
Warning: parse_ini_file(data://text/plain,[reply]
0 = "In progress (a normal message submission, with no error encountered so far)"
10 = "Delivered upstream"
11 = "Delivered to mobile"): failed to open stream: no suitable wrapper could be found in /in/43o2N on line 6
bool(false)
Notice: Trying to access array offset on value of type bool in /in/43o2N on line 9
Notice: Trying to access array offset on value of type null in /in/43o2N on line 9
NULL
Notice: Trying to access array offset on value of type bool in /in/43o2N on line 10
Notice: Trying to access array offset on value of type null in /in/43o2N on line 10
NULL
Warning: parse_ini_file(): data:// wrapper is disabled in the server configuration by allow_url_include=0 in /in/43o2N on line 6
Warning: parse_ini_file(data://text/plain,[reply]
0 = "In progress (a normal message submission, with no error encountered so far)"
10 = "Delivered upstream"
11 = "Delivered to mobile"): failed to open stream: no suitable wrapper could be found in /in/43o2N on line 6
bool(false)
NULL
NULL
Output for 5.2.7 - 5.2.17
Warning: parse_ini_file(): URL file-access is disabled in the server configuration in /in/43o2N on line 6
Warning: parse_ini_file(data://text/plain,[reply]
0 = "In progress (a normal message submission, with no error encountered so far)"
10 = "Delivered upstream"
11 = "Delivered to mobile"): failed to open stream: no suitable wrapper could be found in /in/43o2N on line 6
bool(false)
NULL
NULL
Output for 5.2.1 - 5.2.6
Warning: parse_ini_file(): URL file-access is disabled in the server configuration in /in/43o2N on line 6
Warning: parse_ini_file(data://text/plain,[reply]
0 = "In progress (a normal message submission, with no error encountered so far)"
10 = "Delivered upstream"
11 = "Delivered to mobile"): failed to open stream: no suitable wrapper could be found in /in/43o2N on line 6
array(0) {
}
Notice: Undefined index: reply in /in/43o2N on line 9
NULL
Notice: Undefined index: reply in /in/43o2N on line 10
NULL
Output for 5.2.0
array(1) {
["reply"]=>
array(3) {
[0]=>
string(75) "In progress (a normal message submission, with no error encountered so far)"
[10]=>
string(18) "Delivered upstream"
[11]=>
string(19) "Delivered to mobile"
}
}
string(19) "Delivered to mobile"
string(19) "Delivered to mobile"
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6
Notice: parse_ini_file(): Unable to find the wrapper "data" - did you forget to enable it when you configured PHP? in /in/43o2N on line 6
Warning: parse_ini_file(data://text/plain,[reply]
0 = "In progress (a normal message submission, with no error encountered so far)"
10 = "Delivered upstream"
11 = "Delivered to mobile"): failed to open stream: No such file or directory in /in/43o2N on line 6
array(0) {
}
Notice: Undefined index: reply in /in/43o2N on line 9
NULL
Notice: Undefined index: reply in /in/43o2N on line 10
NULL
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.9
Warning: parse_ini_file(): Cannot open 'data://text/plain,[reply]
0 = "In progress (a normal message submission, with no error encountered so far)"
10 = "Delivered upstream"
11 = "Delivered to mobile"' for reading in /in/43o2N on line 6
bool(false)
NULL
NULL
Output for 4.3.0 - 4.3.1
Warning: parse_ini_file() [http://www.php.net/function.parse-ini-file]: Cannot open 'data://text/plain,[reply]
0 = "In progress (a normal message submission, with no error encountered so far)"
10 = "Delivered upstream"
11 = "Delivered to mobile"' for reading in /in/43o2N on line 6
bool(false)
NULL
NULL