tests: skip tests with dynamic properties in PHP-8.2
[m6w6/ext-pq] / tests / crash_stm_reverse_dep.phpt
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";