felipe Tue Jul 29 16:21:38 2008 UTC Modified files: /php-src/ext/gettext gettext.c Log: - Fix crash when NULL is passed to bindtextdomain() (sync with 5_3) http://cvs.php.net/viewvc.cgi/php-src/ext/gettext/gettext.c?r1=1.56&r2=1.57&diff_format=u Index: php-src/ext/gettext/gettext.c diff -u php-src/ext/gettext/gettext.c:1.56 php-src/ext/gettext/gettext.c:1.57 --- php-src/ext/gettext/gettext.c:1.56 Mon Dec 31 07:12:10 2007 +++ php-src/ext/gettext/gettext.c Tue Jul 29 16:21:38 2008 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: gettext.c,v 1.56 2007/12/31 07:12:10 sebastian Exp $ */ +/* $Id: gettext.c,v 1.57 2008/07/29 16:21:38 felipe Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -234,6 +234,7 @@ if (!domain_len) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "the first parameter must not be empty"); + RETURN_FALSE; } if (!dir_len || (dir_len == 1 && *dir_str == '0')) { if (!VCWD_GETCWD(dir_tmp, sizeof(dir_tmp))) {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php