Test: /tests/security/open_basedir_copy.phpt - Version 5.7.0-dev    

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

Count Diff
5 (63%)
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
006- bool(true)
010+ Segmentation fault (core dumped)
007-
008- Warning: copy(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s on line %d
009-
010- Warning: copy(../bad): failed to open stream: %s in %s on line %d
011- bool(false)
012-
013- Warning: copy(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
014-
015- Warning: copy(../bad/bad.txt): failed to open stream: %s in %s on line %d
016- bool(false)
017-
018- Warning: copy(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.) in %s on line %d
019-
020- Warning: copy(..): failed to open stream: %s in %s on line %d
021- bool(false)
022-
023- Warning: copy(): open_basedir restriction in effect. File(../) is not within the allowed path(s): (.) in %s on line %d
024-
025- Warning: copy(../): failed to open stream: %s in %s on line %d
026- bool(false)
027-
028- Warning: copy(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.) in %s on line %d
029-
030- Warning: copy(/): failed to open stream: %s in %s on line %d
031- bool(false)
032-
033- Warning: copy(): open_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s on line %d
034-
035- Warning: copy(../bad/.): failed to open stream: %s in %s on line %d
036- bool(false)
037-
038- Warning: copy(): open_basedir restriction in effect. File(../bad/./bad.txt) is not within the allowed path(s): (.) in %s on line %d
039-
040- Warning: copy(../bad/./bad.txt): failed to open stream: %s in %s on line %d
041- bool(false)
042-
043- Warning: copy(): open_basedir restriction in effect. File(./../.) is not within the allowed path(s): (.) in %s on line %d
044-
045- Warning: copy(./../.): failed to open stream: %s in %s on line %d
046- bool(false)
047- bool(true)
048- bool(true)
049- *** Finished testing open_basedir configuration [copy] ***
2 (25%)
010+ Warning: copy(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s/open_basedir_copy.php on line 5
011+
017+ Warning: copy(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s/open_basedir_copy.php on line 6
018+
024+ Warning: copy(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.) in %s/open_basedir_copy.php on line 7
025+
031+ Warning: copy(): open_basedir restriction in effect. File(../) is not within the allowed path(s): (.) in %s/open_basedir_copy.php on line 8
032+
038+ Warning: copy(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.) in %s/open_basedir_copy.php on line 9
039+
045+ Warning: copy(): open_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s/open_basedir_copy.php on line 10
046+
052+ Warning: copy(): open_basedir restriction in effect. File(../bad/./bad.txt) is not within the allowed path(s): (.) in %s/open_basedir_copy.php on line 11
053+
059+ Warning: copy(): open_basedir restriction in effect. File(./../.) is not within the allowed path(s): (.) in %s/open_basedir_copy.php on line 12
060+
1 (13%)
003+
004+ Warning: unlink(/media/jjbielas/jjb-hdd-88g/PHP/phpng-baseline/test/ok/ok.txt): Permission denied in /media/jjbielas/jjb-hdd-88g/PHP/phpng-baseline/tests/security/open_basedir.inc on line 47
005+
006+ Warning: rmdir(/media/jjbielas/jjb-hdd-88g/PHP/phpng-baseline/test/ok): Permission denied in /media/jjbielas/jjb-hdd-88g/PHP/phpng-baseline/tests/security/open_basedir.inc on line 55
007+
008+ Warning: unlink(/media/jjbielas/jjb-hdd-88g/PHP/phpng-baseline/test/bad/bad.txt): Permission denied in /media/jjbielas/jjb-hdd-88g/PHP/phpng-baseline/tests/security/open_basedir.inc on line 47
009+
010+ Warning: rmdir(/media/jjbielas/jjb-hdd-88g/PHP/phpng-baseline/test/bad): Permission denied in /media/jjbielas/jjb-hdd-88g/PHP/phpng-baseline/tests/security/open_basedir.inc on line 55
011+
012+ Warning: rmdir(/media/jjbielas/jjb-hdd-88g/PHP/phpng-baseline/test): Directory not empty in /media/jjbielas/jjb-hdd-88g/PHP/phpng-baseline/tests/security/open_basedir.inc on line 55
013+
014+ Warning: mkdir(): File exists in /media/jjbielas/jjb-hdd-88g/PHP/phpng-baseline/tests/security/open_basedir.inc on line 64
015+ bool(false)
016+
017+ Warning: mkdir(): File exists in /media/jjbielas/jjb-hdd-88g/PHP/phpng-baseline/tests/security/open_basedir.inc on line 65
018+ bool(false)
019+
020+ Warning: mkdir(): File exists in /media/jjbielas/jjb-hdd-88g/PHP/phpng-baseline/tests/security/open_basedir.inc on line 66
021+ bool(false)
022+
023+ Warning: file_put_contents(/media/jjbielas/jjb-hdd-88g/PHP/phpng-baseline/test/ok/ok.txt): failed to open stream: Permission denied in /media/jjbielas/jjb-hdd-88g/PHP/phpng-baseline/tests/security/open_basedir.inc on line 67
024+
025+ Warning: file_put_contents(/media/jjbielas/jjb-hdd-88g/PHP/phpng-baseline/test/bad/bad.txt): failed to open stream: Permission denied in /media/jjbielas/jjb-hdd-88g/PHP/phpng-baseline/tests/security/open_basedir.inc on line 68
003- bool(true)
004- bool(true)
006- bool(true)
047- bool(true)
048- bool(true)
067+
068+ Warning: copy(copy.txt): failed to open stream: Permission denied in %s/open_basedir_copy.php on line 14
069+ bool(false)
070+
071+ Warning: unlink(copy.txt): No such file or directory in %s/open_basedir_copy.php on line 15
072+ bool(false)