xref: /PHP-8.3/ext/ffi/tests/gh14215.phpt (revision ebd1a366)
1--TEST--
2GH-14215 (Cannot use FFI::load on CRLF header file with apache2handler)
3--EXTENSIONS--
4ffi
5zend_test
6--SKIPIF--
7<?php
8if(PHP_OS_FAMILY !== "Windows") {
9    die('skip only for Windows');
10}
11?>
12--INI--
13ffi.enable=1
14--FILE--
15<?php
16zend_test_set_fmode(false);
17$header_path = __DIR__.'\\gh14215.h';
18$ffi = FFI::load($header_path);
19var_dump($ffi->GetLastError());
20zend_test_set_fmode(true);
21?>
22--EXPECT--
23int(0)
24