mirror of
https://github.com/php/php-src.git
synced 2025-08-17 22:48:57 +02:00

Apparently, breakpoints and watchpoints are practically disabled if run with OPcache JIT under Windows, so we mark the affected tests as xfail in that case for the time being.
25 lines
531 B
PHP
25 lines
531 B
PHP
--TEST--
|
|
set_exception_handler() in phpdbg
|
|
--SKIPIF--
|
|
<?php
|
|
if (PHP_OS_FAMILY === 'Windows' && ini_get('opcache.jit') && ini_get('opcache.jit_buffer_size')) {
|
|
die('xfail breakpoint/watchpoint issues with JIT on Windows');
|
|
}
|
|
?>
|
|
--PHPDBG--
|
|
r
|
|
c
|
|
q
|
|
--EXPECTF--
|
|
[Successful compilation of %s]
|
|
prompt> [Uncaught Exception in %s on line 4: test]
|
|
>00004: throw new Exception("test");
|
|
00005:
|
|
prompt> EX
|
|
[Script ended normally]
|
|
prompt>
|
|
--FILE--
|
|
<?php
|
|
|
|
set_exception_handler(function () { print "EX\n"; });
|
|
throw new Exception("test");
|