1--TEST--
2compress.zlib:// wrapper
3--EXTENSIONS--
4zlib
5--FILE--
6<?php
7chdir(__DIR__. "/../../..");
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://". __DIR__. "/../../../ext/xsl/tests/xslt.xsl.gz", "rb");
17fclose($fp);
18
19echo "ok\n";
20?>
21--EXPECT--
22ok
23