mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +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.
28 lines
495 B
PHP
28 lines
495 B
PHP
--TEST--
|
|
Test phpdbg_break_next() function
|
|
--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> A
|
|
[Breakpoint #0 added at %s]
|
|
[Breakpoint #0 in %s at %s:5, hits: 1]
|
|
>00005: echo 'B';
|
|
00006:
|
|
prompt> B
|
|
[Script ended normally]
|
|
prompt>
|
|
--FILE--
|
|
<?php
|
|
|
|
echo 'A';
|
|
phpdbg_break_next();
|
|
echo 'B';
|