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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
--- mailparse.c 2005-02-28 07:21:45.000000000 +0100
+++ mailparse.c 2005-08-28 13:38:08.000000000 +0200
@@ -15,7 +15,7 @@
| Author: Wez Furlong <wez@thebrainroom.com> |
+----------------------------------------------------------------------+
*/
-/* $Id: mailparse.c,v 1.48 2005/02/28 05:51:40 wez Exp $ */
+/* $Id: mailparse.c,v 1.49 2005/05/12 13:02:41 wez Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -70,7 +70,7 @@
{NULL, NULL, NULL}
};
-static zend_class_entry mimemsg_class_entry;
+static zend_class_entry *mimemsg_class_entry;
function_entry mailparse_functions[] = {
PHP_FE(mailparse_msg_parse_file, NULL)
@@ -138,6 +138,8 @@
PHP_MINIT_FUNCTION(mailparse)
{
+ zend_class_entry mmce;
+
#ifdef ZTS
zend_mailparse_globals *mailparse_globals;
@@ -145,8 +147,8 @@
mailparse_globals = ts_resource(mailparse_globals_id);
#endif
- INIT_CLASS_ENTRY(mimemsg_class_entry, "mimemessage", mimemessage_methods);
- zend_register_internal_class(&mimemsg_class_entry TSRMLS_CC);
+ INIT_CLASS_ENTRY(mmce, "mimemessage", mimemessage_methods);
+ mimemsg_class_entry = zend_register_internal_class(&mmce TSRMLS_CC);
le_mime_part = zend_register_list_destructors_ex(mimepart_dtor, NULL, mailparse_msg_name, module_number);
@@ -211,7 +213,7 @@
MAKE_STD_ZVAL(zpart);
php_mimepart_to_zval(zpart, part);
- object_init_ex(object, &mimemsg_class_entry);
+ object_init_ex(object, mimemsg_class_entry);
PZVAL_IS_REF(object) = 1;
ZVAL_REFCOUNT(object) = 1;
@@ -654,7 +656,7 @@
php_info_print_table_start();
php_info_print_table_header(2, "mailparse support", "enabled");
php_info_print_table_row(2, "Extension Version", mailparse_module_entry.version);
- php_info_print_table_row(2, "Revision", "$Revision: 1.48 $");
+ php_info_print_table_row(2, "Revision", "$Revision: 1.49 $");
php_info_print_table_end();
DISPLAY_INI_ENTRIES();
|