Permalink
Browse files

- expand test file size for lob tests in order to test for bug #3912

git-svn-id: http://svn.php.net/repository/pear/packages/MDB/trunk@183389 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent b88c15f commit aab103851e4b3089758c79069d41357c4f30f269 Lukas Smith committed Apr 2, 2005
Showing with 17 additions and 7 deletions.
  1. +17 −7 tests/MDB_usage_testcase.php
View
24 tests/MDB_usage_testcase.php
@@ -874,16 +874,20 @@ function testLobStorage() {
'Error' => '',
'Data' => ''
);
- for ($code = 32; $code <= 127; $code++) {
- $character_lob['Data'] .= chr($code);
+ for ($i = 0; $i < 100; $i++) {
+ for ($code = 32; $code <= 127; $code++) {
+ $character_lob['Data'] .= chr($code);
+ }
}
$binary_lob = array(
'Database' => $this->db,
'Error' => '',
'Data' => ''
);
- for ($code = 0; $code <= 255; $code++) {
- $binary_lob['Data'] .= chr($code);
+ for ($i = 0; $i < 100; $i++) {
+ for ($code = 0; $code <= 255; $code++) {
+ $binary_lob['Data'] .= chr($code);
+ }
}
$clob = $this->db->createLob($character_lob);
@@ -958,8 +962,11 @@ function testLobFiles() {
$character_data_file = 'character_data';
if (($file = fopen($character_data_file, 'w'))) {
- for ($character_data = '', $code = 32; $code <= 127; $code++) {
- $character_data .= chr($code);
+ $character_data = '';
+ for ($i = 0; $i < 100; $i++) {
+ for ($code = 32; $code <= 127; $code++) {
+ $character_data .= chr($code);
+ }
}
$character_lob = array(
'Type' => 'inputfile',
@@ -973,8 +980,11 @@ function testLobFiles() {
$binary_data_file = 'binary_data';
if (($file = fopen($binary_data_file, 'wb'))) {
- for($binary_data = '', $code = 0; $code <= 255; $code++) {
+ $binary_data = '';
+ for ($i = 0; $i < 100; $i++) {
+ for ($code = 0; $code <= 255; $code++) {
$binary_data .= chr($code);
+ }
}
$binary_lob = array(
'Type' => 'inputfile',

0 comments on commit aab1038

Please sign in to comment.