1--TEST--
2compress.zlib:// wrapper
3--SKIPIF--
4<?php if (!extension_loaded("zlib")) die("skip"); ?>
5--FILE--
6<?php
7chdir(dirname(__FILE__). "/../../..");
8
9$pfx = str_repeat('../', substr_count($_SERVER['PHP_SELF'], '../'));
10
11// Relative path
12$fp = fopen("compress.zlib://{$pfx}ext/xsl/tests/xslt.xsl.gz", "rb");
13fclose($fp);
14
15// Absolute path
16$fp = fopen("compress.zlib://". dirname(__FILE__). "/../../../ext/xsl/tests/xslt.xsl.gz", "rb");
17fclose($fp);
18
19echo "ok\n";
20?>
21--EXPECT--
22ok
23