ram1729 Posted July 29, 2011 Share Posted July 29, 2011 Hi All, I am getting "Strict Standards: Only variables should be passed by reference in *** php file " ... at line indicated red in below Part of the code is where i am getting error is in bold and italic. Would any of them help me out ? PHP 5.3.6 Version, Apache/2.2.3 if (!$test_server_mode) { if ($read_global_variables) { $langvar = isset($GLOBALS[$variable]) ? $GLOBALS[$variable] : (isset($GLOBALS["lang$variable"]) ? $GLOBALS["lang$variable"] : $ot.$variable.$ct); } else { /* @eval("\$langvar=\$$variable;"); // Note (RH): $$var doesn't work with arrays, see PHP doc if (!isset($langvar)) { @eval("\$langvar=\$lang$variable;"); if (!isset($langvar)) { $langvar = $ot.$variable.$ct; } } */ $langvar = isset($$variable) ? $$variable : (isset(${"lang$variable"}) ? ${"lang$variable"} : $ot.$variable.$ct); } return $cache[$language][$dltt][$variable] = is_string($langvar) ? _get_lang_purifier(str_replace("\\'", "'", $langvar), $language) : $langvar; } // Translation mode for test/development servers. if (!is_string($variable)) { return $cache[$language][$dltt][$variable] = $ot.'get_lang(?)'.$ct; } Quote Link to comment https://forums.phpfreaks.com/topic/243215-strict-standards-only-variables-should-be-passed-by-reference-in-php-file/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.