| 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 |  | 
|---|
| 22 | extern zend_module_entry scripts_module_entry; | 
|---|
| 23 | #define phpext_scripts_ptr &scripts_module_entry | 
|---|
| 24 |  | 
|---|
| 25 | /* error callback repalcement functions */ | 
|---|
| 26 | void (*old_error_cb)(int type, const char *error_filename, const uint error_lineno, const char *format, va_list args); | 
|---|
| 27 | void (*new_error_cb)(int type, const char *error_filename, const uint error_lineno, const char *format, va_list args); | 
|---|
| 28 | void scripts_error_cb(int type, const char *error_filename, const uint error_lineno, const char *format, va_list args); | 
|---|
| 29 |  | 
|---|
| 30 | static function_entry scripts_functions[] = { | 
|---|
| 31 | {NULL, NULL, NULL} | 
|---|
| 32 | }; | 
|---|
| 33 |  | 
|---|
| 34 | zend_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 | 
|---|