mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
add DOMDocument xmlEncoding, xmlStandalone, xmlVersion (spec name changes)
add DOMText isElementContentWhitespace (spec name change) - old props/method kept for BC. - spec names changed when Level 3 went from Draft to Recommendation nuke some unused code
This commit is contained in:
parent
b0ffa2497b
commit
7dced12c32
3 changed files with 4 additions and 24 deletions
|
@ -173,28 +173,6 @@ int dom_document_document_element_read(dom_object *obj, zval **retval TSRMLS_DC)
|
|||
|
||||
/* }}} */
|
||||
|
||||
|
||||
/* {{{ proto actualEncoding string
|
||||
readonly=no
|
||||
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-Document3-actualEncoding
|
||||
Since: DOM Level 3
|
||||
*/
|
||||
/* READ ONLY FOR NOW USING ENCODING PROPERTY
|
||||
int dom_document_actual_encoding_read(dom_object *obj, zval **retval TSRMLS_DC)
|
||||
{
|
||||
ALLOC_ZVAL(*retval);
|
||||
ZVAL_NULL(*retval);
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
int dom_document_actual_encoding_write(dom_object *obj, zval *newval TSRMLS_DC)
|
||||
{
|
||||
return SUCCESS;
|
||||
}
|
||||
*/
|
||||
|
||||
/* }}} */
|
||||
|
||||
/* {{{ proto encoding string
|
||||
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-Document3-encoding
|
||||
Since: DOM Level 3
|
||||
|
|
|
@ -472,12 +472,13 @@ PHP_MINIT_FUNCTION(dom)
|
|||
dom_register_prop_handler(&dom_document_prop_handlers, "doctype", dom_document_doctype_read, NULL TSRMLS_CC);
|
||||
dom_register_prop_handler(&dom_document_prop_handlers, "implementation", dom_document_implementation_read, NULL TSRMLS_CC);
|
||||
dom_register_prop_handler(&dom_document_prop_handlers, "documentElement", dom_document_document_element_read, NULL TSRMLS_CC);
|
||||
/* actualEncoding currently set as read only alias to encoding
|
||||
dom_register_prop_handler(&dom_document_prop_handlers, "actualEncoding", dom_document_actual_encoding_read, dom_document_actual_encoding_write TSRMLS_CC); */
|
||||
dom_register_prop_handler(&dom_document_prop_handlers, "actualEncoding", dom_document_encoding_read, NULL TSRMLS_CC);
|
||||
dom_register_prop_handler(&dom_document_prop_handlers, "encoding", dom_document_encoding_read, dom_document_encoding_write TSRMLS_CC);
|
||||
dom_register_prop_handler(&dom_document_prop_handlers, "xmlEncoding", dom_document_encoding_read, NULL TSRMLS_CC);
|
||||
dom_register_prop_handler(&dom_document_prop_handlers, "standalone", dom_document_standalone_read, dom_document_standalone_write TSRMLS_CC);
|
||||
dom_register_prop_handler(&dom_document_prop_handlers, "xmlStandalone", dom_document_standalone_read, dom_document_standalone_write TSRMLS_CC);
|
||||
dom_register_prop_handler(&dom_document_prop_handlers, "version", dom_document_version_read, dom_document_version_write TSRMLS_CC);
|
||||
dom_register_prop_handler(&dom_document_prop_handlers, "xmlVersion", dom_document_version_read, dom_document_version_write TSRMLS_CC);
|
||||
dom_register_prop_handler(&dom_document_prop_handlers, "strictErrorChecking", dom_document_strict_error_checking_read, dom_document_strict_error_checking_write TSRMLS_CC);
|
||||
dom_register_prop_handler(&dom_document_prop_handlers, "documentURI", dom_document_document_uri_read, dom_document_document_uri_write TSRMLS_CC);
|
||||
dom_register_prop_handler(&dom_document_prop_handlers, "config", dom_document_config_read, NULL TSRMLS_CC);
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
zend_function_entry php_dom_text_class_functions[] = {
|
||||
PHP_FALIAS(splitText, dom_text_split_text, NULL)
|
||||
PHP_FALIAS(isWhitespaceInElementContent, dom_text_is_whitespace_in_element_content, NULL)
|
||||
PHP_FALIAS(isElementContentWhitespace, dom_text_is_whitespace_in_element_content, NULL)
|
||||
PHP_FALIAS(replaceWholeText, dom_text_replace_whole_text, NULL)
|
||||
PHP_ME(domtext, __construct, NULL, ZEND_ACC_PUBLIC)
|
||||
{NULL, NULL, NULL}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue