Searched refs:cdef (Results 1 – 25 of 97) sorted by relevance
1234
/php-src/ext/ffi/tests/ |
H A D | 041.phpt | 11 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 D | gh12905.phpt | 9 $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 D | weak_reference_002.phpt | 9 $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 D | 015.phpt | 10 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 D | 027.phpt | 9 $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 D | gh11934.phpt | 10 $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 D | 028.phpt | 10 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 D | bug79749.phpt | 7 $ffi = FFI::cdef('typedef int dummy;'); 9 var_dump((bool) FFI::cdef()->type('int')); 10 var_dump((bool) FFI::cdef()->new('int'));
|
H A D | 013.phpt | 9 $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 D | 045.phpt | 9 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 D | 047.phpt | 9 $x = FFI::cdef()->new("int"); 13 $x = FFI::cdef()->new("int*"); 21 $x = FFI::cdef()->new("struct {int cdata;}");
|
H A D | gh7867.phpt | 9 $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 D | cdef_new.phpt | 2 Definitions should not leak when using FFI::cdef()->new(...) 7 $struct = \FFI::cdef()->new('struct Example { uint32_t x; }');
|
H A D | 016.phpt | 10 FFI::cdef("struct X {void x();};"); 16 FFI::cdef("struct X {struct X x;};"); 22 FFI::cdef("struct X {struct X *ptr;};");
|
H A D | bug77768.phpt | 8 $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 D | bug78762.phpt | 8 FFI::cdef()->cast('char[10]', FFI::cdef()->new('char[1]'));
|
H A D | 037.phpt | 10 $buf = FFI::cdef()->new("int*[1]"); 16 $int = FFI::cdef()->new("int");
|
H A D | bug79576.phpt | 12 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 D | bug79532.phpt | 12 $ffi = FFI::cdef($header); 13 $array = FFI::cdef()->new("off_t[3]");
|
H A D | 043.phpt | 9 FFI::cdef(" 17 #0 %s043.php(2): FFI::cdef('%s')
|
H A D | bug77632.phpt | 8 $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 D | 035.phpt | 2 FFI 035: FFI::cdef()->new() not-owned 9 $p = FFI::cdef()->new("uint16_t[2]", false);
|
H A D | 019.phpt | 10 FFI::cdef("static int foo(int[]);"); 16 FFI::cdef("static int foo(int bar(int));");
|
H A D | 018.phpt | 10 FFI::cdef("struct X {struct X x[2];};"); 16 FFI::cdef("struct X {struct X *ptr[2];};");
|
H A D | bug77632b.phpt | 8 FFI::cdef("extern void *zend_printf;"); 17 $libc = FFI::cdef("extern size_t (*zend_printf)(const char *format, ...);");
|
Completed in 16 milliseconds
1234