xref: /PHP-8.0/ext/ffi/tests/303.phpt (revision fea8c548)
1--TEST--
2FFI 303: FFI preloading flob
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5<?php if (substr(PHP_OS, 0, 3) == 'WIN') die('skip not for Windows'); ?>
6--INI--
7ffi.enable=1
8ffi.preload={PWD}/300*.h
9--FILE--
10<?php
11$ffi = FFI::scope("TEST_300");
12$ffi->printf("Hello World from %s!\n", "PHP");
13?>
14--EXPECT--
15Hello World from PHP!
16