[DOC-CVS] [doc-en] master: Improve SQLite createFunction example (#5374)

[email protected] (Michael Voříšek via GitHub) Mon, 2 Mar 2026 21:55:39 +0000
Newsgroups php.doc.cvs
Message-ID <[email protected]>
Author: Michael Voříšek (mvorisek)
Committer: GitHub (web-flow)
Pusher: ndossche
Date: 2026-03-02T22:55:36+01:00

Commit: https://github.com/php/doc-en/commit/28930349caaaa78f908c380e44066d37a70e97b8
Raw diff: https://github.com/php/doc-en/commit/28930349caaaa78f908c380e44066d37a70e97b8.diff

Improve SQLite createFunction example (#5374)

Changed paths:
  M  reference/pdo_sqlite/pdo/sqlite/createfunction.xml


Diff:

diff --git a/reference/pdo_sqlite/pdo/sqlite/createfunction.xml b/reference/pdo_sqlite/pdo/sqlite/createfunction.xml
index 44dd2263b040..191df36cca5f 100644
--- a/reference/pdo_sqlite/pdo/sqlite/createfunction.xml
+++ b/reference/pdo_sqlite/pdo/sqlite/createfunction.xml
@@ -134,7 +134,7 @@ function sha256_and_reverse($string)
 }
 
 $db = new Pdo\Sqlite('sqlite::sqlitedb');
-$db->sqliteCreateFunction('sha256rev', 'sha256_and_reverse', 1);
+$db->createFunction('sha256rev', 'sha256_and_reverse', 1);
 $rows = $db->query('SELECT sha256rev(filename) FROM files')->fetchAll();
 ?>
 ]]>