summaryrefslogtreecommitdiff
path: root/ext/ffi/tests/bug80847.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ffi/tests/bug80847.phpt')
-rw-r--r--ext/ffi/tests/bug80847.phpt11
1 files changed, 10 insertions, 1 deletions
diff --git a/ext/ffi/tests/bug80847.phpt b/ext/ffi/tests/bug80847.phpt
index c41e6ad528..f81ca3e994 100644
--- a/ext/ffi/tests/bug80847.phpt
+++ b/ext/ffi/tests/bug80847.phpt
@@ -35,7 +35,7 @@ $x->a->b = 42;
$x->a->c = 42.5;
var_dump($x);
$y = $ffi->ffi_bug80847($x);
-var_dump($y);
+var_dump($x, $y);
?>
--EXPECTF--
object(FFI\CData:struct bug80847_02)#%d (1) {
@@ -51,6 +51,15 @@ object(FFI\CData:struct bug80847_02)#%d (1) {
["a"]=>
object(FFI\CData:struct bug80847_01)#%d (2) {
["b"]=>
+ int(42)
+ ["c"]=>
+ float(42.5)
+ }
+}
+object(FFI\CData:struct bug80847_02)#%d (1) {
+ ["a"]=>
+ object(FFI\CData:struct bug80847_01)#%d (2) {
+ ["b"]=>
int(52)
["c"]=>
float(32.5)