51ebac2c33
(definition is identical on PHP4), so that this compiles with PHP5 allow the package to build with PHP5 too, bump package revision
24 lines
955 B
Text
24 lines
955 B
Text
$NetBSD: patch-aa,v 1.1 2005/09/18 15:22:11 jdolecek Exp $
|
|
|
|
--- sqlite.c.orig 2005-09-18 16:59:55.000000000 +0200
|
|
+++ sqlite.c 2005-09-18 17:01:08.000000000 +0200
|
|
@@ -53,8 +53,6 @@
|
|
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;
|
|
|
|
static inline void php_sqlite_strtoupper(char *s)
|
|
@@ -122,8 +120,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)
|