projects
/
m6w6
/
ext-pq
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
tests: skip tests with dynamic properties in PHP-8.2
[m6w6/ext-pq]
/
tests
/
crash_txn_reverse_dep.phpt
diff --git
a/tests/crash_txn_reverse_dep.phpt
b/tests/crash_txn_reverse_dep.phpt
index 7c9e8fc744dae88e0bceee4eb7c6d90d016619d1..cddb5dfc161628357f055a7bb210a13323cc3cdf 100644
(file)
--- a/
tests/crash_txn_reverse_dep.phpt
+++ b/
tests/crash_txn_reverse_dep.phpt
@@
-3,6
+3,8
@@
crash txn reverse dependency from connection
--SKIPIF--
<?php
include "_skipif.inc";
--SKIPIF--
<?php
include "_skipif.inc";
+if (version_compare(PHP_VERSION, "8.2", ">="))
+ echo "skip PHP_VERSION>=8.2 (dynamic properties deprecated)\n";
?>
--FILE--
<?php
?>
--FILE--
<?php
@@
-11,7
+13,7
@@
echo "Test\n";
include "_setup.inc";
$c = new pq\Connection(PQ_DSN);
include "_setup.inc";
$c = new pq\Connection(PQ_DSN);
-$c->c = $c->declare("test", "SELECT 1");
+$c->c = $c->declare("test",
pq\Cursor::WITH_HOLD,
"SELECT 1");
?>
===DONE===
?>
===DONE===