Test: /tests/security/open_basedir_tempnam.phpt - Version 7.2.25    

There is 1 diff reported by users for this test.

Count Diff
1 (100%)
003+
004+ Warning: mkdir(): File exists in /usr/local/src/php-7.2.25/tests/security/open_basedir.inc on line 64
005+ bool(false)
003- bool(true)
004- bool(true)
005- bool(true)
006- bool(true)
007+ Warning: mkdir(): open_basedir restriction in effect. File(/usr/local/src/php-7.2.25/test/ok) is not within the allowed path(s): (.) in /usr/local/src/php-7.2.25/tests/security/open_basedir.inc on line 65
008- Warning: tempnam(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s on line %d
010+ Warning: mkdir(): open_basedir restriction in effect. File(/usr/local/src/php-7.2.25/test/bad) is not within the allowed path(s): (.) in /usr/local/src/php-7.2.25/tests/security/open_basedir.inc on line 66
011- Warning: tempnam(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.) in %s on line %d
013+ Warning: file_put_contents(): open_basedir restriction in effect. File(/usr/local/src/php-7.2.25/test/ok/ok.txt) is not within the allowed path(s): (.) in /usr/local/src/php-7.2.25/tests/security/open_basedir.inc on line 67
014+
015+ Warning: file_put_contents(/usr/local/src/php-7.2.25/test/ok/ok.txt): failed to open stream: Operation not permitted in /usr/local/src/php-7.2.25/tests/security/open_basedir.inc on line 67
014- Warning: tempnam(): open_basedir restriction in effect. File(../) is not within the allowed path(s): (.) in %s on line %d
015- bool(false)
017+ Warning: file_put_contents(): open_basedir restriction in effect. File(/usr/local/src/php-7.2.25/test/bad/bad.txt) is not within the allowed path(s): (.) in /usr/local/src/php-7.2.25/tests/security/open_basedir.inc on line 68
018+
019+ Warning: file_put_contents(/usr/local/src/php-7.2.25/test/bad/bad.txt): failed to open stream: Operation not permitted in /usr/local/src/php-7.2.25/tests/security/open_basedir.inc on line 68
020+
021+ Warning: chdir(): open_basedir restriction in effect. File(/usr/local/src/php-7.2.25/test/ok) is not within the allowed path(s): (.) in /usr/local/src/php-7.2.25/tests/security/open_basedir.inc on line 99
017- Warning: tempnam(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.) in %s on line %d
020- Warning: tempnam(): open_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s on line %d
023- Warning: tempnam(): open_basedir restriction in effect. File(./../.) is not within the allowed path(s): (.) in %s on line %d
024+ 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
027+ Warning: tempnam(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.) in %s/open_basedir_tempnam.php on line 7
030+ Warning: tempnam(): open_basedir restriction in effect. File(../) is not within the allowed path(s): (.) in %s/open_basedir_tempnam.php on line 8
031+ bool(false)
032+
033+ Warning: tempnam(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.) in %s/open_basedir_tempnam.php on line 9
034+ bool(false)
035+
036+ Warning: tempnam(): open_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s/open_basedir_tempnam.php on line 10
037+ bool(false)
038+
039+ Warning: tempnam(): open_basedir restriction in effect. File(./../.) is not within the allowed path(s): (.) in %s/open_basedir_tempnam.php on line 11
040+ bool(false)
041+
030- string(%d) "%s"
031- bool(true)
032- string(%d) "%s"
033- bool(true)
044+
045+ Warning: tempnam(): open_basedir restriction in effect. File(/usr/local/src/php-7.2.25/test/ok) is not within the allowed path(s): (.) in %s/open_basedir_tempnam.php on line 15
046+ bool(false)
047+
048+ Warning: unlink(): open_basedir restriction in effect. File() is not within the allowed path(s): (.) in %s/open_basedir_tempnam.php on line 17
049+ bool(false)
052+
053+ Warning: tempnam(): open_basedir restriction in effect. File(../ok) is not within the allowed path(s): (.) in %s/open_basedir_tempnam.php on line 24
054+ bool(false)
055+
056+ Warning: unlink(): open_basedir restriction in effect. File() is not within the allowed path(s): (.) in %s/open_basedir_tempnam.php on line 26
057+ bool(false)