diff options
Diffstat (limited to 'ext/ffi/tests/303.phpt')
-rw-r--r-- | ext/ffi/tests/303.phpt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/ffi/tests/303.phpt b/ext/ffi/tests/303.phpt new file mode 100644 index 0000000000..756adbbf40 --- /dev/null +++ b/ext/ffi/tests/303.phpt @@ -0,0 +1,15 @@ +--TEST-- +FFI 303: FFI preloading flob +--SKIPIF-- +<?php require_once('skipif.inc'); ?> +<?php if (substr(PHP_OS, 0, 3) == 'WIN') die('skip not for Windows'); ?> +--INI-- +ffi.enable=1 +ffi.preload={PWD}/300*.h +--FILE-- +<?php +$ffi = FFI::scope("TEST_300"); +$ffi->printf("Hello World from %s!\n", "PHP"); +?> +--EXPECT-- +Hello World from PHP! |