Test: /tests/security/open_basedir_tempnam.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: tempnam(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s on line %d
009- bool(false)
010-
011- Warning: tempnam(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.) in %s on line %d
012- bool(false)
013-
014- Warning: tempnam(): open_basedir restriction in effect. File(../) is not within the allowed path(s): (.) in %s on line %d
015- bool(false)
016-
017- Warning: tempnam(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.) in %s on line %d
018- bool(false)
019-
020- Warning: tempnam(): open_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s on line %d
021- bool(false)
022-
023- Warning: tempnam(): open_basedir restriction in effect. File(./../.) is not within the allowed path(s): (.) in %s on line %d
024- bool(false)
025-
026- Warning: tempnam(): open_basedir restriction in effect. File() is not within the allowed path(s): (.) in %s on line %d
027- bool(false)
028- string(%d) "%s"
029- bool(true)
030- string(%d) "%s"
031- bool(true)
032- string(%d) "%s"
033- bool(true)
034- *** Finished testing open_basedir configuration [tempnam] ***
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)
003- bool(true)
004- bool(true)
005- bool(true)
006- bool(true)
008- Warning: tempnam(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s on line %d
011- Warning: tempnam(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.) in %s on line %d
017+ Warning: mkdir(): File exists in /media/jjbielas/jjb-hdd-88g/PHP/phpng-baseline/tests/security/open_basedir.inc on line 65
020+ Warning: mkdir(): File exists in /media/jjbielas/jjb-hdd-88g/PHP/phpng-baseline/tests/security/open_basedir.inc on line 66
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
026+ bool(true)
027+
028+ Warning: tempnam(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s/open_basedir_tempnam.php on line 6
029+ bool(false)
030+
031+ Warning: tempnam(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.) in %s/open_basedir_tempnam.php on line 7
032+ bool(false)
033+
028- string(%d) "%s"
029- bool(true)
030- string(%d) "%s"
031- bool(true)
032- string(%d) "%s"
033- bool(true)
034- *** Finished testing open_basedir configuration [tempnam] ***
048+
049+ Warning: tempnam(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (.) in %s/open_basedir_tempnam.php on line 15
050+ bool(false)
051+
052+ Warning: unlink(): open_basedir restriction in effect. File() is not within the allowed path(s): (.) in %s/open_basedir_tempnam.php on line 17
053+ bool(false)
054+
055+ Warning: tempnam(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (.) in %s/open_basedir_tempnam.php on line 20
056+ bool(false)
057+
058+ Warning: unlink(): open_basedir restriction in effect. File() is not within the allowed path(s): (.) in %s/open_basedir_tempnam.php on line 22
059+ bool(false)
060+
061+ Warning: tempnam(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (.) in %s/open_basedir_tempnam.php on line 24
062+ bool(false)
063+
064+ Warning: unlink(): open_basedir restriction in effect. File() is not within the allowed path(s): (.) in %s/open_basedir_tempnam.php on line 26
065+ bool(false)
066+ *** Finished testing open_basedir configuration [tempnam] ***