Patch fix_broken_bindtextdomain for Gettext related Bug #53251
Patch version 2010-11-26 17:09 UTC
Return to Bug #53251 |
Download this patch
Patch Revisions:
Developer: greno@verizon.net
--- php-src/branches/PHP_5_3/ext/gettext/gettext.c 2010-11-26 12:00:29.000000000 -0500
+++ working/branches/PHP_5_3/ext/gettext/gettext.c 2010-11-26 12:03:48.000000000 -0500
@@ -260,14 +260,6 @@
RETURN_FALSE;
}
- if (dir[0] != '\0' && strcmp(dir, "0")) {
- if (!VCWD_REALPATH(dir, dir_name)) {
- RETURN_FALSE;
- }
- } else if (!VCWD_GETCWD(dir_name, MAXPATHLEN)) {
- RETURN_FALSE;
- }
-
retval = bindtextdomain(domain, dir_name);
RETURN_STRING(retval, 1);
|