Created
July 16, 2015 14:08
-
-
Save mariuz/b00d148812e3a1657ef1 to your computer and use it in GitHub Desktop.
test-script-for-phpbug-61183
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat test.php | |
<?php | |
try | |
{ | |
$dbh = new PDO('firebird:host=localhost;dbname=/tmp/tests.fdb', 'SYSDBA', 'masterkey'); | |
for($i = 0; $i < 5000; $i++) | |
{ | |
$statement = $dbh->prepare('INSERT INTO "PHPBB_USERS" ("USER_ID", "USERNAME", "USERNAME_CLEAN", "USER_PERMISSIONS", "USER_SIG", "USER_OCC", "USER_INTERESTS") VALUES (?, ?, ?, ?, ?, ?, ?)'); | |
$statement->execute(array (0 => '2', 1 => 'banned', 2 => 'banned', 3 => '', 4 => '', 5 => '', 6 => '')); | |
echo 'Statement run: ' . $i . "\n"; | |
} | |
} | |
catch (PDOException $e) | |
{ | |
echo 'Exception: ' . $e->getMessage(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment