How to fix the «[E_PARSE] syntax error, unexpected '0' (T_LNUMBER) in Wyomind/DataFeedManager/Helper/Attributes.php(223) : eval()'d code» failure

bug
third-party-extension

(Dmitry Fedyuk) #1

The failure is caused by a bug in the Wyomind Data Feed Manager Magento 2 extension.

The problem code is:

public function execPhp($script, $product = null)
{
	foreach ($this->_as as $key => $value) {
		$$key = $value;
	}
	return eval($script);
}

To fix the bug you should contact the Wyomind support.


(Dmitry Fedyuk) #2

By the way, the execPhp merthod looks like a backdoor.
I recommend to ask the developer, why should he need such strange method with eval().