xref: /PHP-8.0/ext/ffi/tests/301.phpt (revision e089d506)
1--TEST--
2FFI 301: FFI loading
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
8--FILE--
9<?php
10$ffi = FFI::load(__DIR__ . "/300.h");
11$ffi->printf("Hello World from %s!\n", "PHP");
12?>
13--EXPECT--
14Hello World from PHP!
15