Bug #64686 [Opn->Wfx]: PECL SQLite2 support for PHP 5.4

From: Date: Fri, 26 Apr 2013 18:06:12 +0000
Subject: Bug #64686 [Opn->Wfx]: PECL SQLite2 support for PHP 5.4
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-178665@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64686&edit=1

 ID:                 64686
 Updated by:         sixd@php.net
 Reported by:        svyatoslav dot lempert at gmail dot com
 Summary:            PECL SQLite2 support for PHP 5.4
-Status:             Open
+Status:             Wont fix
 Type:               Bug
 Package:            SQLite related
 Operating System:   FreeBSD 9.1
 PHP Version:        5.4.14
 Block user comment: N
 Private report:     N

 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------
[2013-04-21 04:28:34] 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




------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=64686&edit=1


Thread (2 messages)

« previous php.bugs (#178665) next »