|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48098 ./configure --with-something fails when LANG=et_EE.UTF-8
Submitted: 2009-04-28 13:04 UTC Modified: 2012-02-21 07:30 UTC
Avg. Score:2.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: paabulaabu at gmail dot com Assigned: rasmus (profile)
Status: Closed Package: Compile Failure
PHP Version: 5.2.9 OS: Ubuntu 9.04
Private report: No CVE-ID: None
 [2009-04-28 13:04 UTC] paabulaabu at gmail dot com
Solution: use [:alpha:] instead a-zA-z in various regular expressions.

:/usr/src/php-5.2.9$ export LANG=et_EE.UTF-8
:/usr/src/php-5.2.9$ ./configure --with-curl
configure: error: curl: invalid package name

buggy code part in "configure" script:

    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }

bug happens because "Z" isnt the final letter in estonian alphabet.

proof of concept in shell:
:~$ export LANG=en_GB.UTF-8
:~$ echo abcdefghijklmnopqrstuv????ABCDEFGHIJLKMNOPQRSTUV????123456789 |sed 's/[-_[:alpha:]0-9]//g'

:~$ echo abcdefghijklmnopqrstuv????ABCDEFGHIJLKMNOPQRSTUV????123456789 |sed 's/[-_a-zA-Z0-9]//g'

:~$ export LANG=et_EE.UTF-8
:~$ echo abcdefghijklmnopqrstuv????ABCDEFGHIJLKMNOPQRSTUV????123456789 |sed 's/[-_a-zA-Z0-9]//g'
:~$ echo abcdefghijklmnopqrstuv????ABCDEFGHIJLKMNOPQRSTUV????123456789 |sed 's/[-_[:alpha:]0-9]//g'



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-04-28 17:40 UTC]
Impossible to fix by PHP (completely) since most of this stuff is 
produced by autoconf which is 3rd party tool. Report it to the autoconf 
 [2009-04-29 08:49 UTC] paabulaabu at gmail dot com
Autoconf folks suggest that bug has been fixed.

"configure generated by autoconf version 2.13"

latest autoconf is 2.63
Not sure if it is stable one, tho.
 [2009-05-01 13:41 UTC] paabulaabu at gmail dot com
In their own words:

Please take your time to find 10 candles, the software you're
using has its birthday today.  Then, after feasting on whatever cake you
can get hold on, maybe a couple of jolly good fellow songs, please throw
it away, right there, and grab Autoconf 2.63, which is but a toddler
with its almost 8 months.

Welcome to the new millennium!  Its first decade ain't over yet.  ;-)

Cheers, and also, we don't work on bugs in that version any more,
 [2012-02-21 07:30 UTC]
PHP 5.4 and later are now using the latest autoconf releases.
 [2012-02-21 07:30 UTC]
-Status: Suspended +Status: Closed -Assigned To: +Assigned To: rasmus
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 08:01:30 2024 UTC