From: sindhu at cypherminds dot com Operating system: Linux PHP version: 4.4.1 PHP Bug Type: GD related Bug description: error while using imagefilter()
Description: ------------ I have created a photo management website, using php 5 on my local server. It consists of code for image manipulations too. It worked perfect on my local server but once I uploaded to Linux server with php 4.4, it gives me errors... Fatal error: call to undefined function imagefilter(). phpinfo shows that the GD library is enabled. Am not able to find a solution to this anywhere. Can someone here help me? Reproduce code: --------------- $imgsrc = imagecreatefromjpeg($tempImagePath);//source image path if ($imgsrc && imagefilter($imgsrc, IMG_FILTER_GRAYSCALE)) { $imgsrc = imagejpeg($imgsrc, $tempImagePath); } Expected result: ---------------- the source image should get convert to grayscale Actual result: -------------- Fatal error: Call to undefined function: imagefilter() -- Edit bug report at http://bugs.php.net/?id=35971&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35971&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35971&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35971&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=35971&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35971&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35971&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35971&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35971&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35971&r=support Expected behavior: http://bugs.php.net/fix.php?id=35971&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35971&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35971&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35971&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35971&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35971&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35971&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35971&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35971&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35971&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35971&r=mysqlcfg