Test: /tests/security/open_basedir_file_get_contents.phpt - Version 5.3.9-dev    

There are 2 different diffs reported by users for this test.

Count Diff
2 (67%)
003+
004+ Warning: mkdir(): File exists in /home/lester/Development/PHP5_3/tests/security/open_basedir.inc on line 64
005+ bool(false)
006+
007+ Warning: mkdir(): open_basedir restriction in effect. File(/home/lester/Development/PHP5_3/test/ok) is not within the allowed path(s): (.) in /home/lester/Development/PHP5_3/tests/security/open_basedir.inc on line 65
008+ bool(false)
009+
010+ Warning: mkdir(): open_basedir restriction in effect. File(/home/lester/Development/PHP5_3/test/bad) is not within the allowed path(s): (.) in /home/lester/Development/PHP5_3/tests/security/open_basedir.inc on line 66
011+ bool(false)
012+
013+ Warning: file_put_contents(): open_basedir restriction in effect. File(/home/lester/Development/PHP5_3/test/ok/ok.txt) is not within the allowed path(s): (.) in /home/lester/Development/PHP5_3/tests/security/open_basedir.inc on line 67
014+
015+ Warning: file_put_contents(/home/lester/Development/PHP5_3/test/ok/ok.txt): failed to open stream: Operation not permitted in /home/lester/Development/PHP5_3/tests/security/open_basedir.inc on line 67
016+
017+ Warning: file_put_contents(): open_basedir restriction in effect. File(/home/lester/Development/PHP5_3/test/bad/bad.txt) is not within the allowed path(s): (.) in /home/lester/Development/PHP5_3/tests/security/open_basedir.inc on line 68
018+
019+ Warning: file_put_contents(/home/lester/Development/PHP5_3/test/bad/bad.txt): failed to open stream: Operation not permitted in /home/lester/Development/PHP5_3/tests/security/open_basedir.inc on line 68
020+
021+ Warning: chdir(): open_basedir restriction in effect. File(/home/lester/Development/PHP5_3/test/ok) is not within the allowed path(s): (.) in /home/lester/Development/PHP5_3/tests/security/open_basedir.inc on line 99
022+ bool(false)
003- bool(true)
004- bool(true)
005- bool(true)
006- bool(true)
047- string(12) "Hello World!"
048- string(12) "Hello World!"
049- string(12) "Hello World!"
050- string(12) "Hello World!"
051- *** Finished testing open_basedir configuration [file_get_contents] ***
063+ string(0) ""
064+
065+ Warning: file_get_contents(): open_basedir restriction in effect. File(../ok/ok.txt) is not within the allowed path(s): (.) in %s/open_basedir_file_get_contents.php on line 8
066+
067+ Warning: file_get_contents(../ok/ok.txt): failed to open stream: Operation not permitted in %s/open_basedir_file_get_contents.php on line 8
068+ bool(false)
069+
070+ Warning: file_get_contents(): open_basedir restriction in effect. File(/home/lester/Development/PHP5_3/test/ok/ok.txt) is not within the allowed path(s): (.) in %s/open_basedir_file_get_contents.php on line 9
071+
072+ Warning: file_get_contents(/home/lester/Development/PHP5_3/test/ok/ok.txt): failed to open stream: Operation not permitted in %s/open_basedir_file_get_contents.php on line 9
073+ bool(false)
074+
075+ Warning: file_get_contents(): open_basedir restriction in effect. File(/home/lester/Development/PHP5_3/test/ok/../ok/ok.txt) is not within the allowed path(s): (.) in %s/open_basedir_file_get_contents.php on line 10
076+
077+ Warning: file_get_contents(/home/lester/Development/PHP5_3/test/ok/../ok/ok.txt): failed to open stream: Operation not permitted in %s/open_basedir_file_get_contents.php on line 10
078+ bool(false)
079+ *** Finished testing open_basedir configuration [file_get_contents] ***
1 (33%)
003+
004+ Warning: mkdir(): File exists in /home/braxton/src/php/php5.3-201110280630/tests/security/open_basedir.inc on line 64
005+ bool(false)
006+
007+ Warning: mkdir(): open_basedir restriction in effect. File(/home/braxton/src/php/php5.3-201110280630/test/ok) is not within the allowed path(s): (.) in /home/braxton/src/php/php5.3-201110280630/tests/security/open_basedir.inc on line 65
008+ bool(false)
009+
010+ Warning: mkdir(): open_basedir restriction in effect. File(/home/braxton/src/php/php5.3-201110280630/test/bad) is not within the allowed path(s): (.) in /home/braxton/src/php/php5.3-201110280630/tests/security/open_basedir.inc on line 66
011+ bool(false)
012+
013+ Warning: file_put_contents(): open_basedir restriction in effect. File(/home/braxton/src/php/php5.3-201110280630/test/ok/ok.txt) is not within the allowed path(s): (.) in /home/braxton/src/php/php5.3-201110280630/tests/security/open_basedir.inc on line 67
014+
015+ Warning: file_put_contents(/home/braxton/src/php/php5.3-201110280630/test/ok/ok.txt): failed to open stream: Operation not permitted in /home/braxton/src/php/php5.3-201110280630/tests/security/open_basedir.inc on line 67
016+
017+ Warning: file_put_contents(): open_basedir restriction in effect. File(/home/braxton/src/php/php5.3-201110280630/test/bad/bad.txt) is not within the allowed path(s): (.) in /home/braxton/src/php/php5.3-201110280630/tests/security/open_basedir.inc on line 68
018+
019+ Warning: file_put_contents(/home/braxton/src/php/php5.3-201110280630/test/bad/bad.txt): failed to open stream: Operation not permitted in /home/braxton/src/php/php5.3-201110280630/tests/security/open_basedir.inc on line 68
020+
021+ Warning: chdir(): open_basedir restriction in effect. File(/home/braxton/src/php/php5.3-201110280630/test/ok) is not within the allowed path(s): (.) in /home/braxton/src/php/php5.3-201110280630/tests/security/open_basedir.inc on line 99
022+ bool(false)
003- bool(true)
004- bool(true)
005- bool(true)
006- bool(true)
047- string(12) "Hello World!"
048- string(12) "Hello World!"
049- string(12) "Hello World!"
050- string(12) "Hello World!"
051- *** Finished testing open_basedir configuration [file_get_contents] ***
063+
064+ Warning: file_get_contents(ok.txt): failed to open stream: No such file or directory in %s/open_basedir_file_get_contents.php on line 7
065+ bool(false)
066+
067+ Warning: file_get_contents(): open_basedir restriction in effect. File(../ok/ok.txt) is not within the allowed path(s): (.) in %s/open_basedir_file_get_contents.php on line 8
068+
069+ Warning: file_get_contents(../ok/ok.txt): failed to open stream: Operation not permitted in %s/open_basedir_file_get_contents.php on line 8
070+ bool(false)
071+
072+ Warning: file_get_contents(): open_basedir restriction in effect. File(/home/braxton/src/php/php5.3-201110280630/test/ok/ok.txt) is not within the allowed path(s): (.) in %s/open_basedir_file_get_contents.php on line 9
073+
074+ Warning: file_get_contents(/home/braxton/src/php/php5.3-201110280630/test/ok/ok.txt): failed to open stream: Operation not permitted in %s/open_basedir_file_get_contents.php on line 9
075+ bool(false)
076+
077+ Warning: file_get_contents(): open_basedir restriction in effect. File(/home/braxton/src/php/php5.3-201110280630/test/ok/../ok/ok.txt) is not within the allowed path(s): (.) in %s/open_basedir_file_get_contents.php on line 10
078+
079+ Warning: file_get_contents(/home/braxton/src/php/php5.3-201110280630/test/ok/../ok/ok.txt): failed to open stream: Operation not permitted in %s/open_basedir_file_get_contents.php on line 10
080+ bool(false)
081+ *** Finished testing open_basedir configuration [file_get_contents] ***