From: Pierre Joye Date: Thu, 15 May 2014 07:56:20 +0000 (+0200) Subject: RETURN_STRING takes the char* only now (always copied) X-Git-Tag: POST_PHPNG_MERGE~370 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d8c67496499e5955707ddd99212cf4273bfa2ff7;p=php RETURN_STRING takes the char* only now (always copied) --- diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index ef516efad4..d3b1111395 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -4019,7 +4019,7 @@ PHP_FUNCTION(getenv) efree(ptr); RETURN_EMPTY_STRING(); } else { - RETURN_STRING(ptr, 0); + RETURN_STRING(ptr); } } #else