diff options
| author | Dave Kelsey <dkelsey@php.net> | 2009-01-22 07:57:04 +0000 |
|---|---|---|
| committer | Dave Kelsey <dkelsey@php.net> | 2009-01-22 07:57:04 +0000 |
| commit | a6de366518b4bdcd2ae2331cffd7b1ea18e54f39 (patch) | |
| tree | e2e63881794db221afcdc7d77ceafe1a6998f7b8 /tests/security/open_basedir_chdir.phpt | |
| parent | 49ecad9d3d521e81e3258e44e9f6df557180da15 (diff) | |
| download | php-git-a6de366518b4bdcd2ae2331cffd7b1ea18e54f39.tar.gz | |
fixed subtle bugs regarding attempting to chdir, plus cleanup issues. improved tempnam test, removed hardcoded line number. tested on windows, linux and linux 64bit.
Diffstat (limited to 'tests/security/open_basedir_chdir.phpt')
| -rw-r--r-- | tests/security/open_basedir_chdir.phpt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/security/open_basedir_chdir.phpt b/tests/security/open_basedir_chdir.phpt index 9b3debf189..aa8cef52da 100644 --- a/tests/security/open_basedir_chdir.phpt +++ b/tests/security/open_basedir_chdir.phpt @@ -6,7 +6,6 @@ open_basedir=. <?php require_once "open_basedir.inc"; test_open_basedir_before("chdir"); -$directory = dirname(__FILE__); var_dump(chdir("../bad")); var_dump(chdir("..")); @@ -48,3 +47,4 @@ bool(false) Warning: chdir(): open_basedir restriction in effect. File(./../.) is not within the allowed path(s): (.) in %s on line %d bool(false) *** Finished testing open_basedir configuration [chdir] *** + |
