mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
master renames phase 1
This commit is contained in:
parent
0cf2dbdf58
commit
c3e3c98ec6
486 changed files with 11459 additions and 11541 deletions
|
@ -138,7 +138,7 @@ static char **php_xsl_xslt_make_params(HashTable *parht, int xpath_params TSRMLS
|
|||
zval *value;
|
||||
char *xpath_expr;
|
||||
zend_string *string_key;
|
||||
php_uint_t num_key;
|
||||
zend_ulong num_key;
|
||||
char **params = NULL;
|
||||
int i = 0;
|
||||
|
||||
|
@ -160,7 +160,7 @@ static char **php_xsl_xslt_make_params(HashTable *parht, int xpath_params TSRMLS
|
|||
if (!xpath_params) {
|
||||
xpath_expr = php_xsl_xslt_string_to_xpathexpr(Z_STRVAL_P(value) TSRMLS_CC);
|
||||
} else {
|
||||
xpath_expr = estrndup(Z_STRVAL_P(value), Z_STRSIZE_P(value));
|
||||
xpath_expr = estrndup(Z_STRVAL_P(value), Z_STRLEN_P(value));
|
||||
}
|
||||
if (xpath_expr) {
|
||||
params[i++] = estrndup(string_key->val, string_key->len);
|
||||
|
@ -351,7 +351,7 @@ static void xsl_ext_function_php(xmlXPathParserContextPtr ctxt, int nargs, int t
|
|||
nodep = dom_object_get_node(obj);
|
||||
valuePush(ctxt, xmlXPathNewNodeSet(nodep));
|
||||
} else if (Z_TYPE(retval) == IS_TRUE || Z_TYPE(retval) == IS_FALSE) {
|
||||
valuePush(ctxt, xmlXPathNewBoolean(Z_IVAL(retval)));
|
||||
valuePush(ctxt, xmlXPathNewBoolean(Z_LVAL(retval)));
|
||||
} else if (Z_TYPE(retval) == IS_OBJECT) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "A PHP Object cannot be converted to a XPath-string");
|
||||
valuePush(ctxt, xmlXPathNewString(""));
|
||||
|
@ -362,7 +362,7 @@ static void xsl_ext_function_php(xmlXPathParserContextPtr ctxt, int nargs, int t
|
|||
zval_ptr_dtor(&retval);
|
||||
}
|
||||
}
|
||||
STR_RELEASE(callable);
|
||||
zend_string_release(callable);
|
||||
zval_ptr_dtor(&handler);
|
||||
if (fci.param_count > 0) {
|
||||
for (i = 0; i < nargs - 1; i++) {
|
||||
|
@ -438,7 +438,7 @@ PHP_FUNCTION(xsl_xsltprocessor_import_stylesheet)
|
|||
cloneDocu = std_hnd->read_property(id, &member, BP_VAR_IS, NULL, &rv TSRMLS_CC);
|
||||
if (Z_TYPE_P(cloneDocu) != IS_NULL) {
|
||||
convert_to_int(cloneDocu);
|
||||
clone_docu = Z_IVAL_P(cloneDocu);
|
||||
clone_docu = Z_LVAL_P(cloneDocu);
|
||||
}
|
||||
zval_ptr_dtor(&member);
|
||||
if (clone_docu == 0) {
|
||||
|
@ -537,7 +537,7 @@ static xmlDocPtr php_xsl_apply_stylesheet(zval *id, xsl_object *intern, xsltStyl
|
|||
doXInclude = std_hnd->read_property(id, &member, BP_VAR_IS, NULL, &rv TSRMLS_CC);
|
||||
if (Z_TYPE_P(doXInclude) != IS_NULL) {
|
||||
convert_to_int(doXInclude);
|
||||
ctxt->xinclude = Z_IVAL_P(doXInclude);
|
||||
ctxt->xinclude = Z_LVAL_P(doXInclude);
|
||||
}
|
||||
zval_ptr_dtor(&member);
|
||||
|
||||
|
@ -715,7 +715,7 @@ PHP_FUNCTION(xsl_xsltprocessor_transform_to_uri)
|
|||
xmlFreeDoc(newdocp);
|
||||
}
|
||||
|
||||
RETVAL_INT(ret);
|
||||
RETVAL_LONG(ret);
|
||||
}
|
||||
/* }}} end xsl_xsltprocessor_transform_to_uri */
|
||||
|
||||
|
@ -765,7 +765,7 @@ PHP_FUNCTION(xsl_xsltprocessor_set_parameter)
|
|||
zval *id;
|
||||
zval *array_value, *entry, new_string;
|
||||
xsl_object *intern;
|
||||
php_uint_t idx;
|
||||
zend_ulong idx;
|
||||
char *namespace;
|
||||
int namespace_len;
|
||||
zend_string *string_key, *name, *value;
|
||||
|
@ -790,7 +790,7 @@ PHP_FUNCTION(xsl_xsltprocessor_set_parameter)
|
|||
|
||||
intern = Z_XSL_P(id);
|
||||
|
||||
ZVAL_STR(&new_string, STR_COPY(value));
|
||||
ZVAL_STR(&new_string, zend_string_copy(value));
|
||||
|
||||
zend_hash_update(intern->parameter, name, &new_string);
|
||||
RETURN_TRUE;
|
||||
|
@ -820,7 +820,7 @@ PHP_FUNCTION(xsl_xsltprocessor_get_parameter)
|
|||
intern = Z_XSL_P(id);
|
||||
if ((value = zend_hash_find(intern->parameter, name)) != NULL) {
|
||||
convert_to_string_ex(value);
|
||||
RETURN_STR(STR_COPY(Z_STR_P(value)));
|
||||
RETURN_STR(zend_string_copy(Z_STR_P(value)));
|
||||
} else {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
@ -868,7 +868,7 @@ PHP_FUNCTION(xsl_xsltprocessor_register_php_functions)
|
|||
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(array_value), entry) {
|
||||
SEPARATE_ZVAL(entry);
|
||||
convert_to_string_ex(entry);
|
||||
ZVAL_INT(&new_string ,1);
|
||||
ZVAL_LONG(&new_string ,1);
|
||||
zend_hash_update(intern->registered_phpfunctions, Z_STR_P(entry), &new_string);
|
||||
} ZEND_HASH_FOREACH_END();
|
||||
|
||||
|
@ -876,7 +876,7 @@ PHP_FUNCTION(xsl_xsltprocessor_register_php_functions)
|
|||
} else if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "S", &name) == SUCCESS) {
|
||||
intern = Z_XSL_P(id);
|
||||
|
||||
ZVAL_INT(&new_string,1);
|
||||
ZVAL_LONG(&new_string,1);
|
||||
zend_hash_update(intern->registered_phpfunctions, name, &new_string);
|
||||
intern->registerPhpFunctions = 2;
|
||||
|
||||
|
@ -919,10 +919,10 @@ PHP_FUNCTION(xsl_xsltprocessor_set_security_prefs)
|
|||
{
|
||||
zval *id;
|
||||
xsl_object *intern;
|
||||
php_int_t securityPrefs, oldSecurityPrefs;
|
||||
zend_long securityPrefs, oldSecurityPrefs;
|
||||
|
||||
DOM_GET_THIS(id);
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "i", &securityPrefs) == FAILURE) {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &securityPrefs) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
intern = Z_XSL_P(id);
|
||||
|
@ -930,7 +930,7 @@ PHP_FUNCTION(xsl_xsltprocessor_set_security_prefs)
|
|||
intern->securityPrefs = securityPrefs;
|
||||
/* set this to 1 so that we know, it was set through this method. Can be removed, when we remove the ini setting */
|
||||
intern->securityPrefsSet = 1;
|
||||
RETURN_INT(oldSecurityPrefs);
|
||||
RETURN_LONG(oldSecurityPrefs);
|
||||
}
|
||||
/* }}} end xsl_xsltprocessor_set_security_prefs */
|
||||
|
||||
|
@ -943,7 +943,7 @@ PHP_FUNCTION(xsl_xsltprocessor_get_security_prefs)
|
|||
DOM_GET_THIS(id);
|
||||
if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "") == SUCCESS) {
|
||||
intern = Z_XSL_P(id);
|
||||
RETURN_INT(intern->securityPrefs);
|
||||
RETURN_LONG(intern->securityPrefs);
|
||||
} else {
|
||||
WRONG_PARAM_COUNT;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue