Unnecessary eval statements
-
Hi there, I noticed that there are two files in your plugin that seem to contain an unnecessary eval statement.
The files in question are
/importExtensions/ImportHelpers.php
and/importExtensions/CoreFieldsImport.php
And the matching code for both of them is:
@eval("return " . $matched_element . ";" );
I’m a bit confused about the way that line is written; it seems like it could just be replaced with a normal string concatenator and/or return statement without carrying any of the risks or performance hits of a dynamic eval statement.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Unnecessary eval statements’ is closed to new replies.