diff options
Diffstat (limited to 'ext/pdo_mysql/tests/bug_41125.phpt')
| -rw-r--r-- | ext/pdo_mysql/tests/bug_41125.phpt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/pdo_mysql/tests/bug_41125.phpt b/ext/pdo_mysql/tests/bug_41125.phpt index 1f54cca5f..a1d8dd1ae 100644 --- a/ext/pdo_mysql/tests/bug_41125.phpt +++ b/ext/pdo_mysql/tests/bug_41125.phpt @@ -22,6 +22,7 @@ if ($version < 40100) <?php require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc'); $db = MySQLPDOTest::factory(); +$db->exec("DROP TABLE IF EXISTS test"); // And now allow the evil to do his work $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, 1); @@ -37,6 +38,12 @@ do { print "done!"; ?> +--CLEAN-- +<?php +require dirname(__FILE__) . '/mysql_pdo_test.inc'; +$db = MySQLPDOTest::factory(); +$db->exec("DROP TABLE IF EXISTS test"); +?> --EXPECTF-- Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error in %s on line %d array(0) { |
