Home
last modified time | relevance | path

Searched refs:cdef (Results 1 – 25 of 51) sorted by relevance

123

/PHP-8.2/ext/ffi/tests/
H A Dgh12905.phpt9 $libc = FFI::cdef("int printf(const char *format, ...);", "libc.so.6");
22 $ffi = FFI::cdef("", "libc.so.6");
28 <!-- init FFI::cdef() -->
29 <FFI::cdef>
30 </FFI::cdef>
H A D015.phpt10 FFI::cdef("struct DIR; static struct DIR dir;");
16 FFI::cdef("struct DIR; static struct DIR *ptr;");
22 FFI::cdef("struct DIR; typedef struct DIR DIR; static DIR dir;");
28 FFI::cdef("struct DIR; typedef struct DIR DIR; static DIR *ptr;");
34 FFI::cdef("struct DIR; static struct DIR foo();");
40 FFI::cdef("struct DIR; static struct DIR* foo();");
46 FFI::cdef("struct DIR; static void foo(struct DIR);");
52 FFI::cdef("struct DIR; static void foo(struct DIR*);");
H A D028.phpt10 FFI::cdef("struct _x {int a; int b[0];};");
16 FFI::cdef("struct _x {int a; int b[];};");
22 FFI::cdef("struct _x {int a[0]; int b;};");
28 FFI::cdef("struct _x {int a[]; int b;};");
34 FFI::cdef("struct _x { struct {int a; int b[];}; int c;};");
40 FFI::cdef("union _x {int a; int b[];};");
H A D027.phpt16 FFI::cdef("static int (*foo)[*];");
22 FFI::cdef("typedef int foo[*];");
28 FFI::cdef("static void foo(int[*][*]);");
49 FFI::cdef("struct _x {int a; int b[];};");
55 $f = FFI::cdef("typedef int(*foo)[];");
61 $f = FFI::cdef("typedef int foo[][2];");
67 $f = FFI::cdef("typedef int foo[];");
73 $f = FFI::cdef("static int foo(int[]);");
H A Dbug79096.phpt19 $ffi = FFI::cdef($header);
22 $ffi = FFI::cdef($header, 'php_zend_test.dll');
24 $ffi = FFI::cdef($header, ffi_get_php_dll_name());
H A Dbug79532.phpt15 $ffi = FFI::cdef($header);
18 $ffi = FFI::cdef($header, 'php_zend_test.dll');
20 $ffi = FFI::cdef($header, ffi_get_php_dll_name());
H A D013.phpt26 FFI::cdef("static int foo(int)[5];");
32 FFI::cdef("static int foo[5](int);");
38 FFI::cdef("static int foo(int)(int);");
44 FFI::cdef("typedef int foo[2][];");
50 FFI::cdef("typedef int foo[][2];");
H A Dcdef_new.phpt2 Definitions should not leak when using FFI::cdef()->new(...)
7 $struct = \FFI::cdef()->new('struct Example { uint32_t x; }');
H A D016.phpt10 FFI::cdef("struct X {void x();};");
16 FFI::cdef("struct X {struct X x;};");
22 FFI::cdef("struct X {struct X *ptr;};");
H A Dbug79177.phpt15 $ffi = FFI::cdef($header);
18 $ffi = FFI::cdef($header, 'php_zend_test.dll');
20 $ffi = FFI::cdef($header, ffi_get_php_dll_name());
H A Dbug79576.phpt12 FFI::cdef('struct tree *get_tree(const oid *, size_t, struct tree *);');
17 FFI::cdef('struct tree *get_tree(oid, size_t, struct tree *);');
22 FFI::cdef('
H A D043.phpt9 FFI::cdef("
17 #0 %s043.php(2): FFI::cdef('%s')
H A Dbug77632.phpt8 $libc = FFI::cdef("int printf(const char *format, ...);", "libc.so.6");
17 $libc = FFI::cdef("int printf(const char *format, ...);", "libc.so.6");
H A D019.phpt10 FFI::cdef("static int foo(int[]);");
16 FFI::cdef("static int foo(int bar(int));");
H A D018.phpt10 FFI::cdef("struct X {struct X x[2];};");
16 FFI::cdef("struct X {struct X *ptr[2];};");
H A Dutils.inc6 return FFI::cdef($code, $lib);
8 return FFI::cdef($code);
H A Dbug80847.phpt27 $ffi = FFI::cdef($header);
30 $ffi = FFI::cdef($header, 'php_zend_test.dll');
32 $ffi = FFI::cdef($header, ffi_get_php_dll_name());
H A Dbug77632b.phpt9 FFI::cdef("extern void *zend_printf;", ffi_get_php_dll_name());
19 $libc = FFI::cdef("extern size_t (*zend_printf)(const char *format, ...);", ffi_get_php_dll_name());
H A Dgh10568.phpt8 $libc = FFI::cdef("void strlen(const char *s);", "libc.so.6");
18 $libc = FFI::cdef("void strlen(const char *s);", "libc.so.6");
H A Dbug_gh9090.phpt23 $ffi = FFI::cdef($h);
26 $ffi = FFI::cdef($h, 'php_zend_test.dll');
28 $ffi = FFI::cdef($h, ffi_get_php_dll_name());
H A Dbug78270_1.phpt17 FFI::cdef(<<<EOC
27 $ffi = FFI::cdef(<<<EOC
H A Dtrampoline_reset.phpt8 $libc = FFI::cdef("int printf(const char *format, ...);", "libc.so.6");
31 $ffi = FFI::cdef($header, 'libc.so.6');
H A Dgh14626.phpt17 $ffi = FFI::cdef(<<<C
24 $ptr = FFI::cdef()->cast("char*", $addr);
H A D200.phpt9 FFI::cdef("void* zend_write;", ffi_get_php_dll_name());
20 $zend = FFI::cdef("
H A Dbug77768.phpt8 $libc = FFI::cdef("int printf(const char *format, ...);", "libc.so.6");
17 $x = FFI::cdef("

Completed in 30 milliseconds

123