Test: /tests/security/open_basedir_file.phpt - Version 7.2.0-dev    

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

Count Diff
13 (76%)
003+
004+ Warning: mkdir(): File exists in /home/edgarsandi/proj/personal/php-src/tests/security/open_basedir.inc on line 64
005+ bool(false)
006+
007+ Warning: mkdir(): open_basedir restriction in effect. File(/home/edgarsandi/proj/personal/php-src/test/ok) is not within the allowed path(s): (.) in /home/edgarsandi/proj/personal/php-src/tests/security/open_basedir.inc on line 65
008+ bool(false)
009+
010+ Warning: mkdir(): open_basedir restriction in effect. File(/home/edgarsandi/proj/personal/php-src/test/bad) is not within the allowed path(s): (.) in /home/edgarsandi/proj/personal/php-src/tests/security/open_basedir.inc on line 66
011+ bool(false)
012+
013+ Warning: file_put_contents(): open_basedir restriction in effect. File(/home/edgarsandi/proj/personal/php-src/test/ok/ok.txt) is not within the allowed path(s): (.) in /home/edgarsandi/proj/personal/php-src/tests/security/open_basedir.inc on line 67
014+
015+ Warning: file_put_contents(/home/edgarsandi/proj/personal/php-src/test/ok/ok.txt): failed to open stream: Operation not permitted in /home/edgarsandi/proj/personal/php-src/tests/security/open_basedir.inc on line 67
016+
017+ Warning: file_put_contents(): open_basedir restriction in effect. File(/home/edgarsandi/proj/personal/php-src/test/bad/bad.txt) is not within the allowed path(s): (.) in /home/edgarsandi/proj/personal/php-src/tests/security/open_basedir.inc on line 68
018+
019+ Warning: file_put_contents(/home/edgarsandi/proj/personal/php-src/test/bad/bad.txt): failed to open stream: Operation not permitted in /home/edgarsandi/proj/personal/php-src/tests/security/open_basedir.inc on line 68
020+
021+ Warning: chdir(): open_basedir restriction in effect. File(/home/edgarsandi/proj/personal/php-src/test/ok) is not within the allowed path(s): (.) in /home/edgarsandi/proj/personal/php-src/tests/security/open_basedir.inc on line 99
022+ bool(false)
003- bool(true)
004- bool(true)
005- bool(true)
006- bool(true)
047- array(1) {
048- [0]=>
049- string(12) "Hello World!"
051- array(1) {
052- [0]=>
053- string(12) "Hello World!"
054- }
055- array(1) {
056- [0]=>
057- string(12) "Hello World!"
058- }
059- array(1) {
060- [0]=>
061- string(12) "Hello World!"
062- }
063+ array(0) {
065+
066+ Warning: file(): open_basedir restriction in effect. File(../ok/ok.txt) is not within the allowed path(s): (.) in %s/open_basedir_file.php on line 8
067+
068+ Warning: file(../ok/ok.txt): failed to open stream: Operation not permitted in %s/open_basedir_file.php on line 8
069+ bool(false)
070+
071+ Warning: file(): open_basedir restriction in effect. File(/home/edgarsandi/proj/personal/php-src/test/ok/ok.txt) is not within the allowed path(s): (.) in %s/open_basedir_file.php on line 9
072+
073+ Warning: file(/home/edgarsandi/proj/personal/php-src/test/ok/ok.txt): failed to open stream: Operation not permitted in %s/open_basedir_file.php on line 9
074+ bool(false)
075+
076+ Warning: file(): open_basedir restriction in effect. File(/home/edgarsandi/proj/personal/php-src/test/ok/../ok/ok.txt) is not within the allowed path(s): (.) in %s/open_basedir_file.php on line 10
077+
078+ Warning: file(/home/edgarsandi/proj/personal/php-src/test/ok/../ok/ok.txt): failed to open stream: Operation not permitted in %s/open_basedir_file.php on line 10
079+ bool(false)
3 (18%)
003+
004+ Warning: readdir(): supplied resource is not a valid Directory resource in /experiment/source/tests/security/open_basedir.inc on line 39
005+
006+ Warning: closedir(): supplied resource is not a valid Directory resource in /experiment/source/tests/security/open_basedir.inc on line 53
003- bool(true)
008- Warning: file(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s on line %d
010+ Segmentation fault (core dumped)
012+ Termsig=11
009-
010- Warning: file(../bad): failed to open stream: %s in %s on line %d
011- bool(false)
012-
013- Warning: file(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
014-
015- Warning: file(../bad/bad.txt): failed to open stream: %s in %s on line %d
016- bool(false)
017-
018- Warning: file(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.) in %s on line %d
019-
020- Warning: file(..): failed to open stream: %s in %s on line %d
021- bool(false)
022-
023- Warning: file(): open_basedir restriction in effect. File(../) is not within the allowed path(s): (.) in %s on line %d
024-
025- Warning: file(../): failed to open stream: %s in %s on line %d
026- bool(false)
027-
028- Warning: file(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.) in %s on line %d
029-
030- Warning: file(/): failed to open stream: %s in %s on line %d
031- bool(false)
032-
033- Warning: file(): open_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s on line %d
034-
035- Warning: file(../bad/.): failed to open stream: %s in %s on line %d
036- bool(false)
037-
038- Warning: file(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
039-
040- Warning: file(%s/test/bad/bad.txt): failed to open stream: %s in %s on line %d
041- bool(false)
042-
043- Warning: file(): open_basedir restriction in effect. File(%s/test/bad/../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
044-
045- Warning: file(%s/test/bad/../bad/bad.txt): failed to open stream: %s in %s on line %d
046- bool(false)
047- array(1) {
048- [0]=>
049- string(12) "Hello World!"
050- }
051- array(1) {
052- [0]=>
053- string(12) "Hello World!"
054- }
055- array(1) {
056- [0]=>
057- string(12) "Hello World!"
058- }
059- array(1) {
060- [0]=>
061- string(12) "Hello World!"
062- }
063- *** Finished testing open_basedir configuration [file] ***
1 (6%)
003+
004+ Warning: mkdir(): File exists in /home/edgarsandi/proj/personal/php-src/tests/security/open_basedir.inc on line 64
005+ bool(false)
006+
007+ Warning: mkdir(): open_basedir restriction in effect. File(/home/edgarsandi/proj/personal/php-src/test/ok) is not within the allowed path(s): (.) in /home/edgarsandi/proj/personal/php-src/tests/security/open_basedir.inc on line 65
008+ bool(false)
009+
010+ Warning: mkdir(): open_basedir restriction in effect. File(/home/edgarsandi/proj/personal/php-src/test/bad) is not within the allowed path(s): (.) in /home/edgarsandi/proj/personal/php-src/tests/security/open_basedir.inc on line 66
011+ bool(false)
012+
013+ Warning: file_put_contents(): open_basedir restriction in effect. File(/home/edgarsandi/proj/personal/php-src/test/ok/ok.txt) is not within the allowed path(s): (.) in /home/edgarsandi/proj/personal/php-src/tests/security/open_basedir.inc on line 67
014+
015+ Warning: file_put_contents(/home/edgarsandi/proj/personal/php-src/test/ok/ok.txt): failed to open stream: Operation not permitted in /home/edgarsandi/proj/personal/php-src/tests/security/open_basedir.inc on line 67
016+
017+ Warning: file_put_contents(): open_basedir restriction in effect. File(/home/edgarsandi/proj/personal/php-src/test/bad/bad.txt) is not within the allowed path(s): (.) in /home/edgarsandi/proj/personal/php-src/tests/security/open_basedir.inc on line 68
018+
019+ Warning: file_put_contents(/home/edgarsandi/proj/personal/php-src/test/bad/bad.txt): failed to open stream: Operation not permitted in /home/edgarsandi/proj/personal/php-src/tests/security/open_basedir.inc on line 68
020+
021+ Warning: chdir(): open_basedir restriction in effect. File(/home/edgarsandi/proj/personal/php-src/test/ok) is not within the allowed path(s): (.) in /home/edgarsandi/proj/personal/php-src/tests/security/open_basedir.inc on line 99
022+ bool(false)
003- bool(true)
004- bool(true)
005- bool(true)
006- bool(true)
047- array(1) {
048- [0]=>
049- string(12) "Hello World!"
050- }
051- array(1) {
052- [0]=>
053- string(12) "Hello World!"
054- }
055- array(1) {
056- [0]=>
057- string(12) "Hello World!"
058- }
059- array(1) {
060- [0]=>
061- string(12) "Hello World!"
062- }
063+
064+ Warning: file(ok.txt): failed to open stream: No such file or directory in %s/open_basedir_file.php on line 7
065+ bool(false)
066+
067+ Warning: file(): open_basedir restriction in effect. File(../ok/ok.txt) is not within the allowed path(s): (.) in %s/open_basedir_file.php on line 8
068+
069+ Warning: file(../ok/ok.txt): failed to open stream: Operation not permitted in %s/open_basedir_file.php on line 8
070+ bool(false)
071+
072+ Warning: file(): open_basedir restriction in effect. File(/home/edgarsandi/proj/personal/php-src/test/ok/ok.txt) is not within the allowed path(s): (.) in %s/open_basedir_file.php on line 9
073+
074+ Warning: file(/home/edgarsandi/proj/personal/php-src/test/ok/ok.txt): failed to open stream: Operation not permitted in %s/open_basedir_file.php on line 9
075+ bool(false)
076+
077+ Warning: file(): open_basedir restriction in effect. File(/home/edgarsandi/proj/personal/php-src/test/ok/../ok/ok.txt) is not within the allowed path(s): (.) in %s/open_basedir_file.php on line 10
078+
079+ Warning: file(/home/edgarsandi/proj/personal/php-src/test/ok/../ok/ok.txt): failed to open stream: Operation not permitted in %s/open_basedir_file.php on line 10
080+ bool(false)