diff options
Diffstat (limited to 'ext/ffi/tests/013.phpt')
-rw-r--r-- | ext/ffi/tests/013.phpt | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/ext/ffi/tests/013.phpt b/ext/ffi/tests/013.phpt index 3e4c4d6fca..cfc1e85eb0 100644 --- a/ext/ffi/tests/013.phpt +++ b/ext/ffi/tests/013.phpt @@ -12,45 +12,45 @@ var_dump(count($a[0])); var_dump(count($a[0][0])); try { - var_dump(FFI::new("void")); + var_dump(FFI::new("void")); } catch (Throwable $e) { - echo get_class($e) . ": " . $e->getMessage()."\n"; + echo get_class($e) . ": " . $e->getMessage()."\n"; } try { - var_dump(FFI::new("void[1]")); + var_dump(FFI::new("void[1]")); } catch (Throwable $e) { - echo get_class($e) . ": " . $e->getMessage()."\n"; + echo get_class($e) . ": " . $e->getMessage()."\n"; } try { - FFI::cdef("static int foo(int)[5];"); - echo "ok\n"; + FFI::cdef("static int foo(int)[5];"); + echo "ok\n"; } catch (Throwable $e) { - echo get_class($e) . ": " . $e->getMessage()."\n"; + echo get_class($e) . ": " . $e->getMessage()."\n"; } try { - FFI::cdef("static int foo[5](int);"); - echo "ok\n"; + FFI::cdef("static int foo[5](int);"); + echo "ok\n"; } catch (Throwable $e) { - echo get_class($e) . ": " . $e->getMessage()."\n"; + echo get_class($e) . ": " . $e->getMessage()."\n"; } try { - FFI::cdef("static int foo(int)(int);"); - echo "ok\n"; + FFI::cdef("static int foo(int)(int);"); + echo "ok\n"; } catch (Throwable $e) { - echo get_class($e) . ": " . $e->getMessage()."\n"; + echo get_class($e) . ": " . $e->getMessage()."\n"; } try { - FFI::cdef("typedef int foo[2][];"); - echo "ok\n"; + FFI::cdef("typedef int foo[2][];"); + echo "ok\n"; } catch (Throwable $e) { - echo get_class($e) . ": " . $e->getMessage()."\n"; + echo get_class($e) . ": " . $e->getMessage()."\n"; } try { - FFI::cdef("typedef int foo[][2];"); - echo "ok\n"; + FFI::cdef("typedef int foo[][2];"); + echo "ok\n"; } catch (Throwable $e) { - echo get_class($e) . ": " . $e->getMessage()."\n"; + echo get_class($e) . ": " . $e->getMessage()."\n"; } ?> --EXPECT-- @@ -59,8 +59,8 @@ int(2) int(3) FFI\ParserException: 'void' type is not allowed at line 1 FFI\ParserException: 'void' type is not allowed at line 1 -FFI\ParserException: function returning array is not allowed at line 1 -FFI\ParserException: array of functions is not allowed at line 1 -FFI\ParserException: function returning function is not allowed at line 1 -FFI\ParserException: only the leftmost array can be undimensioned at line 1 +FFI\ParserException: Function returning array is not allowed at line 1 +FFI\ParserException: Array of functions is not allowed at line 1 +FFI\ParserException: Function returning function is not allowed at line 1 +FFI\ParserException: Only the leftmost array can be undimensioned at line 1 ok |