Skip to content

Instantly share code, notes, and snippets.

@gadost
Created June 14, 2016 13:46
Show Gist options
  • Select an option

  • Save gadost/23443dce7e679737fc04cdf2a210b245 to your computer and use it in GitHub Desktop.

Select an option

Save gadost/23443dce7e679737fc04cdf2a210b245 to your computer and use it in GitHub Desktop.
--- sqlite.c.orig 2016-06-14 13:35:20.726950425 +0000
+++ sqlite.c 2016-06-14 13:35:36.333327205 +0000
@@ -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)
@@ -116,8 +114,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_array_query, NULL)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment