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

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

Count Diff
5 (83%)
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: fopen(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s on line %d
009-
010- Warning: fopen(../bad): failed to open stream: %s in %s on line %d
011- bool(false)
012-
013- Warning: fopen(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
014-
015- Warning: fopen(../bad/bad.txt): failed to open stream: %s in %s on line %d
016- bool(false)
017-
018- Warning: fopen(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.) in %s on line %d
019-
020- Warning: fopen(..): failed to open stream: %s in %s on line %d
021- bool(false)
022-
023- Warning: fopen(): open_basedir restriction in effect. File(../) is not within the allowed path(s): (.) in %s on line %d
024-
025- Warning: fopen(../): failed to open stream: %s in %s on line %d
026- bool(false)
027-
028- Warning: fopen(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.) in %s on line %d
029-
030- Warning: fopen(/): failed to open stream: %s in %s on line %d
031- bool(false)
032-
033- Warning: fopen(): open_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s on line %d
034-
035- Warning: fopen(../bad/.): failed to open stream: %s in %s on line %d
036- bool(false)
037-
038- Warning: fopen(): open_basedir restriction in effect. File(../bad/./bad.txt) is not within the allowed path(s): (.) in %s on line %d
039-
040- Warning: fopen(../bad/./bad.txt): failed to open stream: %s in %s on line 12
041- bool(false)
042-
043- Warning: fopen(): open_basedir restriction in effect. File(./../.) is not within the allowed path(s): (.) in %s on line %d
044-
045- Warning: fopen(./../.): failed to open stream: %s in %s on line %d
046- bool(false)
047- resource(%d) of type (stream)
048- resource(%d) of type (stream)
049- resource(%d) of type (stream)
050- resource(%d) of type (stream)
051- resource(%d) of type (stream)
052- *** Finished testing open_basedir configuration [fopen] ***
1 (17%)
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)