Commit bd2a955b340 for php
commit bd2a955b3403057490987e4bc413210886d97da3
Author: Michael Voříšek <mvorisek@mvorisek.cz>
Date: Sat Nov 7 14:54:13 2026 +0100
Improve GH-25021 test, use non-deprecated method (#25095)
diff --git a/ext/pdo_sqlite/tests/gh25021-udf.phpt b/ext/pdo_sqlite/tests/gh25021-udf.phpt
index ab7231c953b..22858620b8e 100644
--- a/ext/pdo_sqlite/tests/gh25021-udf.phpt
+++ b/ext/pdo_sqlite/tests/gh25021-udf.phpt
@@ -5,9 +5,9 @@
--FILE--
<?php
-$conn = new PDO('sqlite::memory:');
+$conn = new Pdo\Sqlite('sqlite::memory:');
-$conn->sqliteCreateFunction('my_udf_pass_int', static fn(int $v): int => $v);
+$conn->createFunction('my_udf_pass_int', static fn(int $v): int => $v);
foreach ([
10,
@@ -23,7 +23,6 @@
}
?>
--EXPECTF--
-Deprecated: Method PDO::sqliteCreateFunction() is deprecated since 8.5, use Pdo\Sqlite::createFunction() instead in %s on line %d
bool(true)
bool(true)
bool(true)