com php-src: forked bug41655 test for windows: ext/standard/tes ts/file/bug41655_1-win32.phpt ext/standar d/tests/file/bug41655_1.phpt

From: Date: Sat, 20 Sep 2014 13:14:31 +0000
Subject: com php-src: forked bug41655 test for windows: ext/standard/tes ts/file/bug41655_1-win32.phpt ext/standar d/tests/file/bug41655_1.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-81805@lists.php.net to get a copy of this message
Commit: 1b3569235a47887fbaa4ac53f615dc43dbc1394d Author: Anatol Belski <ab@php.net> Sat, 20 Sep 2014 15:13:42 +0200 Parents: 98891ee118e0b73dda4b61cfdc11804d0899c889 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1b3569235a47887fbaa4ac53f615dc43dbc1394d Log: forked bug41655 test for windows Bugs: https://bugs.php.net/41655 Changed paths: A ext/standard/tests/file/bug41655_1-win32.phpt M ext/standard/tests/file/bug41655_1.phpt Diff: diff --git a/ext/standard/tests/file/bug41655_1-win32.phpt b/ext/standard/tests/file/bug41655_1-win32.phpt new file mode 100644 index 0000000..631d910 --- /dev/null +++ b/ext/standard/tests/file/bug41655_1-win32.phpt @@ -0,0 +1,22 @@ +--TEST-- +Bug #41655 (open_basedir bypass via glob()) 1/2 +--SKIPIF-- +<?php +if (substr(PHP_OS, 0, 3) != 'WIN') { + die('skip only for Windows'); +} +?> +--CREDITS-- +Dave Kelsey <d_kelsey@uk.ibm.com> +--INI-- +open_basedir=/tmp +--FILE-- +<?php +$a=glob("./*.jpeg"); +var_dump($a); +echo "Done\n"; +?> +--EXPECT-- +array(0) { +} +Done diff --git a/ext/standard/tests/file/bug41655_1.phpt b/ext/standard/tests/file/bug41655_1.phpt index 62d64df..e446682 100644 --- a/ext/standard/tests/file/bug41655_1..phpt +++ b/ext/standard/tests/file/bug41655_1.phpt @@ -1,5 +1,11 @@ --TEST-- Bug #41655 (open_basedir bypass via glob()) 1/2 +--SKIPIF-- +<?php +if (substr(PHP_OS, 0, 3) == 'WIN') { + die('skip not for Windows'); +} +?> --CREDITS-- Dave Kelsey <d_kelsey@uk.ibm.com> --INI-- @@ -12,4 +18,4 @@ echo "Done\n"; ?> --EXPECT-- bool(false) -Done \ No newline at end of file +Done

« previous php.cvs (#81805) next »