Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
This regex is coming directly from the vqmod.php file on line 329. Are we to
assume that vqmod is no longer compatible with PHP 5.5+, without modifying the
included vqmod.php file?
Original comment by falcon...@live.com
on 24 Jul 2013 at 7:22
The error is coming from that file because that file is the one that processes
all of the vQmods. vQmod is compatible with PHP 5.X without issue
Original comment by DJG6...@gmail.com
on 24 Jul 2013 at 9:56
I appreciate your prompt reply but respectfully disagree with your statement.
Perhaps I may be missing something, but in order for me to get vqmod v2.3.2
working correctly with PHP 5.5 (e Pattern Modifier depreciation) I had to
modify line 329 of vqmod.php as follows:
From This:
$modFilePath = preg_replace('/([^*]+)/e', 'preg_quote("$1", "~")',
$modFilePath);
To This:
$modFilePath = preg_replace_callback('/([^*]+)/', function ($m) { return
preg_quote($m[1], "~"); }, $modFilePath);
Just trying to help the users who are running into this situation. Thanks again!
Original comment by falcon...@live.com
on 24 Jul 2013 at 1:34
I stand corrected. Been a while since I've looked at the code and was going
from memory. I'll get that put into the next version's fix
Original comment by DJG6...@gmail.com
on 24 Jul 2013 at 1:52
[deleted comment]
Original comment by DJG6...@gmail.com
on 24 Jul 2013 at 1:53
Fixed in upcoming version 2.4.0 - used a coded method instead of the anonymous
function to allow backward php compatibility before 5.3.0
Original comment by DJG6...@gmail.com
on 26 Jul 2013 at 6:40
Thanks for the fix.
Original comment by peterhut...@gmail.com
on 5 Aug 2013 at 6:23
Original issue reported on code.google.com by
peterhut...@gmail.com
on 23 Apr 2013 at 6:09