/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/pdo_sqlite/tests/bug70221.phpt
21 строка
637 B
Arnaud Le Blanc
Deprecate driver specific PDO methods
03 сен 2025, 09:42
03 сен 2025, 09:42
a4afc57
Код
Авторство
О чём код?
--TEST-- Bug #70221 (persistent sqlite connection + custom function segfaults) --EXTENSIONS-- pdo_sqlite --FILE-- <?php $dbfile = __DIR__ . '/test.sqlite'; $db = new PDO('sqlite:'.$dbfile, null, null, array(PDO::ATTR_PERSISTENT => true)); function _test() { return 42; } $db->sqliteCreateFunction('test', '_test', 0); print("Everything is fine, no exceptions here\n"); unset($db); ?> --CLEAN-- <?php $dbfile = __DIR__ . '/test.sqlite'; unlink($dbfile); ?> --EXPECTF-- Deprecated: Method PDO::sqliteCreateFunction() is deprecated since 8.5, use Pdo\Sqlite::createFunction() instead in %s on line %d Everything is fine, no exceptions here