Web lists-archives.com

Re: JSON1 extension for SQLite

"Christoph M. Becker" in php.general (Thu, 21 Feb 2019 09:34:27 +0100):
>On 21.02.2019 at 09:11, Jan Ehrhardt wrote:
>> In a way it is a XAMPP issue, because XAMPP sticks to mod_php and PHP
>> threadsafe (ZTS). Upgrading to PHP 7.3 will not help:
>> https://github.com/php/php-src/blob/PHP-7.3/ext/sqlite3/sqlite3.c#L358
>If JSON1 is enabled during *compile-time*, there is no need to
>*dynamically* load the extension, see <https://3v4l.org/SXa30>.  Under
>ZTS environments, that's the only possibility to use SQLite3 extensions.

Aha, right. I enabled JSON1 at compile time im PHP 7.0 x86 TS:

N:\php-sdk\php70dev\Release_TS\php-7.0.33>php \php-sdk\sqlite3_json.php
string(5) "[1,2]"

X-Powered-By: PHP/7.0.33
Content-type: text/html; charset=UTF-8

string(5) "[1,2]"