[php-src] PHP-8.5: Improve GH-25021 test, use non-deprecated method (#25095)
| From: | Michael Voříšek via GitHub | Date: | Sat, 07 Nov 2026 13:54:16 +0000 |
| Subject: | [php-src] PHP-8.5: Improve GH-25021 test, use non-deprecated method (#25095) | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-143386@lists.php.net to get a copy of this message | ||
Author: Michael Voříšek (mvorisek)
Committer: GitHub (web-flow)
Pusher: ndossche
Date: 2026-11-07T14:54:13+01:00
Commit: https://github.com/php/php-src/commit/bd2a955b3403057490987e4bc413210886d97da3
Raw diff: https://github.com/php/php-src/commit/bd2a955b3403057490987e4bc413210886d97da3.diff
Improve GH-25021 test, use non-deprecated method (#25095)
Changed paths:
M ext/pdo_sqlite/tests/gh25021-udf.phpt
Diff:
diff --git a/ext/pdo_sqlite/tests/gh25021-udf.phpt b/ext/pdo_sqlite/tests/gh25021-udf.phpt
index ab7231c953b8..22858620b8ea 100644
--- a/ext/pdo_sqlite/tests/gh25021-udf.phpt
+++ b/ext/pdo_sqlite/tests/gh25021-udf.phpt
@@ -5,9 +5,9 @@ pdo_sqlite
--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 @@ foreach ([
}
?>
--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)