File: streams_8.phpt

package info (click to toggle)
php-zstd 0.14.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,536 kB
  • sloc: ansic: 30,009; asm: 382; xml: 179; makefile: 3
file content (22 lines) | stat: -rw-r--r-- 441 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
compress.zstd use include_path
--SKIPIF--
<?php
if (!function_exists("hex2bin")) die('skip PHP is too old');
?>
--INI--
include_path={PWD}/inc
--FILE--
<?php
@mkdir(__DIR__ . '/inc');
file_put_contents(__DIR__ . '/inc/streams_include.zstd', '<?php echo hex2bin("48656c6c6f0a");');

include "streams_include.zstd";

@unlink(__DIR__ . '/inc/streams_include.zstd');
@rmdir(__DIR__ . '/inc');
?>
===Done===
--EXPECTF--
Hello
===Done===