Bug #64498 [Opn->Csd]: $phar->buildFromDirectory can't compress file with an accent in its name

From: Date: Mon, 21 Apr 2014 00:26:13 +0000
Subject: Bug #64498 [Opn->Csd]: $phar->buildFromDirectory can't compress file with an accent in its name
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185352@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64498&edit=1 ID: 64498 Updated by: stas@php.net Reported by: david dot vantyghem at free dot fr Summary: $phar->buildFromDirectory can't compress file with an accent in its name -Status: Open +Status: Closed Type: Bug Package: PHAR related Operating System: 3.5.0-17-generic #28-Ubuntu SMP PHP Version: 5.4Git-2013-03-23 (Git) -Assigned To: +Assigned To: stas Block user comment: N Private report: N New Comment: The fix for this bug has been committed. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. merged as ea4cee93c82496e3d1c4db1d69930f9fca85eb8b Previous Comments: ------------------------------------------------------------------------ [2013-03-23 23:18:00] david dot vantyghem at free dot fr 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 this bug report at https://bugs.php.net/bug.php?id=64498&edit=1

« previous php.bugs (#185352) next »