mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fixed name length in get_include_path
This commit is contained in:
parent
37343cc17d
commit
d5fa6b2467
1 changed files with 3 additions and 3 deletions
|
@ -5502,7 +5502,7 @@ PHP_FUNCTION(set_include_path)
|
|||
return;
|
||||
}
|
||||
|
||||
old_value = zend_ini_string("include_path", sizeof("include_path")-1, 0);
|
||||
old_value = zend_ini_string("include_path", sizeof("include_path") - 1, 0);
|
||||
/* copy to return here, because alter might free it! */
|
||||
if (old_value) {
|
||||
RETVAL_STRING(old_value);
|
||||
|
@ -5510,7 +5510,7 @@ PHP_FUNCTION(set_include_path)
|
|||
RETVAL_FALSE;
|
||||
}
|
||||
|
||||
key = STR_INIT("include_path", sizeof("include_path")-1, 0);
|
||||
key = STR_INIT("include_path", sizeof("include_path") - 1, 0);
|
||||
if (zend_alter_ini_entry_ex(key, new_value, new_value_len, PHP_INI_USER, PHP_INI_STAGE_RUNTIME, 0 TSRMLS_CC) == FAILURE) {
|
||||
STR_RELEASE(key);
|
||||
zval_dtor(return_value);
|
||||
|
@ -5530,7 +5530,7 @@ PHP_FUNCTION(get_include_path)
|
|||
return;
|
||||
}
|
||||
|
||||
str = zend_ini_string("include_path", sizeof("include_path"), 0);
|
||||
str = zend_ini_string("include_path", sizeof("include_path") - 1, 0);
|
||||
|
||||
if (str == NULL) {
|
||||
RETURN_FALSE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue