mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +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.
48 lines
860 B
PHP
48 lines
860 B
PHP
--TEST--
|
|
Test opcode breakpoints
|
|
--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 ZEND_ECHO
|
|
r
|
|
c
|
|
|
|
|
|
|
|
q
|
|
--EXPECTF--
|
|
[Successful compilation of %s]
|
|
prompt> [Breakpoint #0 added at ZEND_ECHO]
|
|
prompt> [Breakpoint #0 in ZEND_ECHO at %s:3, hits: 1]
|
|
>00003: echo $i++;
|
|
00004: echo $i++;
|
|
00005: echo $i++;
|
|
prompt> 1
|
|
[Breakpoint #0 in ZEND_ECHO at %s:4, hits: 2]
|
|
>00004: echo $i++;
|
|
00005: echo $i++;
|
|
00006: echo $i++;
|
|
prompt> 2
|
|
[Breakpoint #0 in ZEND_ECHO at %s:5, hits: 3]
|
|
>00005: echo $i++;
|
|
00006: echo $i++;
|
|
00007:
|
|
prompt> 3
|
|
[Breakpoint #0 in ZEND_ECHO at %s:6, hits: 4]
|
|
>00006: echo $i++;
|
|
00007:
|
|
prompt> 4
|
|
[Script ended normally]
|
|
prompt>
|
|
--FILE--
|
|
<?php
|
|
$i = 1;
|
|
echo $i++;
|
|
echo $i++;
|
|
echo $i++;
|
|
echo $i++;
|