source: tags/fc13-eol/server/common/oursrc/php_scripts/php_scripts.h

Last change on this file was 1137, checked in by quentin, 16 years ago
Import scripts PHP module
File size: 1.3 KB
Line 
1/***
2 * scripts.mit.edu PHP extension
3 *
4 * Joe Presbrey <presbrey@mit.edu>
5 * 2008-06-19
6 *
7 ***/
8
9#ifndef PHP_SCRIPTS_H
10#define PHP_SCRIPTS_H 1
11
12#define PHP_SCRIPTS_VERSION "1.0"
13#define PHP_SCRIPTS_EXTNAME "scripts"
14#define PHP_SCRIPTS_AUTHOR "presbrey@mit.edu"
15#define PHP_SCRIPTS_URL "http://scripts.mit.edu/"
16#define PHP_SCRIPTS_YEAR "2008"
17
18#ifdef HAVE_CONFIG_H
19#include "config.h"
20#endif
21
22extern zend_module_entry scripts_module_entry;
23#define phpext_scripts_ptr &scripts_module_entry
24
25/* error callback repalcement functions */
26void (*old_error_cb)(int type, const char *error_filename, const uint error_lineno, const char *format, va_list args);
27void (*new_error_cb)(int type, const char *error_filename, const uint error_lineno, const char *format, va_list args);
28void scripts_error_cb(int type, const char *error_filename, const uint error_lineno, const char *format, va_list args);
29
30static function_entry scripts_functions[] = {
31    {NULL, NULL, NULL}
32};
33
34zend_module_entry scripts_module_entry = {
35#if ZEND_MODULE_API_NO >= 20010901
36    STANDARD_MODULE_HEADER,
37#endif
38    PHP_SCRIPTS_EXTNAME,
39    scripts_functions,
40    NULL, //PHP_MINIT(scripts),
41    NULL, //PHP_MSHUTDOWN(scripts),
42    NULL,
43    NULL,
44    NULL,
45#if ZEND_MODULE_API_NO >= 20010901
46    PHP_SCRIPTS_VERSION,
47#endif
48    STANDARD_MODULE_PROPERTIES
49};
50
51#endif
Note: See TracBrowser for help on using the repository browser.