FreeBSD Bugzilla – Attachment 168739 Details for
Bug 208370
graphics/p5-GD does not read PNG files under mod_perl on 10.2, 10.3RC3
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Sample CGI script, test103.png, and additional outputs from tests
MOD_PERL_PROBLEM-2016-03-28.shar (text/plain), 4.40 KB, created by
papowell
on 2016-03-28 22:02:30 UTC
(
hide
)
Description:
Sample CGI script, test103.png, and additional outputs from tests
Filename:
MIME Type:
Creator:
papowell
Created:
2016-03-28 22:02:30 UTC
Size:
4.40 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># MOD_PERL_PROBLEM-2016-03-28/test103.cgi ># MOD_PERL_PROBLEM-2016-03-28/test103.png ># MOD_PERL_PROBLEM-2016-03-28/test103_outputs ># >echo x - MOD_PERL_PROBLEM-2016-03-28/test103.cgi >sed 's/^X//' >MOD_PERL_PROBLEM-2016-03-28/test103.cgi << '6564f77254b518ca6f8b62a52eae63de' >X#!/usr/local/bin/perl >X >Xuse strict; >Xuse warnings; >Xuse CGI; >Xuse CGI::Carp qw( fatalsToBrowser ); >Xuse GD; >X >X $| = 1; >X >X my $query = new CGI; >X print $query->header(); >X print $query->start_html(); >X >X my $test_png = "test103.png"; >X print $query->h1($test_png); >X print <<EOF; >X<img src="$test_png"> >XEOF >X >X my $image = GD::Image->new( $test_png ); >X if( $image ){ >X print "<br> Read Image\n"; >X } else { >X print "<br> Did NOT Read Image\n"; >X } >X >X print $query->end_html(); >X >X exit 0; >X >6564f77254b518ca6f8b62a52eae63de >echo x - MOD_PERL_PROBLEM-2016-03-28/test103.png >sed 's/^X//' >MOD_PERL_PROBLEM-2016-03-28/test103.png << 'e605c09ecf4f40cf3b1007c195918e28' >XPNG >X >X IHDRb °ZPLTEÏôi·#3={µÕ4M[XFgz6 pHYsÄÄ+IDAT8í½OÂ@ÆhKG >X±tr-bÔѵ¸÷4ìðoû~ôÚY/é½Ís÷»{¿Îß:&?Ix¾°ÄoMæVqäY6!1ÓÀiµCB¥{1¼yg$Ç®c(}D·KLÝ%Ä`d|Âë¡á¤ZýM$<ï¹Jb@ÔwÎP6¯á±AUÄ="o-ÏF¦J0iL_6¦z:MRrIKko÷I½\LÂÒ5Rªú\þªd4&-n²ëµìv9½/þÇ\xõÁ^£L x^íMäÎì&H¥ZDݦÖâÕÐû*¥:µ_+È5oßá×m©·@»¤G;Â&óêÎÍÚÜ=z[ê72S';"L >XºN¹¾à®£R 'ÉE-©¨R) 55sÔϧtDõ¢ær¤ÀÆjÚøþ_-¸Er¹ÑWk^Ôü??¾ËÀBIEND®B` >e605c09ecf4f40cf3b1007c195918e28 >echo x - MOD_PERL_PROBLEM-2016-03-28/test103_outputs >sed 's/^X//' >MOD_PERL_PROBLEM-2016-03-28/test103_outputs << '05d049d630306a5e2826f37c00ccdd81' >XFreeBSD d11rmi7 9.3-RELEASE-p10 FreeBSD 9.3-RELEASE-p10 #0: Tue Feb 24 21:28:03 UTC 2015 >Xroot@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >X - worked >XX ap24-mod_perl2-2.0.9,3 Embeds a Perl interpreter in the Apache server >XX apache24-2.4.18 Version 2.4.x of Apache web server >XX p5-GD-2.56_2 Perl5 interface to Gd Graphics Library version2 >XX png-1.6.21 Library for manipulating PNG images >X >XFreeBSD test103 10.3-RC3 FreeBSD 10.3-RC3 #0 r296998: Fri Mar 18 01:08:19 UTC 2016 >Xroot@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 >X - failed >X >XX ap24-mod_perl2-2.0.9,3 Embeds a Perl interpreter in the Apache server >XX apache24-2.4.18 Version 2.4.x of Apache web server >XX p5-GD-2.56_2 Perl5 interface to Gd Graphics Library version2 >XX png-1.6.21 Library for manipulating PNG images >X >XFreeBSD d7rmivm1 10.2-RELEASE FreeBSD 10.2-RELEASE #0 r286666: Wed Aug 12 15:26:37 UTC 2015 >Xroot@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 >X >XX ap24-mod_perl2-2.0.9,3 Embeds a Perl interpreter in the Apache server >XX apache24-2.4.18 Version 2.4.x of Apache web server >XX p5-GD-2.56_2 Perl5 interface to Gd Graphics Library version2 >XX png-1.6.21 Library for manipulating PNG images >X >X >Xperl test103.cgi: >X >XContent-Type: text/html; charset=ISO-8859-1 >X >X<!DOCTYPE html >X PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >X "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> >X<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US"> >X<head> >X<title>Untitled Document</title> >X<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> >X</head> >X<body> >X<h1>images/test103.png</h1><img src="images/test103.png"> >X<br> Read Image >X >X</body> >X</html> >X >X >Xhttp://localhost/test103.cgi >XIn Apache Error log: >X GD Error: gd-png: fatal libpng error: bad parameters to zlib >X GD Warning: gd-png error: setjmp returns error condition 2 >X >X >X<!DOCTYPE html >X PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >X "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> >X<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US"> >X<head> >X<title>Untitled Document</title> >X<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> >X</head> >X<body> >X<h1>test103.png</h1><img src="images/test103.png"> >X<br> Did NOT Read Image >X >X</body> >X</html> >05d049d630306a5e2826f37c00ccdd81 >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 208370
: 168739