mirror of
https://github.com/php/php-src.git
synced 2026-04-20 14:31:06 +02:00
For rationale, see https://github.com/php/php-src/pull/6787 Make extension checks lowercase, add a special case for opcache that has internal name not matching .so filename. Extensions migrated in part 2: * dom * exif * fileinfo * ffi
16 lines
290 B
PHP
16 lines
290 B
PHP
--TEST--
|
|
FFI 301: FFI loading
|
|
--EXTENSIONS--
|
|
ffi
|
|
--SKIPIF--
|
|
<?php if (substr(PHP_OS, 0, 3) == 'WIN') die('skip not for Windows'); ?>
|
|
--INI--
|
|
ffi.enable=1
|
|
--FILE--
|
|
<?php
|
|
$ffi = FFI::load(__DIR__ . "/300.h");
|
|
$ffi->printf("Hello World from %s!\n", "PHP");
|
|
?>
|
|
--EXPECT--
|
|
Hello World from PHP!
|