From:             svyatoslav dot lempert at gmail dot com
Operating system: FreeBSD 9.1
PHP version:      5.4.14
Package:          SQLite related
Bug Type:         Bug
Bug description:PECL SQLite2 support for PHP 5.4

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 bug report at https://bugs.php.net/bug.php?id=64686&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=64686&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=64686&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=64686&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=64686&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=64686&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=64686&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=64686&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=64686&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=64686&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=64686&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=64686&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=64686&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=64686&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64686&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=64686&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=64686&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=64686&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64686&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=64686&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=64686&r=mysqlcfg

Reply via email to