File: oracle_hack.c

package info (click to toggle)
php3 3%3A3.0.18-0potato1.1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 17,736 kB
  • ctags: 11,198
  • sloc: ansic: 108,120; sh: 2,512; php: 2,024; yacc: 1,887; makefile: 1,038; perl: 537; pascal: 238; awk: 90; cpp: 28; sql: 11
file content (26 lines) | stat: -rw-r--r-- 720 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
    $Id: oracle_hack.c,v 1.3 1998/12/28 09:34:56 sas Exp $

	This file needs to be compiled in with php on windows so that the
	oracle dll will work (and can be compiled).  preferably, I would
	like to see if there is another way accomplish what needs to be
	done with the symbol_table in ora_set_param_values() in oracle.c.
	This is just a quick hack to get this out.

	Shane
*/

#include "php.h"

PHPAPI HashTable *php3i_get_symbol_table(void) {
	TLS_VARS;
	return &GLOBAL(symbol_table);
}

/* This is becoming a general callback file, rather than an oracle hack
 * file.  Seems we need the following now for xml. */

PHPAPI HashTable *php3i_get_function_table(void) {
	TLS_VARS;
	return &GLOBAL(function_table);
}