mirror of
https://github.com/php/php-src.git
synced 2026-03-26 17:22:15 +01: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.
44 lines
878 B
PHP
44 lines
878 B
PHP
--TEST--
|
|
Test next command on function boundaries
|
|
--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--
|
|
b 4
|
|
r
|
|
n
|
|
|
|
|
|
q
|
|
--EXPECTF--
|
|
[Successful compilation of %s]
|
|
prompt> [Breakpoint #0 added at %s:4]
|
|
prompt> [Breakpoint #0 at %s:4, hits: 1]
|
|
>00004: echo 0;
|
|
00005: }
|
|
00006:
|
|
prompt> 0
|
|
[L5 %s RETURN<-1> null %s]
|
|
>00005: }
|
|
00006:
|
|
00007: foo();
|
|
prompt> [L8 %s ECHO 1 %s]
|
|
>00008: echo 1;
|
|
00009:
|
|
prompt> 1
|
|
[L9 %s RETURN<-1> 1 %s]
|
|
>00009:
|
|
prompt>
|
|
--FILE--
|
|
<?php
|
|
|
|
function foo() {
|
|
echo 0;
|
|
}
|
|
|
|
foo();
|
|
echo 1;
|