--TEST--
Test simple recursive watchpoint
+--SKIPIF--
+<?php
+if (PHP_INT_SIZE == 4) {
+ die("xfail There may be flaws in the implementation of watchpoints that cause failures")
+}
+?>
--INI--
opcache.optimization_level=0
--PHPDBG--
unset($b);
$b = 2;
---XFAIL--
-There may be flaws in the implementation of watchpoints that cause failures
--TEST--
Test simple array watchpoint with replace
+--SKIPIF--
+<?php
+if (PHP_INT_SIZE == 4) {
+ die("xfail There may be flaws in the implementation of watchpoints that cause failures")
+}
+?>
--PHPDBG--
b 6
r
$a[0] = 2;
$a = [0 => 3, 1 => 4];
---XFAIL--
-There may be flaws in the implementation of watchpoints that cause failures
--TEST--
Test simple watchpoint with replace
+--SKIPIF--
+<?php
+if (PHP_INT_SIZE == 4) {
+ die("xfail There may be flaws in the implementation of watchpoints that cause failures")
+}
+?>
--PHPDBG--
b 6
r
$a[0] = 2;
$a = [0 => 3, 1 => 4];
---XFAIL--
-There may be flaws in the implementation of watchpoints that cause failures
--TEST--
Test detection of inline string manipulations on zval watch
+--SKIPIF--
+<?php
+if (PHP_INT_SIZE == 4) {
+ die("xfail There may be flaws in the implementation of watchpoints that cause failures")
+}
+?>
--INI--
opcache.optimization_level=0
--PHPDBG--
$b = "a";
$a = $b.$b;
$a[1] = "b";
---XFAIL--
-There may be flaws in the implementation of watchpoints that cause failures
--TEST--
Test proper watch comparisons when having multiple levels of indirection from a zval to its value
+--SKIPIF--
+<?php
+if (PHP_INT_SIZE == 4) {
+ die("xfail There may be flaws in the implementation of watchpoints that cause failures")
+}
+?>
--PHPDBG--
b 3
r
$a[1] = "b";
exit;
---XFAIL--
-There may be flaws in the implementation of watchpoints that cause failures
--TEST--
Test multiple watch elements pointing to the same watchpoint
+--SKIPIF--
+<?php
+if (PHP_INT_SIZE == 4) {
+ die("xfail There may be flaws in the implementation of watchpoints that cause failures")
+}
+?>
--PHPDBG--
b 4
r
$a[1] = 3;
$c = [1];
$b = &$c;
---XFAIL--
-There may be flaws in the implementation of watchpoints that cause failures