php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70091 PHAR can't make a zip when one file contain the é letter
Submitted: 2015-07-17 06:57 UTC Modified: -
Votes:4
Avg. Score:3.8 ± 0.8
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: david dot vantyghem at free dot fr Assigned:
Status: Open Package: PHAR related
PHP Version: 5.5Git-2015-07-17 (Git) OS: Linux Mint MATE 17.2
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2015-07-17 06:57 UTC] david dot vantyghem at free dot fr
Description:
------------
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/SourceForge Code/COMPILIBRE-source/COMPILIBRE/compilation.php:271 Stack trace: #0 /home/david/Documents/logiciels/COMPILIBRE/SourceForge Code/COMPILIBRE-source/COMPILIBRE/compilation.php(271): PharData->buildFromDirectory('compilations/1') #1 {main} thrown in /home/david/Documents/logiciels/COMPILIBRE/SourceForge Code/COMPILIBRE-source/COMPILIBRE/compilation.php on line 271

Test script:
---------------
	// Create the zip file

	$phar = new PharData("compilations/".az09_($compilation_name).".".$compilation_key.".zip");
	$phar->buildFromDirectory("compilations/".$compilation_key);

Name of the file that causes the error :
"Cliquez ici pour démarrer COMPILIBRE.bat"


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-07-22 09:26 UTC] d dot dussouillez at 2n-tech dot com
Same here (PHP 5.6.6, linux) :
exception 'BadMethodCallException' with message 'Entry modules/Medicnet - Le sp�cialiste de la vente en ligne de mat�riel m�dical.URL cannot be created: phar error: invalid path "modules/Medicnet - Le sp�cialiste de la vente en ligne de mat�riel m�dical.URL" contains illegal character'
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri May 24 15:01:26 2019 UTC