MDL-40266 improve emulate_bound_params() for mysqli
authorMartin Langhoff <martin.langhoff@remote-learner.net>
Wed, 12 Jun 2013 00:56:39 +0000 (20:56 -0400)
committerDan Poltawski <dan@moodle.com>
Tue, 2 Jul 2013 01:56:17 +0000 (09:56 +0800)
commite13acecad76875d5b442a24730ef7d038c37621b
treedeec751c87e918a1801504602b18174d39a8b665
parent490bf4e84ff7495615e87240499c1d622a6f8280
MDL-40266 improve emulate_bound_params() for mysqli

Looping over large numbers of items with array_shift() is expensive.
Reverse the array and fetch items from the top of the pile.
lib/dml/mysqli_native_moodle_database.php