title: imagecopyresampled() expects parameter 5 to be long
body: <p>I work with PHP on my project, and my friend use this code :</p>
  
  <pre><code>function imagecopyresampled($out, $in, $dstX, $dstY, $srcX=0, $srcY=0, $dstW, $dstH,        $srcW, $srcH)
  {
      if($this-&gt;GD_VERSION==2)
          return imagecopyresampled($out, $in, $dstX, $dstY, $srcX, $srcY, $dstW, $dstH, $srcW, $srcH);
      else
          return imagecopyresized($out, $in, $dstX, $dstY, $srcX, $srcY, $dstW, $dstH, $srcW, $srcH);
  }
  </code></pre>
  
  <p>and when I whant to upload an image I receive this error : </p>
  
  <blockquote>
    <p>Warning: imagecopyresampled() expects parameter 5 to be long, string
    given in
    /home/mbeuser/public_html/nephrogest/includes/common/image/ImageFilter.class.php5
    on line 917</p>
  </blockquote>
  
  <p>this is line 917:</p>
  
  <pre><code>return imagecopyresampled($out, $in, $dstX, $dstY, $srcX,
                            $srcY, $dstW, $dstH, $srcW, $srcH);
  </code></pre>