1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 22:11:12 +02:00
Files
archived-php-src/ext/opcache/tests/jit/ignored_opcodes.phpt
Nikita Popov 7a306c0813 Fix skipif section in test
This was migrated to --EXTENSIONS--.
2021-04-06 09:58:49 +02:00

33 lines
689 B
PHP

--TEST--
JIT: ignored opcodes
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.jit=function
;opcache.jit_debug=257
zend_test.observer.enabled=1
zend_test.observer.observe_all=1
zend_test.observer.show_opcode_in_user_handler=ZEND_EXIT, ZEND_BEGIN_SILENCE, ZEND_END_SILENCE
--EXTENSIONS--
opcache
zend_test
--FILE--
<?php
function test(): int
{
return 0;
}
exit(@test());
?>
--EXPECTF--
<!-- init '%s' -->
<file '%s'>
<!-- opcode: 'ZEND_BEGIN_SILENCE' in user handler -->
<!-- opcode: 'ZEND_END_SILENCE' in user handler -->
<!-- opcode: 'ZEND_EXIT' in user handler -->
<!-- Exception: UnwindExit -->
</file '%s'>