123456789101112131415161718192021222324252627282930313233343536 |
- --TEST--
- JIT RECV: slow type check
- --INI--
- opcache.enable=1
- opcache.enable_cli=1
- opcache.file_update_protection=0
- opcache.jit_buffer_size=1M
- opcache.protect_memory=1
- ;opcache.jit_debug=257
- --EXTENSIONS--
- opcache
- --FILE--
- <?php
- class A {
- }
- class B extends A {
- }
- class C {
- }
- function test(A $x)
- {
- echo "ok\n";
- }
- test(new B);
- test(new C);
- ?>
- --EXPECTF--
- ok
- Fatal error: Uncaught TypeError: test(): Argument #1 ($x) must be of type A, C given, called in %s:9
- Stack trace:
- #0 %s(15): test(Object(C))
- #1 {main}
- thrown in %s on line 9
|