We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7896276 commit 1c129c7Copy full SHA for 1c129c7
ext/standard/basic_functions.c
@@ -2088,17 +2088,15 @@ PHP_FUNCTION(set_include_path)
2088
/* {{{ Get the current include_path configuration option */
2089
PHP_FUNCTION(get_include_path)
2090
{
2091
- char *str;
2092
-
2093
ZEND_PARSE_PARAMETERS_NONE();
2094
2095
- str = zend_ini_string("include_path", sizeof("include_path") - 1, 0);
+ zend_string *str = zend_ini_str("include_path", sizeof("include_path") - 1, 0);
2096
2097
if (str == NULL) {
2098
RETURN_FALSE;
2099
}
2100
2101
- RETURN_STRING(str);
+ RETURN_STR_COPY(str);
2102
2103
/* }}} */
2104
0 commit comments