|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesiconv_v2.patch (last revision 2010-12-01 22:03 UTC by fransmeulenbroeks at gmail dot com)iconv.patch (last revision 2010-12-01 21:58 UTC by fransmeulenbroeks at gmail dot com) Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-01-10 18:16 UTC] poopsm at gmail dot com
[2013-08-01 23:20 UTC] yohgaki@php.net
-Status: Open
+Status: Feedback
[2013-08-01 23:20 UTC] yohgaki@php.net
[2013-10-15 11:54 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 09:00:02 2025 UTC |
Description: ------------ configure --with-iconv=/path/to/iconv picks up the host iconv ext/iconv/config.m4 does not take the case that a dir is given into account. I fixed this by adding $PHP_ICONV to the for loop. This patch makes the code identical to a similar snippet of code in acinclude.m4 The problem has been detected in 5.2.13 but I verified the 5.2 snap from today and the problem is still there. Attached patch fixes the problem Index: php-5.2.13/ext/iconv/config.m4 =================================================================== --- php-5.2.13.orig/ext/iconv/config.m4 +++ php-5.2.13/ext/iconv/config.m4 @@ -15,7 +15,7 @@ if test "$PHP_ICONV" != "no"; then if test "$iconv_avail" != "no"; then if test -z "$ICONV_DIR"; then - for i in /usr/local /usr; do + for i in $PHP_ICONV /usr/local /usr; do if test -f "$i/include/iconv.h" || test -f "$i/include/giconv.h"; then PHP_ICONV_PREFIX="$i" break ~