From:             david dot vantyghem at free dot fr
Operating system: 3.5.0-17-generic #28-Ubuntu SMP 
PHP version:      5.4Git-2013-03-23 (Git)
Package:          PHAR related
Bug Type:         Bug
Bug description:$phar->buildFromDirectory can't compress file with an accent in 
its name

Description:
------------
---
>From manual page: http://www.php.net/phardata.buildfromiterator
---

I want to compress a directory into a zip file.

If the letter "é" (or another letter with an accent) is in the filename of
one of the compressed files, the $phar->buildFromDirectory fails with a
fatal error.

Test script:
---------------
$phar = new PharData("file.zip");
$phar->buildFromDirectory("directory");

Expected result:
----------------
A file.zip file should be created.

Actual result:
--------------
No file is created, I've got this error :

Fatal error: Uncaught exception 'BadMethodCallException' with message
'Entry Cliquez ici pour démarrer COMPILIBRE.bat cannot be created: phar
error: invalid path "Cliquez ici pour démarrer COMPILIBRE.bat" contains
illegal character' in
/home/david/Documents/logiciels/COMPILIBRE/TEST-COMPILIBRE/compilation.php:265
Stack trace: #0
/home/david/Documents/logiciels/COMPILIBRE/TEST-COMPILIBRE/compilation.php(265):
PharData->buildFromDirectory('compilations/27...') #1 {main} thrown in
/home/david/Documents/logiciels/COMPILIBRE/TEST-COMPILIBRE/compilation.php
on line 265

-- 
Edit bug report at https://bugs.php.net/bug.php?id=64498&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=64498&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=64498&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=64498&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=64498&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=64498&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=64498&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=64498&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=64498&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=64498&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=64498&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=64498&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=64498&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=64498&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64498&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=64498&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=64498&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=64498&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64498&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=64498&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=64498&r=mysqlcfg

Reply via email to