]> granicus.if.org Git - php/commitdiff
Fixed name length in get_include_path
authorXinchen Hui <laruence@gmail.com>
Wed, 5 Mar 2014 04:16:57 +0000 (12:16 +0800)
committerXinchen Hui <laruence@gmail.com>
Wed, 5 Mar 2014 04:16:57 +0000 (12:16 +0800)
ext/standard/basic_functions.c

index 53d49767bd87cbb07d093ec87e0a09d0c1be7ecf..e610319b733121a2cb19894b9eb50681aca7cc47 100644 (file)
@@ -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;