[PHP-DEV] Bug #972: *Document contains no data* received after a lot of loops From: arneodo <email protected>
Date: 12/04/98

From: arneodo <email protected>
Operating system: Linux RedHat 5.1
PHP version: 3.0.5
PHP Bug Type: Reproduceable crash
Bug description: *Document contains no data* received after a lot of loops

// Increase $loop if you don't receive "Document contains no data"
// this seems to work on NT4 but not on RedHat

function f1($s){
  $a = $s;
  return $a;
}
function f2($s){
  $a = $s;
  return $a;
}
function f3($s){
  $a = $s;
  return $a;
}

function run($s, $h1, $h2, $h3){
  $loop = 1000000;
  for( $i = $loop ; $i > 0 ; $i-- ) {
    $h1( (string) $i );
    $h2( (string) $i );
    $h3( (string) $i );
  }
}

run( "test", 'f1', 'f2', 'f3' );
echo "Test is OK";

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>