summaryrefslogtreecommitdiff
path: root/www/contao211
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2012-03-10 03:42:30 +0000
committertaca <taca@pkgsrc.org>2012-03-10 03:42:30 +0000
commitd4f5deea2fccc5a1e5e64cdf340206ca821a7c8b (patch)
treed552426f065eaa9abe327b2201c680928e8e75e8 /www/contao211
parent388f4b6d05dd0b7ccf1165ceb0e81f48de5bc94a (diff)
downloadpkgsrc-d4f5deea2fccc5a1e5e64cdf340206ca821a7c8b.tar.gz
Add a patch to fix problem on PHP 5.2
Since this package itself broken, no PKGREVISION bump now.
Diffstat (limited to 'www/contao211')
-rw-r--r--www/contao211/patches/patch-plugins_idna_idna__convert.class.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/www/contao211/patches/patch-plugins_idna_idna__convert.class.php b/www/contao211/patches/patch-plugins_idna_idna__convert.class.php
new file mode 100644
index 00000000000..f0424d6c150
--- /dev/null
+++ b/www/contao211/patches/patch-plugins_idna_idna__convert.class.php
@@ -0,0 +1,15 @@
+$NetBSD: patch-plugins_idna_idna__convert.class.php,v 1.1 2012/03/10 03:42:30 taca Exp $
+
+* Fix problem on PHP 5.2.
+
+--- plugins/idna/idna_convert.class.php.orig 2012-03-09 11:31:02.000000000 +0000
++++ plugins/idna/idna_convert.class.php
+@@ -973,7 +973,7 @@ class idna_convert
+ }
+ // PATCH: support PHP 5.2 (see #4044)
+ //return strlen((binary) $string);
+- return version_compare(PHP_VERSION, '5.3.0', '>=') ? strlen((binary) $string) : strlen(unpack('c*', $string));
++ return version_compare(PHP_VERSION, '5.3.0', '>=') ? strlen((binary) $string) : count(unpack('c*', $string));
+ }
+
+ /**