diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2005-10-20 19:22:09 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2005-10-20 19:22:09 +0000 |
| commit | d4696abdb932205065006a645d2eb4647c7a6fe9 (patch) | |
| tree | 790267fdeab8d9029792bcf9766832b7ad1ad4b0 /ext/zlib | |
| parent | e7925c9767e307729cac51b1aa22691325c0257d (diff) | |
| download | php-git-d4696abdb932205065006a645d2eb4647c7a6fe9.tar.gz | |
Fixed tests to work with ZTS builds
Diffstat (limited to 'ext/zlib')
| -rw-r--r-- | ext/zlib/tests/compress_zlib_wrapper.phpt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/zlib/tests/compress_zlib_wrapper.phpt b/ext/zlib/tests/compress_zlib_wrapper.phpt index 4bed91a123..de6b3d80b9 100644 --- a/ext/zlib/tests/compress_zlib_wrapper.phpt +++ b/ext/zlib/tests/compress_zlib_wrapper.phpt @@ -3,8 +3,10 @@ compress.zlib:// wrapper --FILE-- <?php +$pfx = str_repeat('../', substr_count($_SERVER['PHP_SELF'], '../')); + // Relative path -$fp = fopen("compress.zlib://ext/xsl/tests/xslt.xsl.gz", "rb"); +$fp = fopen("compress.zlib://{$pfx}ext/xsl/tests/xslt.xsl.gz", "rb"); fclose($fp); // Absolute path |
