Bug 428787 - php-sqlite problems
php-sqlite problems
Product: Fedora
Classification: Fedora
Component: php (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Joe Orton
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2008-01-15 03:41 EST by Andrew Tch
Modified: 2008-02-13 06:53 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-02-13 06:53:44 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Andrew Tch 2008-01-15 03:41:42 EST
php-sqlite module not avliable. pecl install sqlite gives error:

/root/SQLite-1.0.3/sqlite.c:56: error: 'BYREF_NONE' undeclared here (not in a
/root/SQLite-1.0.3/sqlite.c:56: error: 'BYREF_FORCE' undeclared here (not in a
/root/SQLite-1.0.3/sqlite.c:125: warning: initialization from incompatible
pointer type
/root/SQLite-1.0.3/sqlite.c:126: warning: initialization from incompatible
pointer type


download sqlite via pecl download sqlite, extract the package

edit sqlite.c, comment out line 56:

/*static unsigned char arg3_force_ref[] = {3, BYREF_NONE, BYREF_NONE,

and alter lines 124-127 to the following:

function_entry sqlite_functions[] = {
        PHP_FE(sqlite_open, third_arg_force_ref)
        PHP_FE(sqlite_popen, third_arg_force_ref)

then you will be able to compile sqlite via phpize && ./configure && make.

Please include php-sqlite into fedora core distribution since it is a vital
server package!
Comment 1 Joe Orton 2008-02-13 06:53:44 EST
The sqlite module shipped in PHP only supports sqlite 2.x.  Any compilation
problems with PECL modules should be reported upstream.

Fedora includes the SQLite 3.x backend for PDO in the php-pdo package.

Note You need to log in before you can comment on or make changes to this bug.