php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33751 jpeg support
Submitted: 2005-07-18 17:30 UTC Modified: 2010-12-20 11:56 UTC
From: rob at tdd dot org dot uk Assigned: jani (profile)
Status: Closed Package: GD related
PHP Version: 5.0.4 OS: Debian GNU/Linux 3.0
Private report: No CVE-ID: None
 [2005-07-18 17:30 UTC] rob at tdd dot org dot uk
Description:
------------
I upgraded from php-5.0.3 to php-5.0.4. I used EXACTLY the same configuration options as php-5.0.3 and jpeg support was removed from gd in php-5.0.4. Both versions of php build and install successfully.

./configure --with-gd --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache2/bin/apxs --enable-track-vars --with-pspell --with-memcache --enable-soap --enable-exif --with-tidy --with-curl --with-png-dir=/usr/local --with-zlib-dir=/usr/lib --enable-force-cgi-redirect --with-gettext --with-freetype-dir=/usr/local --with-jpeg-dir=/usr/local


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-18 18:23 UTC] sniper@php.net
Works fine for me (and there weren't any changes between 5.0.3 and 5.0.4 which could have broken it). There's just something wrong with your system. (check config.log, there you most likely will find the reason the check failed)

Also: paths like /usr/lib do NOT WORK! (they never did and they never will, drop the /lib part from those!)


 [2005-07-18 19:55 UTC] rob at tdd dot org dot uk
Okay I have compiled php-5.0.3 and php-5.0.4 with the configure options.

 ./configure --with-gd --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache2/bin/apxs --enable-track-vars --with-pspell --with-memcache --enable-soap --enable-exif --with-tidy --with-curl --with-png-dir=/usr/local --with-zlib-dir=/usr --enable-force-cgi-redirect --with-gettext --with-freetype-dir=/usr/local --with-jpeg-dir=/usr/local

I have tested the script below on the command line.

# cat ../imagecheck.php
<?php
        $func_name = "imagecreatefromjpeg";
        if(function_exists($func_name))
                echo "Function $func_name exists\n";
        else
                echo "Function $func_name does not exist\n";
?>

With php-5.0.3

# ./sapi/cli/php ../imagecheck.php
Function imagecreatefromjpeg exists

With php-5.0.4

# ./sapi/cli/php ../imagecheck.php
Function imagecreatefromjpeg does not exist

If there was a problem with the system and nothing had changed between the versions then the same problem would occur in php-5.0.3
 [2005-07-19 11:18 UTC] rob at tdd dot org dot uk
I downloaded the source again and did a difference check

# diff -Naur php-5.0.4old php-5.0.4new > php.diff

There were differences (apart from generated files by configure, make etc) so I compiled again with the newly downloaded source and everything has worked fine. Obviously not a problem with my system then!
 [2010-12-20 11:56 UTC] jani@php.net
-Package: Tidy +Package: GD related -Assigned To: +Assigned To: jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 20:01:32 2024 UTC