note 90128 added to sqlite.installation

From: Date: Tue, 07 Apr 2009 16:55:53 +0000
Subject: note 90128 added to sqlite.installation
Groups: php.notes 
Request: Send a blank email to php-notes+get-152910@lists.php.net to get a copy of this message
RedHat Enterprise Linux 5 or CentOS 5 sqlite extension install Super User - root shell> mkdir temp shell> cd temp shell> wget http://pecl.php.net/get/SQLite-1.0.3.tgz shell> tar zxvf SQLite-1.0.3.tgz shell> cd SQLite-1.0.3 sqlite.c patch --- sqlite.c.orig 2004-07-18 19:23:18.000000000 +0900 +++ sqlite.c 2009-04-08 01:39:40.000000000 +0900 @@ -53,7 +53,9 @@ extern int sqlite_encode_binary(const unsigned char *in, int n, unsigned char *out); extern int sqlite_decode_binary(const unsigned char *in, unsigned char *out); +/* static unsigned char arg3_force_ref[] = {3, BYREF_NONE, BYREF_NONE, BYREF_FORCE }; +*/ static int le_sqlite_db, le_sqlite_result, le_sqlite_pdb; @@ -122,8 +124,8 @@ enum { PHPSQLITE_ASSOC = 1, PHPSQLITE_NUM = 2, PHPSQLITE_BOTH = PHPSQLITE_ASSOC|PHPSQLITE_NUM }; function_entry sqlite_functions[] = { - PHP_FE(sqlite_open, arg3_force_ref) - PHP_FE(sqlite_popen, arg3_force_ref) + PHP_FE(sqlite_open, third_arg_force_ref) + PHP_FE(sqlite_popen, third_arg_force_ref) PHP_FE(sqlite_close, NULL) PHP_FE(sqlite_query, NULL) PHP_FE(sqlite_exec, NULL) shell> phpize shell> ./configure shell> make && make install shell> ls -l /usr/lib/php/modules/sqlite.so -rwxr-xr-x 1 root root 871225 Apr 7 18:07 /usr/lib/php/modules/sqlite.so shell> cd /etc/php.d shell> vi sqlite.ini ; Enable sqlite extension module extension=sqlite.so :wq Web Server Restart phpinfo.php <?php phpinfo(); ?> sqlite SQLite support enabled PECL Module version 1.0.3 $Id: sqlite.c,v 1.62.2.25 2004/07/10 12:25:33 wez Exp $ SQLite Library 2.8.14 SQLite Encoding iso8859 Directive Local Value Master Value sqlite.assoc_case 0 0 ---- Server IP: 211.43.210.124 Probable Submitter: 61.72.73.45 ---- Manual Page -- http://www.php.net/manual/en/sqlite.installation.php Edit -- https://master.php.net/note/edit/90128 Del: integrated -- https://master.php.net/note/delete/90128/integrated Del: useless -- https://master.php.net/note/delete/90128/useless Del: bad code -- https://master.php.net/note/delete/90128/bad+code Del: spam -- https://master.php.net/note/delete/90128/spam Del: non-english -- https://master.php.net/note/delete/90128/non-english Del: in docs -- https://master.php.net/note/delete/90128/in+docs Del: other reasons-- https://master.php.net/note/delete/90128 Reject -- https://master.php.net/note/reject/90128 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#152910) next »