[php-maint] Bug#766972: php5-gd: Incorrect display libjpeg version

Roman Vasilev vasilev at fastvps.ru
Mon Oct 27 08:56:34 UTC 2014


Package: php5-gd
Version: 5.4.4-14+deb7u14
Severity: important
Tags: patch

Dear Maintainer,

    Problem with phpinfo() display libjpeg version:

    Actual result:

    root at eurosmed ~ # php -i | grep libJPEG
    libJPEG Version => unknown

    After path result:

    root at eurosmed ~ # php -i | grep libJPEG
    libJPEG Version => 8

    Patch:
 
    Need replace it:
    const char * gdJpegGetVersionString()
    {
        switch(JPEG_LIB_VERSION) {
                case 62:
                        return "6b";
                        break;

                default:
                        return "unknown";
    }

    At this:
    const char * gdJpegGetVersionString()
    {
        switch(JPEG_LIB_VERSION) {
                case 62:
                        return "6b";
                        break;

                case 70:
                        return "7";
                        break;

                case 80:
                        return "8";
                        break;

                default:
                        return "unknown";
    }

    On file:
    php5-5.4.4/ext/gd/libgd/gd_compat.c


-- System Information:
Debian Release: 7.7
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages php5-gd depends on:
ii  dpkg                                   1.16.15
ii  libapache2-mod-php5 [phpapi-20100525]  5.4.4-14+deb7u14
ii  libc6                                  2.13-38+deb7u6
ii  libfreetype6                           2.4.9-1.1
ii  libgd2-xpm                             2.0.36~rc1~dfsg-6.1
pn  libjpeg8                               <none>
ii  libpng12-0                             1.2.49-1
ii  libx11-6                               2:1.5.0-1+deb7u1
ii  libxpm4                                1:3.5.10-1
ii  php5-cgi [phpapi-20100525]             5.4.4-14+deb7u14
ii  php5-cli [phpapi-20100525]             5.4.4-14+deb7u14
ii  php5-common                            5.4.4-14+deb7u14
ii  ucf                                    3.0025+nmu3
ii  zlib1g                                 1:1.2.7.dfsg-13

php5-gd recommends no packages.

php5-gd suggests no packages.

-- no debconf information



More information about the pkg-php-maint mailing list