From: Ant Phillips Date: Thu, 1 May 2008 12:36:45 +0000 (+0000) Subject: open_basedir tests for directory functions X-Git-Tag: RELEASE_1_2_5~39 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6bec04b0a3b8f20190d7661dc54f34302b6d8540;p=php open_basedir tests for directory functions --- diff --git a/ext/standard/tests/dir/open_basedir_dir.phpt b/ext/standard/tests/dir/open_basedir_dir.phpt index f6835d15fe..33fb6ac9be 100644 --- a/ext/standard/tests/dir/open_basedir_dir.phpt +++ b/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"]=> diff --git a/ext/standard/tests/dir/open_basedir_opendir.phpt b/ext/standard/tests/dir/open_basedir_opendir.phpt index d67c22a093..077a5116b4 100644 --- a/ext/standard/tests/dir/open_basedir_opendir.phpt +++ b/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] ***