Bug #52258 [NEW]: Fails to compile phar with LC_CTYPE=tr_TR.UTF-8
| From: | mabi at gentoo dot org | Date: | Mon, 05 Jul 2010 23:39:46 +0000 |
| Subject: | Bug #52258 [NEW]: Fails to compile phar with LC_CTYPE=tr_TR.UTF-8 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-152119@lists.php.net to get a copy of this message | ||
From:
Operating system: Gentoo Linux
PHP version: 5.3.2
Package: Compile Failure
Bug Type: Bug
Bug description:Fails to compile phar with LC_CTYPE=tr_TR.UTF-8
Description:
------------
This is from http://bugs.gentoo.org/show_bug.cgi?id=327049:
php-5.3.2 fails to compile the phar extension when using tr_TR.UTF-8 as a
locale. When using LANG=C everything's fine.
Do we need to enforce a particular LANG or is this considered a bug in
php/phar?
Expected result:
----------------
Compiles && installs
Actual result:
--------------
Generating phar.php
Generating phar.phar
Parse error: syntax error, unexpected '/', expecting ')' in
/var/tmp/portage/dev-lang/php-5.3.2/work/php-5.3.2/ext/phar/phar.php on
line 20
make: *** [ext/phar/phar.phar] Error 255
phar.php:
17 if (!class_exists('DirectoryTreeIterator', 0))
18 {
19
20 Warning:
file(/var/tmp/portage/dev-lang/php-5.3.2/work/php-5.3.2/ext/phar/phar/directorytreeIterator.inc):
failed to open stream: No such file or directory in
/var/tmp/portage/dev-lang/php-5.3.2/work/php-5.3.2/ext/phar/build_precommand.php
on line 31
21
22 Warning: join(): Invalid arguments passed in
/var/tmp/portage/dev-lang/php-5.3.2/work/php-5.3.2/ext/phar/build_precommand.php
on line 49
23
24 }
build_precommand.php:
21 $classes = array(
22 'DirectoryTreeIterator',
23 'DirectoryGraphIterator',
24 'InvertedRegexIterator',
25 'CLICommand',
26 'PharCommand',
27 );
28
29 foreach($classes as $name) {
30 echo "if (!class_exists('$name', 0))\n{\n";
31 $f = file(dirname(__FILE__) . '/phar/' . strtolower($name)
.
'.inc');
This assumes that strtolower('DirectoryTreeIterator') is
'directorytreeiterator', which is not true in a Turkish locale
(LC_CTYPE=tr_TR.UTF-8).
--
Edit bug report at http://bugs.php.net/bug.php?id=52258&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52258&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52258&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52258&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=52258&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52258&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=52258&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=52258&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=52258&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=52258&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=52258&r=support
Expected behavior: http://bugs.php.net/fix.php?id=52258&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=52258&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=52258&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=52258&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52258&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=52258&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=52258&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=52258&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=52258&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=52258&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=52258&r=mysqlcfg