]> granicus.if.org Git - php/commitdiff
RETURN_STRING takes the char* only now (always copied)
authorPierre Joye <pierre.php@gmail.com>
Thu, 15 May 2014 07:56:20 +0000 (09:56 +0200)
committerPierre Joye <pierre.php@gmail.com>
Thu, 15 May 2014 07:56:20 +0000 (09:56 +0200)
ext/standard/basic_functions.c

index ef516efad499936aa0d7423c1e26f32c6203f335..d3b1111395b9e53972c9e3d0b081ddfdb6687d62 100644 (file)
@@ -4019,7 +4019,7 @@ PHP_FUNCTION(getenv)
                                efree(ptr);
                                RETURN_EMPTY_STRING();
                } else {
-                       RETURN_STRING(ptr, 0);
+                       RETURN_STRING(ptr);
                }
        }
 #else