Lines Matching refs:intern
86 static void xmlwriter_free_resource_ptr(xmlwriter_object *intern);
93 static void xmlwriter_free_resource_ptr(xmlwriter_object *intern) in xmlwriter_free_resource_ptr() argument
95 if (intern) { in xmlwriter_free_resource_ptr()
96 if (intern->ptr) { in xmlwriter_free_resource_ptr()
97 xmlFreeTextWriter(intern->ptr); in xmlwriter_free_resource_ptr()
98 intern->ptr = NULL; in xmlwriter_free_resource_ptr()
100 if (intern->output) { in xmlwriter_free_resource_ptr()
101 xmlBufferFree(intern->output); in xmlwriter_free_resource_ptr()
102 intern->output = NULL; in xmlwriter_free_resource_ptr()
104 efree(intern); in xmlwriter_free_resource_ptr()
110 #define XMLWRITER_FROM_OBJECT(intern, object) \ argument
113 intern = obj->xmlwriter_ptr; \
114 if (!intern) { \
126 ze_xmlwriter_object *intern = php_xmlwriter_fetch_object(object); in xmlwriter_object_free_storage() local
127 if (!intern) { in xmlwriter_object_free_storage()
130 if (intern->xmlwriter_ptr) { in xmlwriter_object_free_storage()
131 xmlwriter_free_resource_ptr(intern->xmlwriter_ptr); in xmlwriter_object_free_storage()
133 intern->xmlwriter_ptr = NULL; in xmlwriter_object_free_storage()
134 zend_object_std_dtor(&intern->std); in xmlwriter_object_free_storage()
142 ze_xmlwriter_object *intern; in xmlwriter_object_new() local
144 intern = ecalloc(1, sizeof(ze_xmlwriter_object) + zend_object_properties_size(class_type)); in xmlwriter_object_new()
145 zend_object_std_init(&intern->std, class_type); in xmlwriter_object_new()
146 object_properties_init(&intern->std, class_type); in xmlwriter_object_new()
147 intern->std.handlers = &xmlwriter_object_handlers; in xmlwriter_object_new()
149 return &intern->std; in xmlwriter_object_new()
685 xmlwriter_object *intern; in ZEND_GET_MODULE() local
687 intern = (xmlwriter_object *) rsrc->ptr; in ZEND_GET_MODULE()
688 xmlwriter_free_resource_ptr(intern); in ZEND_GET_MODULE()
695 xmlwriter_object *intern; in php_xmlwriter_string_arg() local
707 XMLWRITER_FROM_OBJECT(intern, self); in php_xmlwriter_string_arg()
713 …if ((intern = (xmlwriter_object *)zend_fetch_resource(Z_RES_P(pind), "XMLWriter", le_xmlwriter)) =… in php_xmlwriter_string_arg()
722 ptr = intern->ptr; in php_xmlwriter_string_arg()
737 xmlwriter_object *intern; in php_xmlwriter_end() local
743 XMLWRITER_FROM_OBJECT(intern, self); in php_xmlwriter_end()
751 …if ((intern = (xmlwriter_object *)zend_fetch_resource(Z_RES_P(pind), "XMLWriter", le_xmlwriter)) =… in php_xmlwriter_end()
756 ptr = intern->ptr; in php_xmlwriter_end()
774 xmlwriter_object *intern; in PHP_FUNCTION() local
785 XMLWRITER_FROM_OBJECT(intern, self); in PHP_FUNCTION()
790 …if ((intern = (xmlwriter_object *)zend_fetch_resource(Z_RES_P(pind), "XMLWriter", le_xmlwriter)) =… in PHP_FUNCTION()
796 ptr = intern->ptr; in PHP_FUNCTION()
840 xmlwriter_object *intern; in PHP_FUNCTION() local
852 XMLWRITER_FROM_OBJECT(intern, self); in PHP_FUNCTION()
858 …if ((intern = (xmlwriter_object *)zend_fetch_resource(Z_RES_P(pind), "XMLWriter", le_xmlwriter)) =… in PHP_FUNCTION()
865 ptr = intern->ptr; in PHP_FUNCTION()
884 xmlwriter_object *intern; in PHP_FUNCTION() local
896 XMLWRITER_FROM_OBJECT(intern, self); in PHP_FUNCTION()
902 …if ((intern = (xmlwriter_object *)zend_fetch_resource(Z_RES_P(pind), "XMLWriter", le_xmlwriter)) =… in PHP_FUNCTION()
909 ptr = intern->ptr; in PHP_FUNCTION()
928 xmlwriter_object *intern; in PHP_FUNCTION() local
941 XMLWRITER_FROM_OBJECT(intern, self); in PHP_FUNCTION()
947 …if ((intern = (xmlwriter_object *)zend_fetch_resource(Z_RES_P(pind), "XMLWriter", le_xmlwriter)) =… in PHP_FUNCTION()
954 ptr = intern->ptr; in PHP_FUNCTION()
981 xmlwriter_object *intern; in PHP_FUNCTION() local
993 XMLWRITER_FROM_OBJECT(intern, self); in PHP_FUNCTION()
999 …if ((intern = (xmlwriter_object *)zend_fetch_resource(Z_RES_P(pind), "XMLWriter", le_xmlwriter)) =… in PHP_FUNCTION()
1006 ptr = intern->ptr; in PHP_FUNCTION()
1041 xmlwriter_object *intern; in PHP_FUNCTION() local
1053 XMLWRITER_FROM_OBJECT(intern, self); in PHP_FUNCTION()
1059 …if ((intern = (xmlwriter_object *)zend_fetch_resource(Z_RES_P(pind), "XMLWriter", le_xmlwriter)) =… in PHP_FUNCTION()
1066 ptr = intern->ptr; in PHP_FUNCTION()
1095 xmlwriter_object *intern; in PHP_FUNCTION() local
1107 XMLWRITER_FROM_OBJECT(intern, self); in PHP_FUNCTION()
1113 …if ((intern = (xmlwriter_object *)zend_fetch_resource(Z_RES_P(pind), "XMLWriter", le_xmlwriter)) =… in PHP_FUNCTION()
1120 ptr = intern->ptr; in PHP_FUNCTION()
1165 xmlwriter_object *intern; in PHP_FUNCTION() local
1178 XMLWRITER_FROM_OBJECT(intern, self); in PHP_FUNCTION()
1184 …if ((intern = (xmlwriter_object *)zend_fetch_resource(Z_RES_P(pind), "XMLWriter", le_xmlwriter)) =… in PHP_FUNCTION()
1191 ptr = intern->ptr; in PHP_FUNCTION()
1209 xmlwriter_object *intern; in PHP_FUNCTION() local
1215 XMLWRITER_FROM_OBJECT(intern, self); in PHP_FUNCTION()
1220 …if ((intern = (xmlwriter_object *)zend_fetch_resource(Z_RES_P(pind), "XMLWriter", le_xmlwriter)) =… in PHP_FUNCTION()
1225 ptr = intern->ptr; in PHP_FUNCTION()
1276 xmlwriter_object *intern; in PHP_FUNCTION() local
1282 XMLWRITER_FROM_OBJECT(intern, self); in PHP_FUNCTION()
1287 …if ((intern = (xmlwriter_object *)zend_fetch_resource(Z_RES_P(pind), "XMLWriter", le_xmlwriter)) =… in PHP_FUNCTION()
1292 ptr = intern->ptr; in PHP_FUNCTION()
1328 xmlwriter_object *intern; in PHP_FUNCTION() local
1340 XMLWRITER_FROM_OBJECT(intern, self); in PHP_FUNCTION()
1345 …if ((intern = (xmlwriter_object *)zend_fetch_resource(Z_RES_P(pind), "XMLWriter", le_xmlwriter)) =… in PHP_FUNCTION()
1350 ptr = intern->ptr; in PHP_FUNCTION()
1376 xmlwriter_object *intern; in PHP_FUNCTION() local
1388 XMLWRITER_FROM_OBJECT(intern, self); in PHP_FUNCTION()
1393 …if ((intern = (xmlwriter_object *)zend_fetch_resource(Z_RES_P(pind), "XMLWriter", le_xmlwriter)) =… in PHP_FUNCTION()
1397 ptr = intern->ptr; in PHP_FUNCTION()
1423 xmlwriter_object *intern; in PHP_FUNCTION() local
1435 XMLWRITER_FROM_OBJECT(intern, self); in PHP_FUNCTION()
1441 …if ((intern = (xmlwriter_object *)zend_fetch_resource(Z_RES_P(pind), "XMLWriter", le_xmlwriter)) =… in PHP_FUNCTION()
1446 ptr = intern->ptr; in PHP_FUNCTION()
1480 xmlwriter_object *intern; in PHP_FUNCTION() local
1491 XMLWRITER_FROM_OBJECT(intern, self); in PHP_FUNCTION()
1497 …if ((intern = (xmlwriter_object *)zend_fetch_resource(Z_RES_P(pind), "XMLWriter", le_xmlwriter)) =… in PHP_FUNCTION()
1504 ptr = intern->ptr; in PHP_FUNCTION()
1539 xmlwriter_object *intern; in PHP_FUNCTION() local
1551 XMLWRITER_FROM_OBJECT(intern, self); in PHP_FUNCTION()
1557 …if ((intern = (xmlwriter_object *)zend_fetch_resource(Z_RES_P(pind), "XMLWriter", le_xmlwriter)) =… in PHP_FUNCTION()
1564 ptr = intern->ptr; in PHP_FUNCTION()
1582 xmlwriter_object *intern; in PHP_FUNCTION() local
1594 XMLWRITER_FROM_OBJECT(intern, self); in PHP_FUNCTION()
1599 …if ((intern = (xmlwriter_object *)zend_fetch_resource(Z_RES_P(pind), "XMLWriter", le_xmlwriter)) =… in PHP_FUNCTION()
1606 ptr = intern->ptr; in PHP_FUNCTION()
1632 xmlwriter_object *intern; in PHP_FUNCTION() local
1649 XMLWRITER_FROM_OBJECT(intern, self); in PHP_FUNCTION()
1656 …if ((intern = (xmlwriter_object *)zend_fetch_resource(Z_RES_P(pind), "XMLWriter", le_xmlwriter)) =… in PHP_FUNCTION()
1663 ptr = intern->ptr; in PHP_FUNCTION()
1682 xmlwriter_object *intern; in PHP_FUNCTION() local
1716 intern = emalloc(sizeof(xmlwriter_object)); in PHP_FUNCTION()
1717 intern->ptr = ptr; in PHP_FUNCTION()
1718 intern->output = NULL; in PHP_FUNCTION()
1723 ze_obj->xmlwriter_ptr = intern; in PHP_FUNCTION()
1726 RETURN_RES(zend_register_resource(intern, le_xmlwriter)); in PHP_FUNCTION()
1735 xmlwriter_object *intern; in PHP_FUNCTION() local
1759 intern = emalloc(sizeof(xmlwriter_object)); in PHP_FUNCTION()
1760 intern->ptr = ptr; in PHP_FUNCTION()
1761 intern->output = buffer; in PHP_FUNCTION()
1766 ze_obj->xmlwriter_ptr = intern; in PHP_FUNCTION()
1769 RETURN_RES(zend_register_resource(intern, le_xmlwriter)); in PHP_FUNCTION()
1778 xmlwriter_object *intern; in php_xmlwriter_flush() local
1789 XMLWRITER_FROM_OBJECT(intern, self); in php_xmlwriter_flush()
1795 …if ((intern = (xmlwriter_object *)zend_fetch_resource(Z_RES_P(pind), "XMLWriter", le_xmlwriter)) =… in php_xmlwriter_flush()
1799 ptr = intern->ptr; in php_xmlwriter_flush()
1802 buffer = intern->output; in php_xmlwriter_flush()