diff options
| author | Jakub Zelenka <bukka@php.net> | 2014-12-27 19:42:04 +0000 | 
|---|---|---|
| committer | Jakub Zelenka <bukka@php.net> | 2014-12-27 19:42:04 +0000 | 
| commit | b68da91d52801fb2cc4d2a4a44c859ea5b6c622b (patch) | |
| tree | 290f7c8ea7fd2df02c995b07c1d490c2de333db5 /ext/dom/entityreference.c | |
| parent | 4f6539bdaf62f0343f4ec67638d2f96e8c1c00ae (diff) | |
| parent | a9e86957c70c181e830ba05bb030c468d0cb15e1 (diff) | |
| download | php-git-b68da91d52801fb2cc4d2a4a44c859ea5b6c622b.tar.gz | |
Merge branch 'master' into jsond
Conflicts:
	ext/json/JSON_parser.c
	ext/json/JSON_parser.h
	ext/json/config.m4
	ext/json/config.w32
	ext/json/json.c
	ext/json/php_json.h
Diffstat (limited to 'ext/dom/entityreference.c')
| -rw-r--r-- | ext/dom/entityreference.c | 16 | 
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/dom/entityreference.c b/ext/dom/entityreference.c index 1c3e60e4f1..9505654f9d 100644 --- a/ext/dom/entityreference.c +++ b/ext/dom/entityreference.c @@ -56,24 +56,24 @@ PHP_METHOD(domentityreference, __construct)  	size_t name_len, name_valid;  	zend_error_handling error_handling; -	zend_replace_error_handling(EH_THROW, dom_domexception_class_entry, &error_handling TSRMLS_CC); -	if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Os", &id, dom_entityreference_class_entry, &name, &name_len) == FAILURE) { -		zend_restore_error_handling(&error_handling TSRMLS_CC); +	zend_replace_error_handling(EH_THROW, dom_domexception_class_entry, &error_handling); +	if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "Os", &id, dom_entityreference_class_entry, &name, &name_len) == FAILURE) { +		zend_restore_error_handling(&error_handling);  		return;  	} -	zend_restore_error_handling(&error_handling TSRMLS_CC); +	zend_restore_error_handling(&error_handling);  	name_valid = xmlValidateName((xmlChar *) name, 0);  	if (name_valid != 0) { -		php_dom_throw_error(INVALID_CHARACTER_ERR, 1 TSRMLS_CC); +		php_dom_throw_error(INVALID_CHARACTER_ERR, 1);  		RETURN_FALSE;  	}  	node = xmlNewReference(NULL, (xmlChar *) name);  	if (!node) { -		php_dom_throw_error(INVALID_STATE_ERR, 1 TSRMLS_CC); +		php_dom_throw_error(INVALID_STATE_ERR, 1);  		RETURN_FALSE;  	} @@ -81,9 +81,9 @@ PHP_METHOD(domentityreference, __construct)  	if (intern != NULL) {  		oldnode = dom_object_get_node(intern);  		if (oldnode != NULL) { -			php_libxml_node_free_resource(oldnode  TSRMLS_CC); +			php_libxml_node_free_resource(oldnode );  		} -		php_libxml_increment_node_ptr((php_libxml_node_object *)intern, node, (void *)intern TSRMLS_CC); +		php_libxml_increment_node_ptr((php_libxml_node_object *)intern, node, (void *)intern);  	}  }  /* }}} end DOMEntityReference::__construct */  | 
