<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/wampserverpatch/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/wampserverpatch/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 21 Jul 2010 13:28:32 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/wampserverpatch/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>bug switchPhpMyAdminVersion</title><link>https://sourceforge.net/p/wampserverpatch/bugs/3/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;ce bug empêche de switcher la version de phpMyAdmin&lt;/p&gt;
&lt;p&gt;dans le fichier switchPhpMyAdminVersion.php il y a cette regex :&lt;br /&gt;
preg_match('`^Alias /phpmyadmin "([^"]+)"`Um',$content,$regs)&lt;/p&gt;
&lt;p&gt;or, mon fichier alias\phpmyadmin.conf était encodé en UTF8 avec BOM&lt;br /&gt;
et comme la ligne "Alias /phpmyadmin ..." est en ligne 1, le BOM est capturé dans la regex ;)&lt;/p&gt;
&lt;p&gt;une solution rapide peut consister à modifier la regex comme suit :&lt;br /&gt;
preg_match('`^.*Alias /phpmyadmin "([^"]+)"`Um', $content, $regs)&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">vlaKoff</dc:creator><pubDate>Wed, 21 Jul 2010 13:28:32 -0000</pubDate><guid>https://sourceforge.net4d8268cb37606919c946550baf9a10f6310ac122</guid></item><item><title>CheckPhpMyAdminVersion 2.2.1</title><link>https://sourceforge.net/p/wampserverpatch/bugs/2/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;après avoir installé le composant CheckPhpMyAdminVersion, le lancement de Wamp bloque&lt;/p&gt;
&lt;p&gt;la raison est un linebreak CR inséré dans la section WAMPPHPMYADMINMENUSTART des fichiers wampmanager.ini et wampmanager.tpl&lt;/p&gt;
&lt;p&gt;en effet, dans le install_class\classes\components\CheckPhpMyAdminVersion.php, ligne 129 :&lt;br /&gt;
$port = $this-&amp;gt;file_manager-&amp;gt;getConfValue('c_apacheConfFile','Listen','80');&lt;br /&gt;
--&amp;gt; $port vaut "80[CR]" au lieu du "80" attendu&lt;/p&gt;
&lt;p&gt;on va donc dans la fonction getConfValue (fichier file_manager.php) :&lt;br /&gt;
preg_match('`^'.$key.' =?(.*)$`m',$content,$regs)&lt;/p&gt;
&lt;p&gt;problème : le mode /m (multiligne) considère comme séparateur les LF&lt;br /&gt;
or je vois que le httpd.conf est au format Windows (CRLF)&lt;/p&gt;
&lt;p&gt;et donc le CR est capturé dans la regex ;)&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">vlaKoff</dc:creator><pubDate>Wed, 21 Jul 2010 01:46:45 -0000</pubDate><guid>https://sourceforge.net0e974dd3ca8afe78a81409a081b4e72b86fed8e3</guid></item><item><title>PhpMyAdmin update fails with WAMP in C:\Program files\WAMP\</title><link>https://sourceforge.net/p/wampserverpatch/bugs/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When WAMP is installed in a directory that has spaces in its path (e.g. C:\Program Files (x86)\WAMP\), the PhpMyAdmin upgrade script fails while extracting the downloaded archive.&lt;br /&gt;
This is because on line 213 of scripts\CheckPhpMyAdminVersion.php, the $exe_7zip string variable is not properly enclosed in quotes.&lt;/p&gt;
&lt;p&gt;The line in question:&lt;br /&gt;
exec($exe_7zip.' x -y -o"'.$apps_dir.'" "'.$saved_file.'"',$output);&lt;br /&gt;
when $exe_7zip has spaces in it (e.g. C:\Program Files (x86)\WAMP\apps\install_class\7zip\7z.exe), the system call fails, because it's trying to execute "C:\Program", while taking everything after the space symbol as command line arguments.&lt;br /&gt;
It should be enclosed in double quotes like this:&lt;br /&gt;
exec('"' . $exe_7zip.'" x -y -o"'.$apps_dir.'" "'.$saved_file.'"',$output);&lt;/p&gt;
&lt;p&gt;The parameters passed to 7zip ($apps_dir and $saved_file) are enclosed properly, though.&lt;br /&gt;
Quotes on the executable fully fix the problem.&lt;/p&gt;
&lt;p&gt;Attached is the patched file.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Thu, 17 Jun 2010 07:20:13 -0000</pubDate><guid>https://sourceforge.net216ff46410c6c62bc9b7afc6454f850e106ffbff</guid></item></channel></rss>