Re: JSON1 extension for SQLite
| From: | Jan Ehrhardt | Date: | Thu, 21 Feb 2019 09:11:19 +0000 |
| Subject: | Re: JSON1 extension for SQLite | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-326714@lists.php.net to get a copy of this message | ||
"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]"
N:\php-sdk\php70dev\Release_TS\php-7.0.33>php-cgi
\php-sdk\sqlite3_json.php
X-Powered-By: PHP/7.0.33
Content-type: text/html; charset=UTF-8
string(5) "[1,2]"
https://phpdev.toolsforresearch.com/php-7.0.33-Win32-VC14-x86.htm
https://phpdev.toolsforresearch.com/php-7.0.33-Win32-VC14-x86.zip
--
Jan