Home
last modified time | relevance | path

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

1234

/PHP-8.3/ext/ffi/tests/
H A D041.phpt11 return FFI::cdef()->new(FFI::cdef()->type($str));
13 $type = FFI::cdef()->type($str);
14 return FFI::cdef()->new($type);
24 return FFI::typeof(FFI::cdef()->new($str));
26 $data = FFI::cdef()->new($str);
37 return FFI::cdef()->cast(FFI::cdef()->type($str), FFI::cdef()->new($str));
39 $type = FFI::cdef()->type($str);
40 return FFI::cdef()->cast($type, FFI::cdef()->new($str));
50 return FFI::arrayType(FFI::cdef()->type($str), [2]);
52 $type = FFI::cdef()->type($str);
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 Dweak_reference_002.phpt9 $cdef = \FFI::cdef();
10 $cdata_value = $cdef->new('int');
11 $cdata_array = $cdef->new('int[1]');
12 $cdata_free = $cdef->new('int[1]', false);
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 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());
24 $array = FFI::cdef()->new("off_t[3]");
H A D027.phpt9 $ffi = FFI::cdef();
18 FFI::cdef("static int (*foo)[*];");
24 FFI::cdef("typedef int foo[*];");
30 FFI::cdef("static void foo(int[*][*]);");
51 FFI::cdef("struct _x {int a; int b[];};");
57 $f = FFI::cdef("typedef int(*foo)[];");
63 $f = FFI::cdef("typedef int foo[][2];");
69 $f = FFI::cdef("typedef int foo[];");
75 $f = FFI::cdef("static int foo(int[]);");
H A Dgh11934.phpt10 $cdef = FFI::cdef();
32 $source = $cdef->new($type);
41 $dummy = $cdef->new("int[2]");
43 $struct = $cdef->new("struct { int field; }");
49 $source = $cdef->new($enum_definition);
60 $cdef = FFI::cdef("
72 $source = $cdef->new("struct my_struct");
76 $struct = $cdef->new("struct my_nesting_struct");
82 $ffi = FFI::cdef('
100 $ffi = FFI::cdef('');
[all …]
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 Dbug79749.phpt7 $ffi = FFI::cdef('typedef int dummy;');
9 var_dump((bool) FFI::cdef()->type('int'));
10 var_dump((bool) FFI::cdef()->new('int'));
H A D013.phpt9 $ffi = FFI::cdef();
28 FFI::cdef("static int foo(int)[5];");
34 FFI::cdef("static int foo[5](int);");
40 FFI::cdef("static int foo(int)(int);");
46 FFI::cdef("typedef int foo[2][];");
52 FFI::cdef("typedef int foo[][2];");
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 Dgh11934b.phpt14 $ffi = FFI::cdef($header);
17 $ffi = FFI::cdef($header, 'php_zend_test.dll');
19 $ffi = FFI::cdef($header, ffi_get_php_dll_name());
H A D045.phpt9 var_dump(FFI::isNull(FFI::cdef()->new("int*")));
10 $i = FFI::cdef()->new("int");
18 var_dump(FFI::isNull(FFI::cdef()->new("int[0]")));
H A D047.phpt9 $x = FFI::cdef()->new("int");
13 $x = FFI::cdef()->new("int*");
21 $x = FFI::cdef()->new("struct {int cdata;}");
H A Dgh7867.phpt9 $value = FFI::cdef()->new('char[26]');
12 $slice = FFI::cdef()->new('char[4]');
16 var_dump($value + 0, $slice, FFI::cdef()->cast('char[4]', $value));
21 var_dump($value + 4, $slice, FFI::cdef()->cast('char[4]', $value + 4));
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 Dbug77768.phpt8 $libc = FFI::cdef("int printf(const char *format, ...);", "libc.so.6");
17 $x = FFI::cdef("
36 var_dump(FFI::sizeof(FFI::cdef()->new("uint8_t")));
H A Dbug78762.phpt8 FFI::cdef()->cast('char[10]', FFI::cdef()->new('char[1]'));
H A D037.phpt10 $buf = FFI::cdef()->new("int*[1]");
16 $int = FFI::cdef()->new("int");
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 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 D043.phpt9 FFI::cdef("
17 #0 %s043.php(2): FFI::cdef('%s')
H A D035.phpt2 FFI 035: FFI::cdef()->new() not-owned
9 $p = FFI::cdef()->new("uint16_t[2]", false);
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");

Completed in 19 milliseconds

1234