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)
committerPetr Škoda <commits@skodak.org>
Sun, 30 Jun 2013 16:25:14 +0000 (18:25 +0200)
commit4f3e38e745c389af48525f6355a19359a374e987
tree67d9d487a29d8356dc88d0ed027ad755c8c31be9
parentf0d37f4ac5f6137893c8208f4d10028d2b96079d
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