--TEST-- Closures should be always called with ZEND_ACC_CLOSURE flag set --INI-- opcache.enable=1 opcache.enable_cli=1 opcache.file_update_protection=0 opcache.jit_buffer_size=1M opcache.protect_memory=1 opcache.jit_hot_func=2 --EXTENSIONS-- opcache --FILE-- call($foo)); var_dump($f->call($foo)); var_dump($f()); ?> --EXPECT-- object(Closure)#3 (1) { ["this"]=> object(Foo)#1 (0) { } } object(Closure)#3 (1) { ["this"]=> object(Foo)#1 (0) { } } object(Closure)#3 (0) { }