From: [EMAIL PROTECTED] Operating system: Slackware Linux 8.0/8.1 PHP version: 4.3.0-pre1 PHP Bug Type: GD related Bug description: Call to undefined function: imagecopyresampled()
$im = @imagecreatefromjpeg ($imgname); if ($im==""): echo "Error opening $imgname<br>"; else: $th_im = @imagecreate (100, 100); $a = imagecopyresampled ($th_im, $im, 0, 0, 0, 0, 100, 100, imagesx($im), imagesy($im)); endif; header("Content-type: image/jpeg"); imagejpeg ( $th_im ); imagedestroy($im); Configured php with: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr --with-zlib --with-bz2 --enable-trans-sid --with-mcrypt --enable-exif --with-gd --with-jpeg-dir=/usr/lib The thing is that I've removed all prior installations of gd from my system, and am using the gd extension packaged with php. The imagecopyresized function works just fine. suggestions? -- Edit bug report at http://bugs.php.net/?id=20096&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20096&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20096&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20096&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20096&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20096&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20096&r=support Expected behavior: http://bugs.php.net/fix.php?id=20096&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20096&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20096&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20096&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20096&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20096&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20096&r=isapi