summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorjdolecek <jdolecek>2004-02-13 20:37:27 +0000
committerjdolecek <jdolecek>2004-02-13 20:37:27 +0000
commite1338b95231c1a49541c38f7456985ea5f015d8e (patch)
tree019cf4ee72b0042c6d99b44f398824701cb6f73f /www
parent0c47a4de2c2da16c90037d32ecb35ac83d6d7c4e (diff)
downloadpkgsrc-e1338b95231c1a49541c38f7456985ea5f015d8e.tar.gz
g/c, gettext extension module is not built into base php
Diffstat (limited to 'www')
-rw-r--r--www/php4/patches/patch-aj48
1 files changed, 0 insertions, 48 deletions
diff --git a/www/php4/patches/patch-aj b/www/php4/patches/patch-aj
deleted file mode 100644
index 76067e698f1..00000000000
--- a/www/php4/patches/patch-aj
+++ /dev/null
@@ -1,48 +0,0 @@
-$NetBSD: patch-aj,v 1.6 2003/11/08 06:58:10 jdolecek Exp $
-
---- ext/gettext/gettext.c.orig 2003-09-24 04:08:48.000000000 +0200
-+++ ext/gettext/gettext.c 2003-11-07 21:47:25.000000000 +0100
-@@ -31,6 +31,11 @@
- #include "ext/standard/info.h"
- #include "php_gettext.h"
-
-+#define CHECK(a) if (a == NULL) { \
-+ fprintf(stderr, "%s, %d: NULL value\n", __FILE__, __LINE__); \
-+ a = ""; \
-+}
-+
- /* {{{ php_gettext_functions[]
- */
- function_entry php_gettext_functions[] = {
-@@ -103,6 +108,7 @@
-
- retval = textdomain(domain_name);
-
-+ CHECK(retval);
- RETURN_STRING(retval, 1);
- }
- /* }}} */
-@@ -140,6 +146,7 @@
-
- msgstr = dgettext(Z_STRVAL_PP(domain_name), Z_STRVAL_PP(msgid));
-
-+ CHECK(msgstr);
- RETURN_STRING(msgstr, 1);
- }
- /* }}} */
-@@ -160,6 +167,7 @@
-
- msgstr = dcgettext(Z_STRVAL_PP(domain_name), Z_STRVAL_PP(msgid), Z_LVAL_PP(category));
-
-+ CHECK(msgstr);
- RETURN_STRING(msgstr, 1);
- }
- /* }}} */
-@@ -190,6 +198,7 @@
-
- retval = bindtextdomain(Z_STRVAL_PP(domain_name), dir_name);
-
-+ CHECK(retval);
- RETURN_STRING(retval, 1);
- }
- /* }}} */