Test: /tests/security/open_basedir_scandir.phpt - Version 7.2.0-dev    

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

Count Diff
14 (82%)
003+
004+ Warning: mkdir(): File exists in /home/edgarsandi/proj/personal/php-src/tests/security/open_basedir.inc on line 64
005+ bool(false)
006+
007+ Warning: mkdir(): open_basedir restriction in effect. File(/home/edgarsandi/proj/personal/php-src/test/ok) is not within the allowed path(s): (.) in /home/edgarsandi/proj/personal/php-src/tests/security/open_basedir.inc on line 65
008+ bool(false)
009+
010+ Warning: mkdir(): open_basedir restriction in effect. File(/home/edgarsandi/proj/personal/php-src/test/bad) is not within the allowed path(s): (.) in /home/edgarsandi/proj/personal/php-src/tests/security/open_basedir.inc on line 66
011+ bool(false)
012+
013+ Warning: file_put_contents(): open_basedir restriction in effect. File(/home/edgarsandi/proj/personal/php-src/test/ok/ok.txt) is not within the allowed path(s): (.) in /home/edgarsandi/proj/personal/php-src/tests/security/open_basedir.inc on line 67
014+
015+ Warning: file_put_contents(/home/edgarsandi/proj/personal/php-src/test/ok/ok.txt): failed to open stream: Operation not permitted in /home/edgarsandi/proj/personal/php-src/tests/security/open_basedir.inc on line 67
016+
017+ Warning: file_put_contents(): open_basedir restriction in effect. File(/home/edgarsandi/proj/personal/php-src/test/bad/bad.txt) is not within the allowed path(s): (.) in /home/edgarsandi/proj/personal/php-src/tests/security/open_basedir.inc on line 68
018+
019+ Warning: file_put_contents(/home/edgarsandi/proj/personal/php-src/test/bad/bad.txt): failed to open stream: Operation not permitted in /home/edgarsandi/proj/personal/php-src/tests/security/open_basedir.inc on line 68
020+
021+ Warning: chdir(): open_basedir restriction in effect. File(/home/edgarsandi/proj/personal/php-src/test/ok) is not within the allowed path(s): (.) in /home/edgarsandi/proj/personal/php-src/tests/security/open_basedir.inc on line 99
022+ bool(false)
003- bool(true)
004- bool(true)
005- bool(true)
006- bool(true)
063- array(3) {
064- [0]=>
065- string(1) "."
066- [1]=>
067- string(2) ".."
068- [2]=>
069- string(6) "ok.txt"
070- }
071- array(3) {
072- [0]=>
073- string(1) "."
074- [1]=>
075- string(2) ".."
076- [2]=>
077- string(6) "ok.txt"
078- }
079- array(3) {
080- [0]=>
081- string(1) "."
082- [1]=>
083- string(2) ".."
084- [2]=>
085- string(6) "ok.txt"
086- }
079+
080+ Warning: scandir(): open_basedir restriction in effect. File(/home/edgarsandi/proj/personal/php-src/test/ok/) is not within the allowed path(s): (.) in %s/open_basedir_scandir.php on line 7
081+
082+ Warning: scandir(/home/edgarsandi/proj/personal/php-src/test/ok/): failed to open dir: Operation not permitted in %s/open_basedir_scandir.php on line 7
083+
084+ Warning: scandir(): (errno 1): Operation not permitted in %s/open_basedir_scandir.php on line 7
085+ bool(false)
086+
087+ Warning: scandir(): open_basedir restriction in effect. File(/home/edgarsandi/proj/personal/php-src/test/ok) is not within the allowed path(s): (.) in %s/open_basedir_scandir.php on line 8
088+
089+ Warning: scandir(/home/edgarsandi/proj/personal/php-src/test/ok): failed to open dir: Operation not permitted in %s/open_basedir_scandir.php on line 8
090+
091+ Warning: scandir(): (errno 1): Operation not permitted in %s/open_basedir_scandir.php on line 8
092+ bool(false)
093+
094+ Warning: scandir(): open_basedir restriction in effect. File(/home/edgarsandi/proj/personal/php-src/test/ok/../ok) is not within the allowed path(s): (.) in %s/open_basedir_scandir.php on line 9
095+
096+ Warning: scandir(/home/edgarsandi/proj/personal/php-src/test/ok/../ok): failed to open dir: Operation not permitted in %s/open_basedir_scandir.php on line 9
097+
098+ Warning: scandir(): (errno 1): Operation not permitted in %s/open_basedir_scandir.php on line 9
099+ bool(false)
3 (18%)
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
003- bool(true)
008- Warning: scandir(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s on line %d
010+ Segmentation fault (core dumped)
012+ Termsig=11
009-
010- Warning: scandir(../bad): failed to open dir: %s in %s on line %d
011-
012- Warning: scandir(): (errno 1): %s in %s on line %d
013- bool(false)
014-
015- Warning: scandir(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
016-
017- Warning: scandir(../bad/bad.txt): failed to open dir: %s in %s on line %d
018-
019- Warning: scandir(): (errno 1): %s in %s on line %d
020- bool(false)
021-
022- Warning: scandir(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.) in %s on line %d
023-
024- Warning: scandir(..): failed to open dir: %s in %s on line %d
025-
026- Warning: scandir(): (errno 1): %s in %s on line %d
027- bool(false)
028-
029- Warning: scandir(): open_basedir restriction in effect. File(../) is not within the allowed path(s): (.) in %s on line %d
030-
031- Warning: scandir(../): failed to open dir: %s in %s on line %d
032-
033- Warning: scandir(): (errno 1): %s in %s on line %d
034- bool(false)
035-
036- Warning: scandir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.) in %s on line %d
037-
038- Warning: scandir(/): failed to open dir: %s in %s on line %d
039-
040- Warning: scandir(): (errno 1): %s in %s on line %d
041- bool(false)
042-
043- Warning: scandir(): open_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s on line %d
044-
045- Warning: scandir(../bad/.): failed to open dir: %s in %s on line %d
046-
047- Warning: scandir(): (errno 1): %s in %s on line %d
048- bool(false)
049-
050- Warning: scandir(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
051-
052- Warning: scandir(%s/test/bad/bad.txt): failed to open dir: %s in %s on line %d
053-
054- Warning: scandir(): (errno 1): %s in %s on line %d
055- bool(false)
056-
057- Warning: scandir(): open_basedir restriction in effect. File(%s/test/bad/../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
058-
059- Warning: scandir(%s/test/bad/../bad/bad.txt): failed to open dir: %s in %s on line %d
060-
061- Warning: scandir(): (errno 1): %s in %s on line %d
062- bool(false)
063- array(3) {
064- [0]=>
065- string(1) "."
066- [1]=>
067- string(2) ".."
068- [2]=>
069- string(6) "ok.txt"
070- }
071- array(3) {
072- [0]=>
073- string(1) "."
074- [1]=>
075- string(2) ".."
076- [2]=>
077- string(6) "ok.txt"
078- }
079- array(3) {
080- [0]=>
081- string(1) "."
082- [1]=>
083- string(2) ".."
084- [2]=>
085- string(6) "ok.txt"
086- }
087- *** Finished testing open_basedir configuration [scandir] ***