diff options
Diffstat (limited to 'ext/ffi/tests/036.phpt')
-rw-r--r-- | ext/ffi/tests/036.phpt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/ffi/tests/036.phpt b/ext/ffi/tests/036.phpt index 5c4e0600b8..1e989285ff 100644 --- a/ext/ffi/tests/036.phpt +++ b/ext/ffi/tests/036.phpt @@ -9,12 +9,12 @@ ffi.enable=1 $type = FFI::type("int*"); function foo($ptr) { - global $type; - //$buf = FFI::new("int*[1]"); /* this loses type and crash */ - $buf = FFI::new(FFI::arrayType($type, [1])); - $buf[0] = $ptr; - //... - return $buf[0]; + global $type; + //$buf = FFI::new("int*[1]"); /* this loses type and crash */ + $buf = FFI::new(FFI::arrayType($type, [1])); + $buf[0] = $ptr; + //... + return $buf[0]; } $int = FFI::new("int"); |