]> granicus.if.org Git - php/commitdiff
Fix memleak in set_include_path()
authorArnaud Le Blanc <lbarnaud@php.net>
Sat, 25 Apr 2009 21:06:01 +0000 (21:06 +0000)
committerArnaud Le Blanc <lbarnaud@php.net>
Sat, 25 Apr 2009 21:06:01 +0000 (21:06 +0000)
(ext/standard/tests/file/file_put_contents_variation5.phpt)

ext/standard/basic_functions.c

index 0f47a2bbb6e45a3cb505add9b2e6f7098c5fcac1..669f532ae670f4af03a9592e0420e59d47a2020e 100644 (file)
@@ -5499,7 +5499,7 @@ PHP_FUNCTION(set_include_path)
 
        if (zend_alter_ini_entry_ex("include_path", sizeof("include_path"), new_value.s, new_value_len, PHP_INI_USER, PHP_INI_STAGE_RUNTIME, 0 TSRMLS_CC) == FAILURE) {
                zval_dtor(return_value);
-               RETURN_FALSE;
+               RETVAL_FALSE;
        }
 
        if (free_new_value) {