Changes of Revision 4
[-] | Changed | php-sqlite2.spec |
x 1
2 Url: http://pecl.php.net 3 Summary: PHP SQLite2 extension 4 Source0: http://pecl.php.net/get/SQLite-1.0.3.tgz 5 +Patch0: SQLite-arg3.patch 6 Group: Development/Languages 7 BuildRoot: %{_tmppath}/%{name}-%{version}-root 8 Provides: php-pecl-%{pkgname} = %{version} 9
10 %setup -n %{pkgname}-%{pkgversion} 11 12 %build 13 +%patch0 14 %{_bindir}/phpize 15 %configure --with-sqlite --with-sqlite-utf8 --with-php-config=%{_bindir}/php-config 16 %{__make} %{?_smp_mflags} 17 |
||
[+] | Added | SQLite-arg3.patch ^ |
@@ -0,0 +1,22 @@ +--- sqlite.c.orig 2011-02-02 10:33:14.491112977 +0100 ++++ sqlite.c 2011-02-02 10:34:15.222859300 +0100 +@@ -53,7 +53,7 @@ + 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 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 +122,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) |