xref: /php-src/ext/ffi/tests/bug79075.phpt (revision 612a34cb)
1--TEST--
2Bug #79075 (FFI header parser chokes on comments)
3--EXTENSIONS--
4ffi
5opcache
6posix
7--SKIPIF--
8<?php
9if (substr(PHP_OS, 0, 3) == 'WIN') die('skip not for Windows');
10if (posix_geteuid() == 0) die('skip Cannot run test as root.');
11?>
12--INI--
13ffi.enable=1
14opcache.enable=1
15opcache.enable_cli=1
16opcache.optimization_level=-1
17opcache.preload={PWD}/bug79075.inc
18opcache.file_cache_only=0
19--FILE--
20<?php
21$ffi = FFI::scope("bug79075");
22$ffi->printf("Hello World from %s!\n", "PHP");
23?>
24--EXPECT--
25Hello World from PHP!
26