2001-03-22 11:07:04 +00:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
2004-01-08 17:33:29 +00:00
|
|
|
| PHP Version 5 |
|
2001-03-23 10:23:58 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2004-01-08 17:33:29 +00:00
|
|
|
| Copyright (c) 1997-2004 The PHP Group |
|
2001-03-23 10:23:58 +00:00
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| dbx module version 1.0 |
|
2001-03-22 11:07:04 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2003-07-10 08:25:58 +00:00
|
|
|
| Copyright (c) 2001-2003 Guidance Rotterdam BV |
|
2001-03-22 11:07:04 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2003-06-10 20:04:29 +00:00
|
|
|
| This source file is subject to version 3.0 of the PHP license, |
|
2001-03-22 11:07:04 +00:00
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
2003-06-10 20:04:29 +00:00
|
|
|
| available through the world-wide-web at the following url: |
|
|
|
|
| http://www.php.net/license/3_0.txt. |
|
2001-03-23 10:23:58 +00:00
|
|
|
| If you did not receive a copy of the PHP license and are unable to |
|
|
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
|
|
| license@php.net so we can mail you a copy immediately. |
|
2001-03-22 11:07:04 +00:00
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| Author : Marc Boeren <marc@guidance.nl> |
|
|
|
|
+----------------------------------------------------------------------+
|
2001-03-23 10:23:58 +00:00
|
|
|
*/
|
2001-03-22 11:07:04 +00:00
|
|
|
|
2001-08-07 19:09:58 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2001-03-22 11:07:04 +00:00
|
|
|
#ifndef ZEND_PHP_DBX_H
|
|
|
|
#define ZEND_PHP_DBX_H
|
|
|
|
|
|
|
|
#ifndef INIT_FUNC_ARGS
|
|
|
|
#include "zend_modules.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
extern zend_module_entry dbx_module_entry;
|
|
|
|
#define phpext_dbx_ptr &dbx_module_entry
|
|
|
|
|
|
|
|
#ifdef ZEND_WIN32
|
|
|
|
#define ZEND_DBX_API __declspec(dllexport)
|
|
|
|
#else
|
|
|
|
#define ZEND_DBX_API
|
|
|
|
#endif
|
|
|
|
|
|
|
|
ZEND_MINIT_FUNCTION(dbx);
|
|
|
|
ZEND_MSHUTDOWN_FUNCTION(dbx);
|
2001-06-05 13:39:09 +00:00
|
|
|
/* ZEND_RINIT_FUNCTION(dbx); */
|
|
|
|
/* ZEND_RSHUTDOWN_FUNCTION(dbx); */
|
2001-03-22 15:14:34 +00:00
|
|
|
|
2001-03-22 11:07:04 +00:00
|
|
|
ZEND_MINFO_FUNCTION(dbx);
|
|
|
|
|
|
|
|
ZEND_FUNCTION(dbx_connect);
|
|
|
|
ZEND_FUNCTION(dbx_close);
|
|
|
|
ZEND_FUNCTION(dbx_query);
|
2003-09-05 08:39:26 +00:00
|
|
|
ZEND_FUNCTION(dbx_fetch_row);
|
2001-03-22 11:07:04 +00:00
|
|
|
ZEND_FUNCTION(dbx_error);
|
2002-10-29 14:08:40 +00:00
|
|
|
ZEND_FUNCTION(dbx_escape_string);
|
2001-03-22 11:07:04 +00:00
|
|
|
|
|
|
|
ZEND_FUNCTION(dbx_sort);
|
2001-06-05 13:39:09 +00:00
|
|
|
ZEND_FUNCTION(dbx_compare);
|
2001-03-22 11:07:04 +00:00
|
|
|
|
|
|
|
/*
|
2001-08-17 13:56:29 +00:00
|
|
|
Declare any global variables you may need between the BEGIN
|
|
|
|
and END macros here:
|
2001-03-22 11:07:04 +00:00
|
|
|
*/
|
2001-04-11 08:14:57 +00:00
|
|
|
|
2001-03-23 14:50:17 +00:00
|
|
|
/*
|
2001-03-23 11:50:04 +00:00
|
|
|
ZEND_BEGIN_MODULE_GLOBALS(dbx)
|
|
|
|
ZEND_END_MODULE_GLOBALS(dbx)
|
2001-03-23 14:50:17 +00:00
|
|
|
*/
|
2001-04-11 08:14:57 +00:00
|
|
|
|
2001-03-22 11:07:04 +00:00
|
|
|
/* In every function that needs to use variables in php_dbx_globals,
|
|
|
|
do call dbxLS_FETCH(); after declaring other variables used by
|
|
|
|
that function, and always refer to them as dbxG(variable).
|
|
|
|
You are encouraged to rename these macros something shorter, see
|
|
|
|
examples in any other php module directory.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef ZTS
|
2001-07-28 11:36:37 +00:00
|
|
|
#define DBXG(v) TSRMG(dbx_globals_id, zend_dbx_globals *, v)
|
2001-03-22 11:07:04 +00:00
|
|
|
#else
|
|
|
|
#define DBXG(v) (dbx_globals.v)
|
|
|
|
#endif
|
|
|
|
|
2001-08-17 13:56:29 +00:00
|
|
|
#endif /* ZEND_PHP_DBX_H */
|
2001-03-22 11:07:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Local variables:
|
|
|
|
* tab-width: 4
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* End:
|
|
|
|
*/
|