]> granicus.if.org Git - php/commitdiff
open_basedir tests for directory functions
authorAnt Phillips <ant@php.net>
Thu, 1 May 2008 12:36:45 +0000 (12:36 +0000)
committerAnt Phillips <ant@php.net>
Thu, 1 May 2008 12:36:45 +0000 (12:36 +0000)
ext/standard/tests/dir/open_basedir_dir.phpt
ext/standard/tests/dir/open_basedir_opendir.phpt

index f6835d15fe8588f3636a2742e13e5ba8b4f4ad9a..33fb6ac9beb5fb63028be78fe9f99173106ab57d 100644 (file)
@@ -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"]=>
index d67c22a0930cc1ec2cf27b5d04bff53d08de4a52..077a5116b45d6800aa702474169b345702872be1 100644 (file)
@@ -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] ***