[php-src] Issue #10726: Cannot "unregister" a function, collation or aggregate in SQLite3 extension

From: Date: Mon, 27 Feb 2023 23:06:23 +0000
Subject: [php-src] Issue #10726: Cannot "unregister" a function, collation or aggregate in SQLite3 extension
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-243816@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/10726 Author: bohwaz ### Description The following code: ```php <?php $db = new SQLite3(':memory:'); $db->createFunction('like', 'strcmp'); $db->createFunction('like', null); ``` Resulted in this output: ``` Argument #2 ($callback) must be of type callable, null given ``` But I expected to be able to unregister the custom like function, as documented in SQLite doc: > To delete an existing SQL function or aggregate, pass NULL pointers for all three function > callbacks. https://www.sqlite.org/c3ref/create_function.html Passing NULL to SQLite3::create* methods should un-register the existing function. ### PHP Version Any ### Operating System _No response_

« previous php.bugs (#243816) next »