com php-src: Fixed name length in get_include_path: ext /standard/basic_functions.c

From: Date: Wed, 05 Mar 2014 04:16:57 +0000
Subject: com php-src: Fixed name length in get_include_path: ext /standard/basic_functions.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77739@lists.php.net to get a copy of this message
Commit: d5fa6b24670d321edfc7abc3895b1ee83d5b623b Author: Xinchen Hui <laruence@gmail.com> Wed, 5 Mar 2014 12:16:57 +0800 Parents: 37343cc17da726a1539ce81c9f4286ecde65e224 Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d5fa6b24670d321edfc7abc3895b1ee83d5b623b Log: Fixed name length in get_include_path Changed paths: M ext/standard/basic_functions.c Diff: diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 53d4976..e610319 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -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;

« previous php.cvs (#77739) next »