Test: /tests/security/open_basedir_fopen.phpt - Version 7.1.28    

There is 1 diff reported by users for this test.

Count Diff
1 (100%)
003+
004+ Warning: mkdir(): File exists in /Users/supeng/php-7.1.28/tests/security/open_basedir.inc on line 64
005+ bool(false)
006+
007+ Warning: mkdir(): open_basedir restriction in effect. File(/Users/supeng/php-7.1.28/test/ok) is not within the allowed path(s): (.) in /Users/supeng/php-7.1.28/tests/security/open_basedir.inc on line 65
008+ bool(false)
009+
010+ Warning: mkdir(): open_basedir restriction in effect. File(/Users/supeng/php-7.1.28/test/bad) is not within the allowed path(s): (.) in /Users/supeng/php-7.1.28/tests/security/open_basedir.inc on line 66
011+ bool(false)
012+
013+ Warning: file_put_contents(): open_basedir restriction in effect. File(/Users/supeng/php-7.1.28/test/ok/ok.txt) is not within the allowed path(s): (.) in /Users/supeng/php-7.1.28/tests/security/open_basedir.inc on line 67
014+
015+ Warning: file_put_contents(/Users/supeng/php-7.1.28/test/ok/ok.txt): failed to open stream: Operation not permitted in /Users/supeng/php-7.1.28/tests/security/open_basedir.inc on line 67
016+
017+ Warning: file_put_contents(): open_basedir restriction in effect. File(/Users/supeng/php-7.1.28/test/bad/bad.txt) is not within the allowed path(s): (.) in /Users/supeng/php-7.1.28/tests/security/open_basedir.inc on line 68
018+
019+ Warning: file_put_contents(/Users/supeng/php-7.1.28/test/bad/bad.txt): failed to open stream: Operation not permitted in /Users/supeng/php-7.1.28/tests/security/open_basedir.inc on line 68
020+
021+ Warning: chdir(): open_basedir restriction in effect. File(/Users/supeng/php-7.1.28/test/ok) is not within the allowed path(s): (.) in /Users/supeng/php-7.1.28/tests/security/open_basedir.inc on line 99
022+ bool(false)
003- bool(true)
004- bool(true)
005- bool(true)
006- bool(true)
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] ***
063+
064+ Warning: fopen(): open_basedir restriction in effect. File(/Users/supeng/php-7.1.28/test/ok/ok.txt) is not within the allowed path(s): (.) in %s/open_basedir_fopen.php on line 15
065+
066+ Warning: fopen(/Users/supeng/php-7.1.28/test/ok/ok.txt): failed to open stream: Operation not permitted in %s/open_basedir_fopen.php on line 15
067+ bool(false)
068+
069+ Warning: fopen(./ok.txt): failed to open stream: No such file or directory in %s/open_basedir_fopen.php on line 16
070+ bool(false)
071+
072+ Warning: fopen(ok.txt): failed to open stream: No such file or directory in %s/open_basedir_fopen.php on line 17
073+ bool(false)
074+
075+ Warning: fopen(): open_basedir restriction in effect. File(../ok/ok.txt) is not within the allowed path(s): (.) in %s/open_basedir_fopen.php on line 18
076+
077+ Warning: fopen(../ok/ok.txt): failed to open stream: Operation not permitted in %s/open_basedir_fopen.php on line 18
078+ bool(false)
079+
080+ Warning: fopen(): open_basedir restriction in effect. File(../ok/./ok.txt) is not within the allowed path(s): (.) in %s/open_basedir_fopen.php on line 19
081+
082+ Warning: fopen(../ok/./ok.txt): failed to open stream: Operation not permitted in %s/open_basedir_fopen.php on line 19
083+ bool(false)
084+ *** Finished testing open_basedir configuration [fopen] ***