php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64686 PECL SQLite2 support for PHP 5.4
Submitted: 2013-04-21 04:28 UTC Modified: 2013-04-26 18:06 UTC
Votes:4
Avg. Score:4.5 ± 0.9
Reproduced:4 of 4 (100.0%)
Same Version:2 (50.0%)
Same OS:0 (0.0%)
From: svyatoslav dot lempert at gmail dot com Assigned:
Status: Wont fix Package: SQLite related
PHP Version: 5.4.14 OS: FreeBSD 9.1
Private report: No CVE-ID: None
 [2013-04-21 04:28 UTC] svyatoslav dot lempert at gmail dot com
Description:
------------
Hello, you have pecl-sqlite extenstion for work with sqlite2 databases (not 
sqlite3 !)

http://pecl.php.net/package/SQLite

It works with PHP 5.3, but does not build with PHP 5.4

Please release new version of PECL-SQLite binary package (archive file) from SVN 
trunk http://svn.php.net/repository/pecl/sqlite/trunk/

It compilted and working without any issue with PHP 5.4

Test script:
---------------
/bin/sh /usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/libtool --mode=compile cc -I/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/libsqlite/src -I. -I/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3 -DPHP_ATOM_INC -I/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/include -I/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/main -I/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -O2 -pipe -fno-strict-aliasing   -c /usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c -o sqlite.lo
mkdir .libs
 cc -I/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/libsqlite/src -I. -I/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3 -DPHP_ATOM_INC -I/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/include -I/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/main -I/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -O2 -pipe -fno-strict-aliasing -c /usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c  -fPIC -DPIC -o .libs/sqlite.o
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c:56: error: 'BYREF_NONE' undeclared here (not in a function)
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c:56: error: 'BYREF_FORCE' undeclared here (not in a function)
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c:124: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sqlite_functions'
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c:167: error: 'sqlite_functions' undeclared here (not in a function)
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c:167: error: initializer element is not constant
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c:167: error: (near initialization for 'sqlite_module_entry.functions')
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c: In function 'php_sqlite_agg_step_function_callback':
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c:485: error: 'zval' has no member named 'is_ref'
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c: In function 'php_sqlite_authorizer':
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c:593: error: 'struct _php_core_globals' has no member named 'safe_mode'
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c:593: error: 'CHECKUID_CHECK_FILE_AND_DIR' undeclared (first use in this function)
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c:593: error: (Each undeclared identifier is reported only once
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c:593: error: for each function it appears in.)
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c:606: error: 'struct _php_core_globals' has no member named 'safe_mode'
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c: In function 'php_sqlite_open':
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c:739: error: 'list_entry' undeclared (first use in this function)
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c:739: error: expected ';' before 'le'
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c:741: error: 'le' undeclared (first use in this function)
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c:741: error: request for member 'type' in something not a structure or union
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c:742: error: request for member 'ptr' in something not a structure or union
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c:744: warning: passing argument 5 of '_zend_hash_add_or_update' makes integer from pointer without a cast
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c: In function 'zif_sqlite_popen':
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c:763: error: 'list_entry' undeclared (first use in this function)
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c:763: error: 'le' undeclared (first use in this function)
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c:763: error: invalid operands to binary *
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c:777: error: 'struct _php_core_globals' has no member named 'safe_mode'
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c:777: error: 'CHECKUID_CHECK_FILE_AND_DIR' undeclared (first use in this function)
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c:792: error: request for member 'type' in something not a structure or union
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c:792: warning: comparison between pointer and integer
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c:793: error: request for member 'ptr' in something not a structure or union
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c: In function 'zif_sqlite_open':
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c:850: error: 'struct _php_core_globals' has no member named 'safe_mode'
/usr/ports/databases/pecl-sqlite2/work/SQLite-1.0.3/sqlite.c:850: error: 'CHECKUID_CHECK_FILE_AND_DIR' undeclared (first use in this function)
*** Error code 1



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-04-26 18:06 UTC] sixd@php.net
-Status: Open +Status: Wont fix
 [2013-04-26 18:06 UTC] sixd@php.net
SQLite 2 support was removed from PHP 5.4.  Refer to the UPGRADING file:

   - ext/sqlite is no longer part of the base distribution and has been moved
     to PECL. Use sqlite3 or PDO_SQLITE instead.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC