Details
-
Bug
-
Resolution: Fixed
-
Medium
-
3.8.3
-
None
-
Version: 3.8.3
PHP Version:
Webserver:
Database:
Description
but the first argument passed to the function is not always a variable, like in eZUser::fetch
function fetch( $id, $asObject = true ) { return eZPersistentObject::fetchObject( eZUser::definition(), null, array( 'contentobject_id' => $id ), $asObject ); }
Normally PHP would warn you about this:
Only variables should be assigned by reference in /srv/ezpublish/ez38/kernel/classes/datatypes/ezuser/ezuserloginhandler.php on line 67
But these warnings are silently discarded by the eZDebugErrorHandler function (which I think is not good practice at all):
if ( preg_match( "/variable(.*?)reference/", $errstr ) ) return;
(also see this forum topic: http://ez.no/community/forum/developer/debug_filters_out_variable_reference_errors ).