Jump to content

[bug] PHP short open tag AND module override


Recommended Posts

Hello,
 
When a user puts a short open tag in one of overrides files
for example /override/classes/Product.php
then a module which overrides the same file will have problems installing.
 
This is caused by /classes/module/Module.php:2315
 

eval(preg_replace(array('#^\s*<\?php#', '#cl ....

It's only replacing "<?php" and not "<?"
This will cause an error

eval()'d : syntax error, unexpected '<'

or something like
[PrestaShop] Fatal error in module Module:

Uncaught exception 'ReflectionException' with message 'Class ProductOverrideOriginal_remove does not exist'

I hope this gets fixed soon

 

Thank you

Edited by unloco (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...