php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_encoding.c File Reference
#include <time.h>
#include "php_soap.h"
#include "ext/libxml/php_libxml.h"
#include "ext/standard/base64.h"
#include "ext/date/php_date.h"
#include <libxml/parserInternals.h>
#include "zend_strtod.h"
#include "zend_interfaces.h"
#include "zend_enum.h"

Go to the source code of this file.

Macros

#define FIND_XML_NULL(xml, zval)
 
#define CHECK_XML_NULL(xml)
 
#define FIND_ZVAL_NULL(zval, xml, style)
 
#define TO_XML_DATETIME_EX_HELPER(type, date, format, ext_date_format, style, parent)
 

Functions

void whiteSpace_replace (xmlChar *str)
 
void whiteSpace_collapse (xmlChar *str)
 
xmlNodePtr master_to_xml (encodePtr encode, zval *data, int style, xmlNodePtr parent)
 
zvalmaster_to_zval (zval *ret, encodePtr encode, xmlNodePtr data)
 
xmlNodePtr to_xml_user (encodeTypePtr type, zval *data, int style, xmlNodePtr parent)
 
zvalto_zval_user (zval *ret, encodeTypePtr type, xmlNodePtr node)
 
zvalsdl_guess_convert_zval (zval *ret, encodeTypePtr enc, xmlNodePtr data)
 
xmlNodePtr sdl_guess_convert_xml (encodeTypePtr enc, zval *data, int style, xmlNodePtr parent)
 
xmlNsPtr encode_add_ns (xmlNodePtr node, const char *ns)
 
void encode_reset_ns (void)
 
void encode_finish (void)
 
encodePtr get_conversion (int encode)
 
void delete_encoder (zval *zv)
 
void delete_encoder_persistent (zval *zv)
 

Variables

encode defaultEncoding []
 
int numDefaultEncodings = sizeof(defaultEncoding)/sizeof(encode)
 

Macro Definition Documentation

◆ CHECK_XML_NULL

#define CHECK_XML_NULL ( xml)
Value:
{ \
xmlAttrPtr null; \
if (!xml) { \
ZVAL_NULL(ret); \
return ret; \
} \
if (xml->properties) { \
null = get_attribute(xml->properties, "nil"); \
if (null) { \
ZVAL_NULL(ret); \
return ret; \
} \
} \
}
text application xhtml xml
Definition mbstring.c:951
#define get_attribute(node, name)
Definition php_xml.h:22
zval * ret

Definition at line 116 of file php_encoding.c.

◆ FIND_XML_NULL

#define FIND_XML_NULL ( xml,
zval )
Value:
{ \
xmlAttrPtr null; \
if (!xml) { \
ZVAL_NULL(zval); \
return zval; \
} \
if (xml->properties) { \
null = get_attribute(xml->properties, "nil"); \
if (null) { \
ZVAL_NULL(zval); \
return zval; \
} \
} \
}
struct _zval_struct zval

Definition at line 100 of file php_encoding.c.

◆ FIND_ZVAL_NULL

#define FIND_ZVAL_NULL ( zval,
xml,
style )
Value:
{ \
if (!zval || Z_TYPE_P(zval) == IS_NULL) { \
if (style == SOAP_ENCODED) {\
set_xsi_nil(xml); \
} \
return xml; \
} \
}
@ SOAP_ENCODED
Definition php_sdl.h:43
#define Z_TYPE_P(zval_p)
Definition zend_types.h:660
#define IS_NULL
Definition zend_types.h:601

Definition at line 132 of file php_encoding.c.

◆ TO_XML_DATETIME_EX_HELPER

#define TO_XML_DATETIME_EX_HELPER ( type,
date,
format,
ext_date_format,
style,
parent )
Value:
to_xml_datetime_ex(type, data, format, ext_date_format, strlen(ext_date_format), style, parent)
zend_ffi_type * type
Definition ffi.c:3812
zend_constant * data
strlen(string $string)

Definition at line 2999 of file php_encoding.c.

Function Documentation

◆ delete_encoder()

void delete_encoder ( zval * zv)

Definition at line 3704 of file php_encoding.c.

◆ delete_encoder_persistent()

void delete_encoder_persistent ( zval * zv)

Definition at line 3722 of file php_encoding.c.

◆ encode_add_ns()

xmlNsPtr encode_add_ns ( xmlNodePtr node,
const char * ns )

Definition at line 3456 of file php_encoding.c.

◆ encode_finish()

void encode_finish ( void )

Definition at line 3531 of file php_encoding.c.

◆ encode_reset_ns()

void encode_reset_ns ( void )

Definition at line 3519 of file php_encoding.c.

◆ get_conversion()

encodePtr get_conversion ( int encode)

Definition at line 3542 of file php_encoding.c.

◆ master_to_xml()

xmlNodePtr master_to_xml ( encodePtr encode,
zval * data,
int style,
xmlNodePtr parent )

Definition at line 514 of file php_encoding.c.

◆ master_to_zval()

zval * master_to_zval ( zval * ret,
encodePtr encode,
xmlNodePtr data )

Definition at line 568 of file php_encoding.c.

◆ sdl_guess_convert_xml()

xmlNodePtr sdl_guess_convert_xml ( encodeTypePtr enc,
zval * data,
int style,
xmlNodePtr parent )

Definition at line 3287 of file php_encoding.c.

◆ sdl_guess_convert_zval()

zval * sdl_guess_convert_zval ( zval * ret,
encodeTypePtr enc,
xmlNodePtr data )

Definition at line 3223 of file php_encoding.c.

◆ to_xml_user()

xmlNodePtr to_xml_user ( encodeTypePtr type,
zval * data,
int style,
xmlNodePtr parent )

Definition at line 602 of file php_encoding.c.

◆ to_zval_user()

zval * to_zval_user ( zval * ret,
encodeTypePtr type,
xmlNodePtr node )

Definition at line 633 of file php_encoding.c.

◆ whiteSpace_collapse()

void whiteSpace_collapse ( xmlChar * str)

Definition at line 245 of file php_encoding.c.

◆ whiteSpace_replace()

void whiteSpace_replace ( xmlChar * str)

Definition at line 235 of file php_encoding.c.

Variable Documentation

◆ defaultEncoding

encode defaultEncoding[]

Definition at line 142 of file php_encoding.c.

◆ numDefaultEncodings

int numDefaultEncodings = sizeof(defaultEncoding)/sizeof(encode)

Definition at line 232 of file php_encoding.c.