tests: skip tests with dynamic properties in PHP-8.2
authorMichael Wallner <mike@php.net>
Fri, 7 Oct 2022 06:51:30 +0000 (08:51 +0200)
committerMichael Wallner <mike@php.net>
Fri, 7 Oct 2022 06:51:30 +0000 (08:51 +0200)
tests/crash_cur_reverse_dep.phpt
tests/crash_stm_reverse_dep.phpt
tests/crash_txn_reverse_dep.phpt

index a9f4d1909ba4ff1bf4f7b3e4cbcec4212fe7faea..c97d73aa34b2102128a2d6e006061bd3b1a9a9a8 100644 (file)
@@ -3,6 +3,8 @@ crash txn reverse dependency from connection
 --SKIPIF--
 <?php
 include "_skipif.inc";
+if (version_compare(PHP_VERSION, "8.2", ">="))
+       echo "skip PHP_VERSION>=8.2 (dynamic properties deprecated)\n";
 ?>
 --FILE--
 <?php
index 4110f59d6d4392b840d8dd6476cb780bc104db18..3f5fa08a594959841700a41a276c947960038b2e 100644 (file)
@@ -1,11 +1,13 @@
 --TEST--
 crash stm reverse dependency from connection
 --SKIPIF--
-<?php 
+<?php
 include "_skipif.inc";
+if (version_compare(PHP_VERSION, "8.2", ">="))
+       echo "skip PHP_VERSION>=8.2 (dynamic properties deprecated)\n";
 ?>
 --FILE--
-<?php 
+<?php
 echo "Test\n";
 
 include "_setup.inc";
index d1a5cf181527d1e6dd570720f7b15aafd9babbc4..cddb5dfc161628357f055a7bb210a13323cc3cdf 100644 (file)
@@ -3,6 +3,8 @@ crash txn reverse dependency from connection
 --SKIPIF--
 <?php
 include "_skipif.inc";
+if (version_compare(PHP_VERSION, "8.2", ">="))
+       echo "skip PHP_VERSION>=8.2 (dynamic properties deprecated)\n";
 ?>
 --FILE--
 <?php