mongofill / mongofill-hhvm

A mix of the original Mongofill extension + BSON implementation in C++
MIT License
32 stars 19 forks source link

MongoCollection::insert() does not accept first argument by value #9

Closed phpinfointh closed 10 years ago

phpinfointh commented 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