diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2008-01-15 14:51:50 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2008-01-15 14:51:50 +0000 |
| commit | 374f3062f86c2be50ca7831e7c4f9bd158ed9500 (patch) | |
| tree | ecfd6cb832af6877288c5e037df6b0726c6a99df /ext | |
| parent | 330c8b49f8fa13bc4802761ae8e69c9d90b62090 (diff) | |
| download | php-git-374f3062f86c2be50ca7831e7c4f9bd158ed9500.tar.gz | |
Allow test to run from any directory
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/zlib/tests/bug_40189_2.phpt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/zlib/tests/bug_40189_2.phpt b/ext/zlib/tests/bug_40189_2.phpt index d89ffea8bc..13a19dbd95 100644 --- a/ext/zlib/tests/bug_40189_2.phpt +++ b/ext/zlib/tests/bug_40189_2.phpt @@ -4,7 +4,7 @@ Bug #40189 (test for truncated deflate, also part of erroneous fix for #40189) <?php if (!extension_loaded("zlib")) print "skip"; ?> --FILE-- <?php -$a = fopen('ext/zlib/tests/bug.tar', 'rb'); +$a = fopen(dirname(__FILE__). '/bug.tar', 'rb'); stream_filter_append($a, 'zlib.deflate', STREAM_FILTER_READ, array('window' => 15+16)); $b = fread($a, 4716032); var_dump(strlen($b)); |
