Skip to content

Instantly share code, notes, and snippets.

@mariuz
Created July 16, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariuz/b00d148812e3a1657ef1 to your computer and use it in GitHub Desktop.
Save mariuz/b00d148812e3a1657ef1 to your computer and use it in GitHub Desktop.
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