Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
test-script-for-phpbug-61183
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