<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 1678: Eliminate remaining occurences of eval() in phpMyAdmin to make it work on machines where eval() is disabled</title><link href="https://sourceforge.net/p/phpmyadmin/feature-requests/1678/" rel="alternate"/><link href="https://sourceforge.net/p/phpmyadmin/feature-requests/1678/feed.atom" rel="self"/><id>https://sourceforge.net/p/phpmyadmin/feature-requests/1678/</id><updated>2015-07-02T10:08:16.240000Z</updated><subtitle>Recent changes to 1678: Eliminate remaining occurences of eval() in phpMyAdmin to make it work on machines where eval() is disabled</subtitle><entry><title>#1678 Eliminate remaining occurences of eval() in phpMyAdmin to make it work on machines where eval() is disabled</title><link href="https://sourceforge.net/p/phpmyadmin/feature-requests/1678/?limit=25#a631" rel="alternate"/><published>2015-07-02T10:08:16.240000Z</published><updated>2015-07-02T10:08:16.240000Z</updated><author><name>Madhura Jayaratne</name><uri>https://sourceforge.net/u/madhuracj/</uri></author><id>https://sourceforge.netff7bc77cc787bbf1a17e302b9c991291757ab55b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;For the advisor, the alternative would be to move the logic of the rules to PHP. However, I do not see a security threat in using eval here as no user input it involved.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#1678 Eliminate remaining occurences of eval() in phpMyAdmin to make it work on machines where eval() is disabled</title><link href="https://sourceforge.net/p/phpmyadmin/feature-requests/1678/?limit=25#6df0" rel="alternate"/><published>2015-06-03T16:02:55.133000Z</published><updated>2015-06-03T16:02:55.133000Z</updated><author><name>Marc Delisle</name><uri>https://sourceforge.net/u/lem9/</uri></author><id>https://sourceforge.net4774a8fc029b058389b27dfe6b95ef93ab4cc31a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket moved from /p/phpmyadmin/bugs/4935/&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#4935 Eliminate remaining occurences of eval() in phpMyAdmin to make it work on machines where eval() is disabled</title><link href="https://sourceforge.net/p/phpmyadmin/bugs/4935/?limit=25#993e/cb87/b687/2dd5" rel="alternate"/><published>2015-06-02T12:43:02.686000Z</published><updated>2015-06-02T12:43:02.686000Z</updated><author><name>Marc Delisle</name><uri>https://sourceforge.net/u/lem9/</uri></author><id>https://sourceforge.netafdb154e97a3b21601d837159ed96dd1ee53377f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Yes, I was wondering whether the two reasons given are still valid. Especially the one about PHP crashing might no longer be true.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#4935 Eliminate remaining occurences of eval() in phpMyAdmin to make it work on machines where eval() is disabled</title><link href="https://sourceforge.net/p/phpmyadmin/bugs/4935/?limit=25#993e/cb87/b687" rel="alternate"/><published>2015-06-02T12:25:56.081000Z</published><updated>2015-06-02T12:25:56.081000Z</updated><author><name>Madhura Jayaratne</name><uri>https://sourceforge.net/u/madhuracj/</uri></author><id>https://sourceforge.net21f1b6aa6d6c859ceab575e0498b52316b466c68</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Indeed, I'll have a look for possible alternatives. &lt;br /&gt;
For the record, this is why we do not use native Gettext in PHP. &lt;a href="https://wiki.phpmyadmin.net/pma/Gettext_for_developers#Why_not_to_use_native_Gettext_in_PHP" rel="nofollow"&gt;https://wiki.phpmyadmin.net/pma/Gettext_for_developers#Why_not_to_use_native_Gettext_in_PHP&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#4935 Eliminate remaining occurences of eval() in phpMyAdmin to make it work on machines where eval() is disabled</title><link href="https://sourceforge.net/p/phpmyadmin/bugs/4935/?limit=25#19b7" rel="alternate"/><published>2015-06-02T12:20:40.027000Z</published><updated>2015-06-02T12:20:40.027000Z</updated><author><name>Madhura Jayaratne</name><uri>https://sourceforge.net/u/madhuracj/</uri></author><id>https://sourceforge.net2c868a646048d91951a5c60b7958a8982e6b412a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;assigned_to&lt;/strong&gt;: Madhura Jayaratne --&amp;gt;  nobody &lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>#4935 Eliminate remaining occurences of eval() in phpMyAdmin to make it work on machines where eval() is disabled</title><link href="https://sourceforge.net/p/phpmyadmin/bugs/4935/?limit=25#993e/cb87" rel="alternate"/><published>2015-06-02T12:18:42.119000Z</published><updated>2015-06-02T12:18:42.119000Z</updated><author><name>Marc Delisle</name><uri>https://sourceforge.net/u/lem9/</uri></author><id>https://sourceforge.net242f32b3396970d3a7d2c025d2902ac93a205ca5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;But php-gettext's last update was on 2010-12-24, maybe we should do something about it.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#4935 Eliminate remaining occurences of eval() in phpMyAdmin to make it work on machines where eval() is disabled</title><link href="https://sourceforge.net/p/phpmyadmin/bugs/4935/?limit=25#993e" rel="alternate"/><published>2015-06-02T12:13:02.347000Z</published><updated>2015-06-02T12:13:02.347000Z</updated><author><name>Madhura Jayaratne</name><uri>https://sourceforge.net/u/madhuracj/</uri></author><id>https://sourceforge.net4ef16a1d59b0b03a76e70754d1b4f7e66f9cfeaf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;php-gettext is a third party library used by phpMyAdmin. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#4935 Eliminate remaining occurences of eval() in phpMyAdmin to make it work on machines where eval() is disabled</title><link href="https://sourceforge.net/p/phpmyadmin/bugs/4935/?limit=25#8f67" rel="alternate"/><published>2015-06-02T10:16:42.209000Z</published><updated>2015-06-02T10:16:42.209000Z</updated><author><name>Madhura Jayaratne</name><uri>https://sourceforge.net/u/madhuracj/</uri></author><id>https://sourceforge.net59217705341c57a6cf89a6b56406d741f42be878</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;assigned_to&lt;/strong&gt;: Madhura Jayaratne&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>Eliminate remaining occurences of eval() in phpMyAdmin to make it work on machines where eval() is disabled</title><link href="https://sourceforge.net/p/phpmyadmin/bugs/4935/" rel="alternate"/><published>2015-06-01T13:54:16.593000Z</published><updated>2015-06-01T13:54:16.593000Z</updated><author><name>Thoronador</name><uri>https://sourceforge.net/u/thoronador/</uri></author><id>https://sourceforge.net53c427406f778f2d68b93153d338c70e5b908368</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;A few of the PHP scripts in phpMyAdmin use the eval() language construct of PHP. However, some hosts disable that feature for security reasons, e.g. &lt;a class="" href="http://suhosin.org/stories/configuration.html#suhosin-executor-disable-eval" title="suhosin.executor.disable_eval" rel="nofollow"&gt;with the help of Suhosin&lt;/a&gt;. Hence, phpMyAdmin will not work on hosts with such configurations.&lt;/p&gt;
&lt;p&gt;Could you please rewrite the affected scripts (there are only a few as of release 4.4.8) so that they do not use eval() at all? That would allow folks to use phpMyAdmin on machines that disabled eval().&lt;/p&gt;
&lt;p&gt;Relevant scripts might be the following:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;~/&lt;/span&gt;&lt;span class="nt"&gt;git_repos&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nt"&gt;phpmyadmin&lt;/span&gt;&lt;span class="o"&gt;$&lt;/span&gt; &lt;span class="nt"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-rn&lt;/span&gt; &lt;span class="nt"&gt;--fixed-strings&lt;/span&gt; &lt;span class="s2"&gt;"eval("&lt;/span&gt; &lt;span class="nt"&gt;--include&lt;/span&gt; &lt;span class="err"&gt;\&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="nc"&gt;.php&lt;/span&gt; &lt;span class="o"&gt;./&lt;/span&gt;
&lt;span class="o"&gt;./&lt;/span&gt;&lt;span class="nt"&gt;libraries&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nt"&gt;Advisor&lt;/span&gt;&lt;span class="nc"&gt;.class.php&lt;/span&gt;&lt;span class="nd"&gt;:346&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;            &lt;span class="nt"&gt;eval&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'$value = '&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt; &lt;span class="o"&gt;$&lt;/span&gt;&lt;span class="nt"&gt;expr&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt; &lt;span class="s1"&gt;';'&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;span class="o"&gt;./&lt;/span&gt;&lt;span class="nt"&gt;libraries&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nt"&gt;php-gettext&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nt"&gt;gettext&lt;/span&gt;&lt;span class="nc"&gt;.php&lt;/span&gt;&lt;span class="nd"&gt;:361&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;    &lt;span class="nt"&gt;eval&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"$string"&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;(There might be more occurences of eval() in earlier releases.)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Eliminate remaining occurences of eval() in phpMyAdmin to make it work on machines where eval() is disabled</title><link href="https://sourceforge.net/p/phpmyadmin/bugs/4935/" rel="alternate"/><published>2015-06-01T13:54:16.593000Z</published><updated>2015-06-01T13:54:16.593000Z</updated><author><name>Thoronador</name><uri>https://sourceforge.net/u/thoronador/</uri></author><id>https://sourceforge.net1da165fcb43c3d14077015b02222f5193cebe0a1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 4935 has been modified: Eliminate remaining occurences of eval() in phpMyAdmin to make it work on machines where eval() is disabled&lt;br /&gt;
Edited By: Madhura Jayaratne (madhuracj)&lt;br /&gt;
Owner updated: None =&amp;gt; u'madhuracj'&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>