Browse Source

open_basedir tests for directory functions

PECL
Ant Phillips 18 years ago
parent
commit
495ed877fc
  1. 6
      ext/standard/tests/dir/open_basedir_dir.phpt
  2. 6
      ext/standard/tests/dir/open_basedir_opendir.phpt

6
ext/standard/tests/dir/open_basedir_dir.phpt

@ -66,19 +66,19 @@ Warning: dir(): open_basedir restriction in effect. File(%s/test/bad/../bad/bad.
Warning: dir(%s/test/bad/../bad/bad.txt): failed to open dir: Operation not permitted in %s on line %d
bool(false)
object(Directory)#1 (2) {
object(Directory)#%d (2) {
["path"]=>
string(%d) "%s/test/ok/"
["handle"]=>
resource(%d) of type (stream)
}
object(Directory)#1 (2) {
object(Directory)#%d (2) {
["path"]=>
string(%d) "%s/test/ok"
["handle"]=>
resource(%d) of type (stream)
}
object(Directory)#1 (2) {
object(Directory)#%d (2) {
["path"]=>
string(%d) "%s/test/ok/../ok"
["handle"]=>

6
ext/standard/tests/dir/open_basedir_opendir.phpt

@ -66,8 +66,8 @@ Warning: opendir(): open_basedir restriction in effect. File(%s/test/bad/../bad/
Warning: opendir(%s/test/bad/../bad/bad.txt): failed to open dir: Operation not permitted in %s on line %d
bool(false)
resource(8) of type (stream)
resource(9) of type (stream)
resource(10) of type (stream)
resource(%d) of type (stream)
resource(%d) of type (stream)
resource(%d) of type (stream)
*** Finished testing open_basedir configuration [opendir] ***
Loading…
Cancel
Save