php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_xmlwriter.c File Reference
#include "php.h"
#include "ext/standard/info.h"
#include "php_xmlwriter.h"
#include "php_xmlwriter_arginfo.h"

Go to the source code of this file.

Macros

#define XMLWRITER_FROM_OBJECT(ptr, object)
 
#define XMLW_NAME_CHK(__arg_no, __subject)
 

Typedefs

typedef int(* xmlwriter_read_one_char_t) (xmlTextWriterPtr writer, const xmlChar *content)
 
typedef int(* xmlwriter_read_int_t) (xmlTextWriterPtr writer)
 

Functions

 PHP_FUNCTION (xmlwriter_set_indent)
 
 PHP_FUNCTION (xmlwriter_set_indent_string)
 
 PHP_FUNCTION (xmlwriter_start_attribute)
 
 PHP_FUNCTION (xmlwriter_end_attribute)
 
 PHP_FUNCTION (xmlwriter_start_attribute_ns)
 
 PHP_FUNCTION (xmlwriter_write_attribute)
 
 PHP_FUNCTION (xmlwriter_write_attribute_ns)
 
 PHP_FUNCTION (xmlwriter_start_element)
 
 PHP_FUNCTION (xmlwriter_start_element_ns)
 
 PHP_FUNCTION (xmlwriter_end_element)
 
 PHP_FUNCTION (xmlwriter_full_end_element)
 
 PHP_FUNCTION (xmlwriter_write_element)
 
 PHP_FUNCTION (xmlwriter_write_element_ns)
 
 PHP_FUNCTION (xmlwriter_start_pi)
 
 PHP_FUNCTION (xmlwriter_end_pi)
 
 PHP_FUNCTION (xmlwriter_write_pi)
 
 PHP_FUNCTION (xmlwriter_start_cdata)
 
 PHP_FUNCTION (xmlwriter_end_cdata)
 
 PHP_FUNCTION (xmlwriter_write_cdata)
 
 PHP_FUNCTION (xmlwriter_write_raw)
 
 PHP_FUNCTION (xmlwriter_text)
 
 PHP_FUNCTION (xmlwriter_start_comment)
 
 PHP_FUNCTION (xmlwriter_end_comment)
 
 PHP_FUNCTION (xmlwriter_write_comment)
 
 PHP_FUNCTION (xmlwriter_start_document)
 
 PHP_FUNCTION (xmlwriter_end_document)
 
 PHP_FUNCTION (xmlwriter_start_dtd)
 
 PHP_FUNCTION (xmlwriter_end_dtd)
 
 PHP_FUNCTION (xmlwriter_write_dtd)
 
 PHP_FUNCTION (xmlwriter_start_dtd_element)
 
 PHP_FUNCTION (xmlwriter_end_dtd_element)
 
 PHP_FUNCTION (xmlwriter_write_dtd_element)
 
 PHP_FUNCTION (xmlwriter_start_dtd_attlist)
 
 PHP_FUNCTION (xmlwriter_end_dtd_attlist)
 
 PHP_FUNCTION (xmlwriter_write_dtd_attlist)
 
 PHP_FUNCTION (xmlwriter_start_dtd_entity)
 
 PHP_FUNCTION (xmlwriter_end_dtd_entity)
 
 PHP_FUNCTION (xmlwriter_write_dtd_entity)
 
 PHP_FUNCTION (xmlwriter_open_uri)
 
 PHP_METHOD (XMLWriter, toUri)
 
 PHP_FUNCTION (xmlwriter_open_memory)
 
 PHP_METHOD (XMLWriter, toMemory)
 
 PHP_METHOD (XMLWriter, toStream)
 
 PHP_FUNCTION (xmlwriter_output_memory)
 
 PHP_FUNCTION (xmlwriter_flush)
 

Variables

zend_module_entry xmlwriter_module_entry
 

Macro Definition Documentation

◆ XMLW_NAME_CHK

#define XMLW_NAME_CHK ( __arg_no,
__subject )
Value:
if (xmlValidateName((xmlChar *) name, 0) != 0) { \
zend_argument_value_error(__arg_no, "must be a valid %s, \"%s\" given", __subject, name); \
RETURN_THROWS(); \
} \
zend_string * name

Definition at line 93 of file php_xmlwriter.c.

◆ XMLWRITER_FROM_OBJECT

#define XMLWRITER_FROM_OBJECT ( ptr,
object )
Value:
{ \
ptr = obj->ptr; \
if (!ptr) { \
zend_throw_error(NULL, "Invalid or uninitialized XMLWriter object"); \
RETURN_THROWS(); \
} \
}
void * ptr
Definition ffi.c:3814
#define NULL
Definition gdcache.h:45
#define Z_XMLWRITER_P(zv)
struct _ze_xmlwriter_object ze_xmlwriter_object
xmlTextWriterPtr ptr

Definition at line 34 of file php_xmlwriter.c.

Typedef Documentation

◆ xmlwriter_read_int_t

typedef int(* xmlwriter_read_int_t) (xmlTextWriterPtr writer)

Definition at line 31 of file php_xmlwriter.c.

◆ xmlwriter_read_one_char_t

typedef int(* xmlwriter_read_one_char_t) (xmlTextWriterPtr writer, const xmlChar *content)

Definition at line 30 of file php_xmlwriter.c.

Function Documentation

◆ PHP_FUNCTION() [1/42]

PHP_FUNCTION ( xmlwriter_end_attribute )

Definition at line 297 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [2/42]

PHP_FUNCTION ( xmlwriter_end_cdata )

Definition at line 534 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [3/42]

PHP_FUNCTION ( xmlwriter_end_comment )

Definition at line 580 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [4/42]

PHP_FUNCTION ( xmlwriter_end_document )

Definition at line 614 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [5/42]

PHP_FUNCTION ( xmlwriter_end_dtd )

Definition at line 641 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [6/42]

PHP_FUNCTION ( xmlwriter_end_dtd_attlist )

Definition at line 712 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [7/42]

PHP_FUNCTION ( xmlwriter_end_dtd_element )

Definition at line 675 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [8/42]

PHP_FUNCTION ( xmlwriter_end_dtd_entity )

Definition at line 765 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [9/42]

PHP_FUNCTION ( xmlwriter_end_element )

Definition at line 403 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [10/42]

PHP_FUNCTION ( xmlwriter_end_pi )

Definition at line 486 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [11/42]

PHP_FUNCTION ( xmlwriter_flush )

Definition at line 1030 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [12/42]

PHP_FUNCTION ( xmlwriter_full_end_element )

Definition at line 410 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [13/42]

PHP_FUNCTION ( xmlwriter_open_memory )

Definition at line 881 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [14/42]

PHP_FUNCTION ( xmlwriter_open_uri )

Definition at line 800 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [15/42]

PHP_FUNCTION ( xmlwriter_output_memory )

Definition at line 1023 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [16/42]

PHP_FUNCTION ( xmlwriter_set_indent )

Definition at line 264 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [17/42]

PHP_FUNCTION ( xmlwriter_set_indent_string )

Definition at line 283 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [18/42]

PHP_FUNCTION ( xmlwriter_start_attribute )

Definition at line 290 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [19/42]

PHP_FUNCTION ( xmlwriter_start_attribute_ns )

Definition at line 304 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [20/42]

PHP_FUNCTION ( xmlwriter_start_cdata )

Definition at line 516 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [21/42]

PHP_FUNCTION ( xmlwriter_start_comment )

Definition at line 562 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [22/42]

PHP_FUNCTION ( xmlwriter_start_document )

Definition at line 594 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [23/42]

PHP_FUNCTION ( xmlwriter_start_dtd )

Definition at line 621 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [24/42]

PHP_FUNCTION ( xmlwriter_start_dtd_attlist )

Definition at line 705 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [25/42]

PHP_FUNCTION ( xmlwriter_start_dtd_element )

Definition at line 668 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [26/42]

PHP_FUNCTION ( xmlwriter_start_dtd_entity )

Definition at line 742 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [27/42]

PHP_FUNCTION ( xmlwriter_start_element )

Definition at line 373 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [28/42]

PHP_FUNCTION ( xmlwriter_start_element_ns )

Definition at line 380 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [29/42]

PHP_FUNCTION ( xmlwriter_start_pi )

Definition at line 479 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [30/42]

PHP_FUNCTION ( xmlwriter_text )

Definition at line 555 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [31/42]

PHP_FUNCTION ( xmlwriter_write_attribute )

Definition at line 327 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [32/42]

PHP_FUNCTION ( xmlwriter_write_attribute_ns )

Definition at line 350 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [33/42]

PHP_FUNCTION ( xmlwriter_write_cdata )

Definition at line 541 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [34/42]

PHP_FUNCTION ( xmlwriter_write_comment )

Definition at line 587 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [35/42]

PHP_FUNCTION ( xmlwriter_write_dtd )

Definition at line 648 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [36/42]

PHP_FUNCTION ( xmlwriter_write_dtd_attlist )

Definition at line 719 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [37/42]

PHP_FUNCTION ( xmlwriter_write_dtd_element )

Definition at line 682 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [38/42]

PHP_FUNCTION ( xmlwriter_write_dtd_entity )

Definition at line 772 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [39/42]

PHP_FUNCTION ( xmlwriter_write_element )

Definition at line 417 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [40/42]

PHP_FUNCTION ( xmlwriter_write_element_ns )

Definition at line 448 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [41/42]

PHP_FUNCTION ( xmlwriter_write_pi )

Definition at line 493 of file php_xmlwriter.c.

◆ PHP_FUNCTION() [42/42]

PHP_FUNCTION ( xmlwriter_write_raw )

Definition at line 548 of file php_xmlwriter.c.

◆ PHP_METHOD() [1/3]

PHP_METHOD ( XMLWriter ,
toMemory  )

Definition at line 925 of file php_xmlwriter.c.

◆ PHP_METHOD() [2/3]

PHP_METHOD ( XMLWriter ,
toStream  )

Definition at line 961 of file php_xmlwriter.c.

◆ PHP_METHOD() [3/3]

PHP_METHOD ( XMLWriter ,
toUri  )

Definition at line 850 of file php_xmlwriter.c.

Variable Documentation

◆ xmlwriter_module_entry

zend_module_entry xmlwriter_module_entry
Initial value:
= {
xmlwriter_deps,
"xmlwriter",
ext_functions,
PHP_MINIT(xmlwriter),
PHP_MSHUTDOWN(xmlwriter),
PHP_MINFO(xmlwriter),
}
#define PHP_MINFO
Definition php.h:396
#define PHP_MSHUTDOWN
Definition php.h:393
#define PHP_MINIT
Definition php.h:392
#define PHP_XMLWRITER_VERSION
#define STANDARD_MODULE_PROPERTIES
#define STANDARD_MODULE_HEADER_EX

Definition at line 199 of file php_xmlwriter.c.