MDL-29295 do not use strtok in dml and ddl layers
authorPetr Skoda <commits@skodak.org>
Fri, 9 Sep 2011 09:11:47 +0000 (11:11 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 13 Sep 2011 22:19:55 +0000 (00:19 +0200)
commit148c65bfc8c410c6c368bd8ac6ec6a64db8da7b0
tree2366f9f34c0e5fb1ff4f8f3e5639905efd0cd2b4
parent3afd493065bb9e938ab6af60d8784c208600c1de
MDL-29295 do not use strtok in dml and ddl layers

This prevents clobbering of internal pointer when code calling DML
uses strtok too. Unit test added to prevent future uses.
lib/ddl/mssql_sql_generator.php
lib/dml/mssql_native_moodle_database.php
lib/dml/mysqli_native_moodle_database.php
lib/dml/simpletest/testdml.php
lib/dml/sqlsrv_native_moodle_database.php