Strict Standards: Only variables should be assigned by reference PHP 5.4

Strict Standards: Only variables should be assigned by reference PHP 5.4

You should remove the & (ampersand) symbol, so that line 4 will look like this:

$conn = ADONewConnection($config[db_type]);

This is because ADONewConnection already returns an object by reference. As per documentation, assigning the result of a reference to object by reference results in an E_DEPRECATED message as of PHP 5.3.0

Its because youre trying to assign an object by reference. Remove the ampersand and your script should work as intended.

Strict Standards: Only variables should be assigned by reference PHP 5.4

Leave a Reply

Your email address will not be published.