Debian Bug report logs - #798866
php5: error with ImageCreateFromPNG()

version graph

Package: php5; Maintainer for php5 is (unknown);

Reported by: anton <kopcev-av@yandex.ru>

Date: Sun, 13 Sep 2015 17:09:02 UTC

Severity: normal

Found in version php5/5.3.3.1-7+squeeze27

Fixed in version php5/5.4.0~beta2-1

Done: Ondřej Surý <ondrej@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#798866; Package php5. (Sun, 13 Sep 2015 17:09:06 GMT) (full text, mbox, link).


Acknowledgement sent to anton <kopcev-av@yandex.ru>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Sun, 13 Sep 2015 17:09:06 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: anton <kopcev-av@yandex.ru>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: php5: error with ImageCreateFromPNG()
Date: Sun, 13 Sep 2015 21:35:53 +0500
Package: php5
Version: 5.3.3.1-7+squeeze27
Severity: important

Hello, 
i have problem with ImageCreateFromPNG()
All PNG picture have a warnin after function ImageCreateFromPNG():
"Warning: imagecreatefrompng(): bad type specifier while parsing parameters in /var/www/rekl_kv/data/www/server_name.com/img_test.php on line 8"

I solve this warning replace string:
     $image=ImageCreateFromPNG($image);
to:
     $image=imagecreatefromstring(file_get_contents($image));


-- System Information:
Debian Release: 6.0.10
  APT prefers squeeze-lts
  APT policy: (990, 'squeeze-lts'), (500, 'oldoldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/1 CPU core)
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 depends on:
ii  libapache2-mod-php5  5.3.3.1-7+squeeze27 server-side, HTML-embedded scripti
ii  php5-cgi             5.3.3.1-7+squeeze27 server-side, HTML-embedded scripti
ii  php5-common          5.3.3.1-7+squeeze27 Common files for packages built fr

php5 recommends no packages.

php5 suggests no packages.

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#798866; Package php5. (Mon, 14 Sep 2015 13:39:06 GMT) (full text, mbox, link).


Acknowledgement sent to Ondřej Surý <ondrej@sury.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Mon, 14 Sep 2015 13:39:06 GMT) (full text, mbox, link).


Message #10 received at 798866@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@sury.org>
To: anton <kopcev-av@yandex.ru>, Debian Bug Tracking System <798866@bugs.debian.org>
Subject: Re: [php-maint] Bug#798866: php5: error with ImageCreateFromPNG()
Date: Mon, 14 Sep 2015 15:34:28 +0200
Control: severity -1 normal
Control: fixed -1 php5/5.4.0~beta2-1

Hi Anton,

the php5 in squeeze only receives security updates. Please upgrade to
current Debian stable that has the latest 5.6.x version of php5 if you
want to have functional bugs fixed.

Cheers,
Ondrej

On Sun, Sep 13, 2015, at 18:35, anton wrote:
> Package: php5
> Version: 5.3.3.1-7+squeeze27
> Severity: important
> 
> Hello, 
> i have problem with ImageCreateFromPNG()
> All PNG picture have a warnin after function ImageCreateFromPNG():
> "Warning: imagecreatefrompng(): bad type specifier while parsing
> parameters in /var/www/rekl_kv/data/www/server_name.com/img_test.php on
> line 8"
> 
> I solve this warning replace string:
>      $image=ImageCreateFromPNG($image);
> to:
>      $image=imagecreatefromstring(file_get_contents($image));
> 
> 
> -- System Information:
> Debian Release: 6.0.10
>   APT prefers squeeze-lts
>   APT policy: (990, 'squeeze-lts'), (500, 'oldoldstable')
> Architecture: amd64 (x86_64)
> 
> Kernel: Linux 2.6.32-5-amd64 (SMP w/1 CPU core)
> 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 depends on:
> ii  libapache2-mod-php5  5.3.3.1-7+squeeze27 server-side, HTML-embedded
> scripti
> ii  php5-cgi             5.3.3.1-7+squeeze27 server-side, HTML-embedded
> scripti
> ii  php5-common          5.3.3.1-7+squeeze27 Common files for packages
> built fr
> 
> php5 recommends no packages.
> 
> php5 suggests no packages.
> 
> -- no debconf information
> 
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-maint@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint


-- 
Ondřej Surý <ondrej@sury.org>
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server



Severity set to 'normal' from 'important' Request was from Ondřej Surý <ondrej@sury.org> to 798866-submit@bugs.debian.org. (Mon, 14 Sep 2015 13:39:06 GMT) (full text, mbox, link).


Marked as fixed in versions php5/5.4.0~beta2-1. Request was from Ondřej Surý <ondrej@sury.org> to 798866-submit@bugs.debian.org. (Mon, 14 Sep 2015 13:39:07 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#798866; Package php5. (Mon, 14 Sep 2015 13:57:13 GMT) (full text, mbox, link).


Acknowledgement sent to Копцев Антон <kopcev-av@yandex.ru>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.

Your message did not contain a Subject field. They are recommended and useful because the title of a Bug is determined using this field. Please remember to include a Subject field in your messages in future.

(Mon, 14 Sep 2015 13:57:13 GMT) (full text, mbox, link).


Message #19 received at 798866@bugs.debian.org (full text, mbox, reply):

From: Копцев Антон <kopcev-av@yandex.ru>
To: 798866@bugs.debian.org
Date: Mon, 14 Sep 2015 18:50:00 +0500
Hello Ondrej!
I can't use php 5.6 version.. Thats why i stand on debian 6.

When it was squeeze repo - php works fine, and i have no errors..
This error came with squeeze-lts repo.. 



Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#798866; Package php5. (Fri, 18 Sep 2015 11:21:03 GMT) (full text, mbox, link).


Acknowledgement sent to Andreas Schwarz <a.schwarz@netleaders.de>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.

Your message did not contain a Subject field. They are recommended and useful because the title of a Bug is determined using this field. Please remember to include a Subject field in your messages in future.

(Fri, 18 Sep 2015 11:21:04 GMT) (full text, mbox, link).


Message #24 received at 798866@bugs.debian.org (full text, mbox, reply):

From: Andreas Schwarz <a.schwarz@netleaders.de>
To: 798866@bugs.debian.org
Date: Fri, 18 Sep 2015 13:10:18 +0200
[Message part 1 (text/plain, inline)]
I can confirm the issue onmultiple systems.
With "5.3.3.1-7 + squeeze26" there were no problems, the error occurs only with Update 27

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#798866; Package php5. (Fri, 18 Sep 2015 14:27:06 GMT) (full text, mbox, link).


Acknowledgement sent to Ondřej Surý <ondrej@sury.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Fri, 18 Sep 2015 14:27:06 GMT) (full text, mbox, link).


Message #29 received at 798866@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@sury.org>
To: anton <kopcev-av@yandex.ru>, Andreas Schwarz <a.schwarz@netleaders.de>, 798866@bugs.debian.org
Cc: debian-lts@lists.debian.org
Subject: Re: [php-maint] Bug#798866: (no subject)
Date: Fri, 18 Sep 2015 16:24:45 +0200
Folks,

please report issues related to LTS to appropriate places.

https://wiki.debian.org/LTS/FAQ#Where_can_bugs_be_reported.3F

I will keep this bug open to LTS team to handle it, but please report
the bug to debian-lts@l.d.o, so it gets an attention of the LTS team.

Cheers,
Ondrej

On Fri, Sep 18, 2015, at 13:10, Andreas Schwarz wrote:
> I can confirm the issue onmultiple systems.
> With "5.3.3.1-7 + squeeze26" there were no problems, the error occurs
> only with Update 27
> 
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-maint@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint
> Email had 1 attachment:
> + signature.asc
>   1k (application/pgp-signature)


-- 
Ondřej Surý <ondrej@sury.org>
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server



Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#798866; Package php5. (Fri, 18 Sep 2015 16:09:06 GMT) (full text, mbox, link).


Acknowledgement sent to Thorsten Alteholz <debian@alteholz.de>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Fri, 18 Sep 2015 16:09:06 GMT) (full text, mbox, link).


Message #34 received at 798866@bugs.debian.org (full text, mbox, reply):

From: Thorsten Alteholz <debian@alteholz.de>
To: anton <kopcev-av@yandex.ru>, Andreas Schwarz <a.schwarz@netleaders.de>
Cc: 798866@bugs.debian.org
Subject: Re: [php-maint] Bug#798866: (no subject)
Date: Fri, 18 Sep 2015 17:27:53 +0200 (CEST)
Hi Anton and Andreas,

did you try to restart your webserver after that PHP update?
If the error remains, please run the script from [1] and tell me the 
output.

Thanks!
 Thorsten

[1] https://lists.debian.org/debian-lts/2015/09/msg00033.html




Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#798866; Package php5. (Mon, 21 Sep 2015 10:06:04 GMT) (full text, mbox, link).


Acknowledgement sent to Andreas Schwarz <a.schwarz@netleaders.de>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Mon, 21 Sep 2015 10:06:04 GMT) (full text, mbox, link).


Message #39 received at 798866@bugs.debian.org (full text, mbox, reply):

From: Andreas Schwarz <a.schwarz@netleaders.de>
To: 798866@bugs.debian.org
Subject: Re: [php-maint] Bug#798866: (no subject)
Date: Mon, 21 Sep 2015 12:02:49 +0200
Hi Thorsten,

a complete restart of the apache server has fixed the issue.
I would suggest to add a "service restart" in the post-install script,
because I've found many sites with this error message via google.




Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#798866; Package php5. (Tue, 22 Sep 2015 15:39:03 GMT) (full text, mbox, link).


Acknowledgement sent to "Nick Huijsmans" <nick@zeke.nl>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Tue, 22 Sep 2015 15:39:04 GMT) (full text, mbox, link).


Message #44 received at 798866@bugs.debian.org (full text, mbox, reply):

From: "Nick Huijsmans" <nick@zeke.nl>
To: <798866@bugs.debian.org>
Subject: Re: [php-maint] Bug#798866: (no subject)
Date: Tue, 22 Sep 2015 17:26:10 +0200
[Message part 1 (text/plain, inline)]
I can confirm a complete restart of the webserver (apache2ctl -k restart)
fixed this issue.

 

Kind regards,

Nick Huijsmans

 

Zeke Internet Services

w:  <http://www.zeke.nl/> http://www.zeke.nl

t: +31 20 716 5135

On Mon, 21 Sep 2015 12:02:49 +0200 Andreas Schwarz <a.schwarz@netleaders.de>
wrote: 
> Hi Thorsten, 
> 
> a complete restart of the apache server has fixed the issue. 
> I would suggest to add a "service restart" in the post-install script, 
> because I've found many sites with this error message via google. 
> 
> 
> 

[Message part 2 (text/html, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#798866; Package php5. (Sat, 10 Oct 2015 14:09:03 GMT) (full text, mbox, link).


Acknowledgement sent to Копцев Антон <kopcev-av@yandex.ru>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.

Your message did not contain a Subject field. They are recommended and useful because the title of a Bug is determined using this field. Please remember to include a Subject field in your messages in future.

(Sat, 10 Oct 2015 14:09:03 GMT) (full text, mbox, link).


Message #49 received at 798866@bugs.debian.org (full text, mbox, reply):

From: Копцев Антон <kopcev-av@yandex.ru>
To: 798866@bugs.debian.org
Date: Sat, 10 Oct 2015 19:06:26 +0500
sorry..
my wrong..
after restart - there is no error



Marked Bug as done Request was from Ondřej Surý <ondrej@debian.org> to control@bugs.debian.org. (Wed, 27 Jan 2016 11:18:13 GMT) (full text, mbox, link).


Notification sent to anton <kopcev-av@yandex.ru>:
Bug acknowledged by developer. (Wed, 27 Jan 2016 11:18:14 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 25 Feb 2016 07:33:55 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 00:45:05 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.