title: Excution timeout error while create image by php and imagick
body: <p>I need create captcha from server side. I use php+imagick extension. Sometimes I find 500 error while create a image, although it works fine most of time.
  The code is something like below:</p>
  
  <pre><code>$Imagick = new Imagick();
  $Imagick-&gt;newImage( $w, $h, $bg );
  
  $ImagickDraw = new ImagickDraw();
  $ImagickDraw-&gt;setFont(...);
  $ImagickDraw-&gt;setFontSize( ... );
  $ImagickDraw-&gt;setFillColor(...);
  
  $Imagick-&gt;borderImage('black', 1, 1);
  $Imagick-&gt;annotateImage($ImagickDraw, 12, 34, $angles[rand(0, count($angles)-1)], $code);
  $Imagick-&gt;swirlImage( 10 );
  
  for($i=0; $i&lt;20; $i++) {
    $ImagickDraw-&gt;line( mt_rand( 1, $w-1 ), mt_rand(1, $h-1), mt_rand(1, $w-1), mt_rand(1, $h-1) );
  }
  
  for ($i=0; $i&lt;30; $i++) {
    $ImagickDraw-&gt;color( mt_rand(1, $w-1), mt_rand(1, $h-1), 0);
  }
  
  $Imagick-&gt;drawImage( $ImagickDraw );
  </code></pre>
  
  <p>The error log reports "Maximum execution time of 30 seconds exceeded" at the last line </p>
  
  <pre><code>$Imagick-&gt;drawImage( $ImagickDraw ). 
  </code></pre>
  
  <p>Did anyone ever meet such a problem? I use php5.2.17,imagick module 2.3.0 and Apache 2.2.15.</p>