summaryrefslogtreecommitdiff
path: root/ext/dom/xpath.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-08-19 08:07:31 +0200
committerAnatol Belski <ab@php.net>2014-08-19 08:07:31 +0200
commit63d3f0b844b3a5f1c94be3c97bca29235dc2b3fc (patch)
treee561a58d6e084c5e4cbdde1f84aed16cf4724383 /ext/dom/xpath.c
parent1e8273964fbd517a2eb9e560f9cdb4afffa0c034 (diff)
downloadphp-git-63d3f0b844b3a5f1c94be3c97bca29235dc2b3fc.tar.gz
basic macro replacements, all at once
Diffstat (limited to 'ext/dom/xpath.c')
-rw-r--r--ext/dom/xpath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dom/xpath.c b/ext/dom/xpath.c
index 93a38614ce..8351946038 100644
--- a/ext/dom/xpath.c
+++ b/ext/dom/xpath.c
@@ -524,7 +524,7 @@ PHP_FUNCTION(dom_xpath_register_php_functions)
zend_hash_internal_pointer_reset(Z_ARRVAL_P(array_value));
while ((entry = zend_hash_get_current_data(Z_ARRVAL_P(array_value)))) {
zend_string *str = zval_get_string(entry);
- ZVAL_LONG(&new_string,1);
+ ZVAL_INT(&new_string,1);
zend_hash_update(intern->registered_phpfunctions, str, &new_string);
zend_hash_move_forward(Z_ARRVAL_P(array_value));
STR_RELEASE(str);
@@ -535,7 +535,7 @@ PHP_FUNCTION(dom_xpath_register_php_functions)
} else if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "S", &name) == SUCCESS) {
intern = Z_XPATHOBJ_P(id);
- ZVAL_LONG(&new_string, 1);
+ ZVAL_INT(&new_string, 1);
zend_hash_update(intern->registered_phpfunctions, name, &new_string);
intern->registerPhpFunctions = 2;
} else {