From: Dmitry Stogov Date: Tue, 22 Jul 2014 13:14:43 +0000 (+0400) Subject: Fixed compatibility X-Git-Tag: POST_PHPNG_MERGE~47^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5fe7f799e043809f2fcd08ce164ff375b52d4283;p=php Fixed compatibility --- diff --git a/ext/enchant/enchant.c b/ext/enchant/enchant.c index 0a4b6bf9f4..e1449560f5 100644 --- a/ext/enchant/enchant.c +++ b/ext/enchant/enchant.c @@ -486,7 +486,7 @@ PHP_FUNCTION(enchant_broker_get_dict_path) RETURN_FALSE; } - RETURN_STRING(value, 1); + RETURN_STRING(value); } /* }}} */ #else diff --git a/ext/posix/posix.c b/ext/posix/posix.c index bf7c28c50d..301507f655 100644 --- a/ext/posix/posix.c +++ b/ext/posix/posix.c @@ -753,7 +753,8 @@ PHP_FUNCTION(posix_ttyname) efree(p); RETURN_FALSE; } - RETURN_STRING(p, 0); + RETURN_STRING(p); + efree(p); #else if (NULL == (p = ttyname(fd))) { POSIX_G(last_error) = errno;