Skip to content

Commit

Permalink
test: update 900-misc_general_c.phpt
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechsTech committed Mar 12, 2023
1 parent 6cdd3af commit 3ff07b4
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tests/900-misc_general_c.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,17 @@ var_dump($cs->isNull());
$cc = c_int_type('int', 'ze', 100);
var_dump($cc->value());
$cc->free();
$ct = c_array_type('zend_property_info_list', 'ze', 3, false);
var_dump($ct);

$commands = ffi_char_variadic('php', 'test.php', '2');
var_dump($commands);
var_dump(ffi_string($commands[0]));
var_dump(ffi_string($commands[1]));
var_dump(ffi_string($commands[2]));

$ct = c_array_type('zend_property_info_list', 'ze', 3, false);
var_dump($ct);


--EXPECTF--
Original - 5208
int(22548)
Expand Down Expand Up @@ -126,10 +128,6 @@ bool(false)
NULL
bool(true)
int(100)
object(CStruct)#%d (1) {
["type"]=>
string(21) "struct <anonymous>[3]"
}
object(FFI\CData:char**)#%d (1) {
[0]=>
object(FFI\CData:char*)#%d (1) {
Expand All @@ -140,3 +138,7 @@ object(FFI\CData:char**)#%d (1) {
string(3) "php"
string(8) "test.php"
string(1) "2"
object(CStruct)#%d (1) {
["type"]=>
string(21) "struct <anonymous>[3]"
}

0 comments on commit 3ff07b4

Please sign in to comment.