twhite3000 / vqmod

Automatically exported from code.google.com/p/vqmod
0 stars 0 forks source link

vqmod adds extra ' to original .php files, which ends up with problem #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. I use OpenCart 1.5.1.3 on PHP Version 5.2.17 FreeBSD system. 
I installed vqmod 2.1.6 for opencart manually. When I try to use it, vqmod 
creates a file in vqcache dir which has extra '' 
like, 

// Check Version
if (version_compare(phpversion(), ''5.2.0'', ''<'') == true) {
    exit(''PHP5.2+ Required'');

instead of

// Check Version
if (version_compare(phpversion(), '5.2.0', '<') == true) {
    exit('PHP5.2+ Required');

What's possibly wrong? What should I do to solve the problem?

Original issue reported on code.google.com by oldnickf...@gmail.com on 2 Apr 2012 at 6:37

Attachments:

GoogleCodeExporter commented 9 years ago
Very strange. Can't replicate this at all. Best guess, you've got a vqmod 
doubling the ''. If you want to email me FTP details, I can take a look and 
debug

Original comment by DJG6...@gmail.com on 2 Apr 2012 at 9:41

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The problem is with the file_get_contents function, for whatever reason. This 
is not an issue of vqmod, more an issue of your setup. Why it's doing it, I 
can't say, but you can see it happens everywhere file_get_contents is used. As 
an example, I created this
http://mega-sale.ru/test.php which as you can see actually double quotes on 
single quotes too, and doesn't run through vqmod whatsoever

Original comment by DJG6...@gmail.com on 2 Apr 2012 at 11:50

GoogleCodeExporter commented 9 years ago
Thank you! I guess, I need to change the hoster, don't I?

Original comment by oldnickf...@gmail.com on 3 Apr 2012 at 12:42

GoogleCodeExporter commented 9 years ago
Probably, or at least get them to see if they can figure out why its happening

Original comment by DJG6...@gmail.com on 3 Apr 2012 at 12:44

GoogleCodeExporter commented 9 years ago
I figgured out the problem. 
These 3 parameters were ON in php.ini
magic_quotes_gpc
magic_quotes_runtime
magic_quotes_sybase
After turning them off the problem disappered. 

Original comment by oldnickf...@gmail.com on 14 Apr 2012 at 7:48