mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-27 19:05:43 +00:00
Merge branch 'string_size_refactor_take_2' of https://github.com/weltling/php-src into string_size_refactor_take_2
This commit is contained in:
commit
5351aa9ac1
2 files changed
+4
-4
No files matched your search
@@ -145,7 +145,7 @@ void clean_non_persistent_constants(TSRMLS_D)
|
||||
}
|
||||
}
|
||||
|
||||
ZEND_API void zend_register_null_constant(const char *name, uint name_len, int flags, int module_number TSRMLS_DC)
|
||||
ZEND_API void zend_register_null_constant(const char *name, zend_str_size_uint name_len, int flags, int module_number TSRMLS_DC)
|
||||
{
|
||||
zend_constant c;
|
||||
|
||||
@@ -157,7 +157,7 @@ ZEND_API void zend_register_null_constant(const char *name, uint name_len, int f
|
||||
zend_register_constant(&c TSRMLS_CC);
|
||||
}
|
||||
|
||||
ZEND_API void zend_register_bool_constant(const char *name, uint name_len, zend_bool bval, int flags, int module_number TSRMLS_DC)
|
||||
ZEND_API void zend_register_bool_constant(const char *name, zend_str_size_uint name_len, zend_bool bval, int flags, int module_number TSRMLS_DC)
|
||||
{
|
||||
zend_constant c;
|
||||
|
||||
|
||||
+2
-2
@@ -992,7 +992,7 @@ static int fcgi_read_request(fcgi_request *req)
|
||||
if (zend_hash_find(&fcgi_mgmt_vars, q->var, q->var_len, (void**) &value) != SUCCESS) {
|
||||
continue;
|
||||
}
|
||||
zlen = Z_STRLEN_PP(value);
|
||||
zlen = Z_STRSIZE_PP(value);
|
||||
if ((p + 4 + 4 + q->var_len + zlen) >= (buf + sizeof(buf))) {
|
||||
break;
|
||||
}
|
||||
@@ -1514,7 +1514,7 @@ void fcgi_set_mgmt_var(const char * name, size_t name_len, const char * value, s
|
||||
zvalue = pemalloc(sizeof(*zvalue), 1);
|
||||
Z_TYPE_P(zvalue) = IS_STRING;
|
||||
Z_STRVAL_P(zvalue) = pestrndup(value, value_len, 1);
|
||||
Z_STRLEN_P(zvalue) = value_len;
|
||||
Z_STRSIZE_P(zvalue) = value_len;
|
||||
zend_hash_add(&fcgi_mgmt_vars, name, name_len, &zvalue, sizeof(zvalue), NULL);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user