File tree Expand file tree Collapse file tree 5 files changed +219
-261
lines changed Expand file tree Collapse file tree 5 files changed +219
-261
lines changed Original file line number Diff line number Diff line change @@ -75,10 +75,10 @@ typedef struct _php_libxml_node_ptr {
75
75
} php_libxml_node_ptr ;
76
76
77
77
typedef struct _php_libxml_node_object {
78
- zend_object std ;
79
78
php_libxml_node_ptr * node ;
80
79
php_libxml_ref_obj * document ;
81
80
HashTable * properties ;
81
+ zend_object std ;
82
82
} php_libxml_node_object ;
83
83
84
84
typedef void * (* php_libxml_export_node ) (zval * object TSRMLS_DC );
Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ typedef enum {
55
55
} SXE_ITER ;
56
56
57
57
typedef struct {
58
- zend_object zo ;
59
58
php_libxml_node_ptr * node ;
60
59
php_libxml_ref_obj * document ;
61
60
HashTable * properties ;
@@ -65,10 +64,11 @@ typedef struct {
65
64
xmlChar * nsprefix ;
66
65
int isprefix ;
67
66
SXE_ITER type ;
68
- zval * data ;
67
+ zval data ;
69
68
} iter ;
70
- zval * tmp ;
69
+ zval tmp ;
71
70
zend_function * fptr_count ;
71
+ zend_object zo ;
72
72
} php_sxe_object ;
73
73
74
74
#ifdef ZTS
Original file line number Diff line number Diff line change 39
39
} \
40
40
}
41
41
42
- PHP_SXE_API zend_object_value sxe_object_new (zend_class_entry * ce TSRMLS_DC );
43
- /* {{{ php_sxe_fetch_object()
44
- */
45
- static inline php_sxe_object *
46
- php_sxe_fetch_object (zval * object TSRMLS_DC )
47
- {
48
- return (php_sxe_object * ) zend_object_store_get_object (object TSRMLS_CC );
42
+ PHP_SXE_API zend_object * sxe_object_new (zend_class_entry * ce TSRMLS_DC );
43
+
44
+ static inline php_sxe_object * php_sxe_fetch_object (zend_object * obj ) /* {{{ */ {
45
+ return (php_sxe_object * )((char * )(obj ) - XtOffsetOf (php_sxe_object , zo ));
49
46
}
50
47
/* }}} */
51
48
49
+ #define Z_SXEOBJ_P (zv ) php_sxe_fetch_object(Z_OBJ_P((zv)))
50
+
52
51
typedef struct {
53
52
zend_object_iterator intern ;
54
53
php_sxe_object * sxe ;
You can’t perform that action at this time.
0 commit comments