Closed phpinfointh closed 10 years ago
$con = new MongoClient(); $con->test->collections->insert(array('value' => mt_rand())); // Error // message in log file 'Fatal error: Cannot pass parameter 1 by reference in ...'
$con = new MongoClient(); $data = array('value' => mt_rand()); $con->test->collections->insert($data); // But this is OK
Built with HHVM 3.3.0
$con = new MongoClient(); $con->test->collections->insert(array('value' => mt_rand())); // Error // message in log file 'Fatal error: Cannot pass parameter 1 by reference in ...'
$con = new MongoClient(); $data = array('value' => mt_rand()); $con->test->collections->insert($data); // But this is OK
Built with HHVM 3.3.0