summaryrefslogtreecommitdiff
path: root/ext/ffi/tests/015.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ffi/tests/015.phpt')
-rw-r--r--ext/ffi/tests/015.phpt48
1 files changed, 24 insertions, 24 deletions
diff --git a/ext/ffi/tests/015.phpt b/ext/ffi/tests/015.phpt
index 5143bea109..7b710c1dc0 100644
--- a/ext/ffi/tests/015.phpt
+++ b/ext/ffi/tests/015.phpt
@@ -7,52 +7,52 @@ ffi.enable=1
--FILE--
<?php
try {
- FFI::cdef("struct DIR; static struct DIR dir;");
- echo "ok\n";
+ FFI::cdef("struct DIR; static struct DIR dir;");
+ echo "ok\n";
} catch (Throwable $e) {
- echo get_class($e) . ": " . $e->getMessage()."\n";
+ echo get_class($e) . ": " . $e->getMessage()."\n";
}
try {
- FFI::cdef("struct DIR; static struct DIR *ptr;");
- echo "ok\n";
+ FFI::cdef("struct DIR; static struct DIR *ptr;");
+ echo "ok\n";
} catch (Throwable $e) {
- echo get_class($e) . ": " . $e->getMessage()."\n";
+ echo get_class($e) . ": " . $e->getMessage()."\n";
}
try {
- FFI::cdef("struct DIR; typedef struct DIR DIR; static DIR dir;");
- echo "ok\n";
+ FFI::cdef("struct DIR; typedef struct DIR DIR; static DIR dir;");
+ echo "ok\n";
} catch (Throwable $e) {
- echo get_class($e) . ": " . $e->getMessage()."\n";
+ echo get_class($e) . ": " . $e->getMessage()."\n";
}
try {
- FFI::cdef("struct DIR; typedef struct DIR DIR; static DIR *ptr;");
- echo "ok\n";
+ FFI::cdef("struct DIR; typedef struct DIR DIR; static DIR *ptr;");
+ echo "ok\n";
} catch (Throwable $e) {
- echo get_class($e) . ": " . $e->getMessage()."\n";
+ echo get_class($e) . ": " . $e->getMessage()."\n";
}
try {
- FFI::cdef("struct DIR; static struct DIR foo();");
- echo "ok\n";
+ FFI::cdef("struct DIR; static struct DIR foo();");
+ echo "ok\n";
} catch (Throwable $e) {
- echo get_class($e) . ": " . $e->getMessage()."\n";
+ echo get_class($e) . ": " . $e->getMessage()."\n";
}
try {
- FFI::cdef("struct DIR; static struct DIR* foo();");
- echo "ok\n";
+ FFI::cdef("struct DIR; static struct DIR* foo();");
+ echo "ok\n";
} catch (Throwable $e) {
- echo get_class($e) . ": " . $e->getMessage()."\n";
+ echo get_class($e) . ": " . $e->getMessage()."\n";
}
try {
- FFI::cdef("struct DIR; static void foo(struct DIR);");
- echo "ok\n";
+ FFI::cdef("struct DIR; static void foo(struct DIR);");
+ echo "ok\n";
} catch (Throwable $e) {
- echo get_class($e) . ": " . $e->getMessage()."\n";
+ echo get_class($e) . ": " . $e->getMessage()."\n";
}
try {
- FFI::cdef("struct DIR; static void foo(struct DIR*);");
- echo "ok\n";
+ FFI::cdef("struct DIR; static void foo(struct DIR*);");
+ echo "ok\n";
} catch (Throwable $e) {
- echo get_class($e) . ": " . $e->getMessage()."\n";
+ echo get_class($e) . ": " . $e->getMessage()."\n";
}
?>
ok