Operating System - OpenVMS
1820890 Members
3887 Online
109628 Solutions
New Discussion юеВ

Re: CSWS PHP 1.3 and GD support (PHP Version 4.3.10)

 
Mark Daniel_2
Frequent Advisor

CSWS PHP 1.3 and GD support (PHP Version 4.3.10)

If my reporting utility is correct this seems rather limited:

* GD support: yes
* GD Version: 2.0 or higher
* FreeType Support: no
* T1Lib Support: no
* GIF Read Support: no
* GIF Create Support: no
* JPG Support: no
* PNG Support: no
* WBMP Support: no
* XBM Support: no
* JIS-mapped Japanese Font Support: no

My understanding of this report would be that I can create graphics to my heart's content - I just can't display them.
13 REPLIES 13
Kris Clippeleyr
Honored Contributor

Re: CSWS PHP 1.3 and GD support (PHP Version 4.3.10)

Mark,
It seems rather odd to me that GD is supposed to be supported, but PNG and JPG aren't. AFAIK, GD is built with PNG & JPG support, so support for GD would include PNG and JPG. And, what do you mean by "I just can't display them", what utility are you using? CSWS has to my knowledge no problem in sending the binary data of a PNG image to a browser.
Regards,
Kris (aka Qkcl)
I'm gonna hit the highway like a battering ram on a silver-black phantom bike...
Heinz W Genhart
Honored Contributor

Re: CSWS PHP 1.3 and GD support (PHP Version 4.3.10)

I also just installed CSWS V2.1 and Php V1.3

Then I used this php script:

$image = imagecreate(300,150);
$farbe_body=imagecolorallocate($image,243,243,243);
header("Content-Type: image/png");
imagepng($image);
?>

and I get the following output:



Fatal error: Call to undefined function: imagepng() in /www/hgenhart_ch/prod/t.php on line 5


It seems, that I have the same problem like Mark Daniel
Mark Daniel_2
Frequent Advisor

Re: CSWS PHP 1.3 and GD support (PHP Version 4.3.10)

>And, what do you
>mean by "I just can't display them", what
>utility are you using?

PHP itself Kris; this should work ...

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
header( "Content-type: image/gif" );
$im = ImageCreate( 153, 20 ); // width, height

$red = ImageColorAllocate( $im, 255, 0, 0 );
$white = ImageColorAllocate( $im, 255, 255, 255 );

ImageString($im,3,3,3,"Programmabilities.com",$white);
imageGIF( $im );
// Or ImageGif($im, $filename) if you want to save
// it to a file. --Provide an optional second argument.

ImageDestroy( $im ); // Free memory
?>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Instead I get an error similar to that reported by Heinz ...

>Fatal error: Call to undefined function: imagepng() in

only 'function: imagegif'. Of course I tried imagejpg() and imagepng() with the same issue. It was then I used

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

// Retrieve information about the currently installed GD library
function describeGDdyn() {
echo "\n
  • GD support: ";
    if(function_exists("gd_info")){
    echo "yes";
    $info = gd_info();
    $keys = array_keys($info);
    for($i=0; $i if(is_bool($info[$keys[$i]])) echo "
  • \n
  • " . $keys[$i] .": " . yesN
    o($info[$keys[$i]]);
    else echo "
  • \n
  • " . $keys[$i] .": " . $info[$keys[$i]];
    }
    } else { echo "no"; }
    echo "
";
}

function yesNo($bool){
if($bool) return " yes";
else return " no";
}

describeGDdyn();

?>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

from which I posted my original query.

(I hate this ITRC interface with a passion!!)
Kris Clippeleyr
Honored Contributor

Re: CSWS PHP 1.3 and GD support (PHP Version 4.3.10)

Mark,
I'm still very puzzled.
According to the release notes at the HP website, PHP 1.3 includes support for GD. You can even activate the "php_gd" extension via the PHP.INI file (still according to the release notes). But, as I can read from the output of your function, GD is supported, but PNG not. That is absurd. I've ported GD 2.0.33 to VMS and it definitely depends on LibPNG 1.2.8, Jpeg 6b, Freetype 2.1.10, XPM 3.5.1.1, and ZLib 1.2.3. So, did engineering screw things up a little in providing us with a flaky PHP kit?
I'm sorry that I can't provide more help, since overhere we still use the PHP 1.2 kit.
Regards,
Kris (aka Qkcl)
I'm gonna hit the highway like a battering ram on a silver-black phantom bike...
Mark Daniel_2
Frequent Advisor

Re: CSWS PHP 1.3 and GD support (PHP Version 4.3.10)

You did the port for CSWS PHP Kris?

>That is absurd. I've ported GD 2.0.33 to VMS
>and it definitely depends on LibPNG 1.2.8,
>Jpeg 6b, Freetype 2.1.10, XPM 3.5.1.1, and
>ZLib 1.2.3. So, did engineering screw things
>up a little in providing us with a flaky
>PHP kit?

Here's a list of the extensions available in the CSWS PHP V1.3 kit ...

[APACHE.PHP.EXTENSIONS]PHP_BCMATH.EXE
[APACHE.PHP.EXTENSIONS]PHP_BZ2.EXE
[APACHE.PHP.EXTENSIONS]PHP_CALENDAR.EXE
[APACHE.PHP.EXTENSIONS]PHP_CTYPE.EXE
[APACHE.PHP.EXTENSIONS]PHP_DBA.EXE
[APACHE.PHP.EXTENSIONS]PHP_EXIF.EXE
[APACHE.PHP.EXTENSIONS]PHP_FTP.EXE
[APACHE.PHP.EXTENSIONS]PHP_GD.EXE
[APACHE.PHP.EXTENSIONS]PHP_ICONV.EXE
[APACHE.PHP.EXTENSIONS]PHP_LDAP.EXE
[APACHE.PHP.EXTENSIONS]PHP_MHASH.EXE
[APACHE.PHP.EXTENSIONS]PHP_MYSQL.EXE
[APACHE.PHP.EXTENSIONS]PHP_OCI8.EXE
[APACHE.PHP.EXTENSIONS]PHP_ODBC.EXE
[APACHE.PHP.EXTENSIONS]PHP_OPENSSL.EXE
[APACHE.PHP.EXTENSIONS]PHP_OPENVMS.EXE
[APACHE.PHP.EXTENSIONS]PHP_ORACLE.EXE
[APACHE.PHP.EXTENSIONS]PHP_PCRE.EXE
[APACHE.PHP.EXTENSIONS]PHP_POSIX.EXE
[APACHE.PHP.EXTENSIONS]PHP_SESSION.EXE
[APACHE.PHP.EXTENSIONS]PHP_SOCKETS.EXE
[APACHE.PHP.EXTENSIONS]PHP_XML.EXE
[APACHE.PHP.EXTENSIONS]PHP_ZIP.EXE
[APACHE.PHP.EXTENSIONS]PHP_ZLIB.EXE

so if LibPNG, et al, rely on an extension then that's that!
Heinz W Genhart
Honored Contributor

Re: CSWS PHP 1.3 and GD support (PHP Version 4.3.10)

I think to get it work, we have to instal LIBGD (and ZLIB??) from the OpenVMS Freeware CD.
The only Problem I have is, that there is no LIBGD Kit for Ithanium .....
Mark Daniel_2
Frequent Advisor

Re: CSWS PHP 1.3 and GD support (PHP Version 4.3.10)

Rick Barry has posted this to the same query on c.o.v. ...

We're looking into it. It appears to be a glitch where not enough of the
graphics options were enabled when we built the extension.

Rick Barry
OpenmVMS Engineering
Hewlett-Packard Company
Kris Clippeleyr
Honored Contributor

Re: CSWS PHP 1.3 and GD support (PHP Version 4.3.10)

Mark & Heinz,

I did NOT port├В┬иPHP to VMS. I only ported the LIBGD to VMS (VAX, Alpha & Itanium).
If you download the original kit from
http://www.boutell.com/gd/http/
and then download my patches & build procedures from
http://www.quadratrix.be/products/open_source_material.html
you can build it for yourselves and maybe integrate it with PHP on an Itanium.
Mind you, you also need Freetype, LibPNG, ZLib, and Xpm.
Regards,
Kris (aka Qkcl)
I'm gonna hit the highway like a battering ram on a silver-black phantom bike...
Jean-Fran├зois Pi├йronne
Trusted Contributor

Re: CSWS PHP 1.3 and GD support (PHP Version 4.3.10)

You can also find PCSI kits for AXP and Itanium on http://www.pi-net.dyndns.org/anonymous/kits/

Currently are available:
Zlib, LibBZ2, LibJPEG, LibPNG
Freetype, LibImaging, LibGD, GDChart
LibXML2, Libxslt/Libexslt
OPENSSL, Swish-E
MySQL, Python


require VMS 7.3 on AXP and 8.2 on IA64
Aaron Sakovich
Super Advisor

Re: CSWS PHP 1.3 and GD support (PHP Version 4.3.10)

So, it's been 6 months since this was first reported. I just stumbled across this problem myself in my SWS 2.1/PHP 1.3 installation.

Am I missing an update? Or has nothing been done to rectify this error?

Aaron
Aaron Sakovich
Super Advisor

Re: CSWS PHP 1.3 and GD support (PHP Version 4.3.10)

TTT

It's now been over 9 months since this was first reported, and we've still only got the original v1.3 release available, with no patch to fix this issue.

A hollow voice says "Plugh"...
Aaron Sakovich
Super Advisor

Re: CSWS PHP 1.3 and GD support (PHP Version 4.3.10)

This is reportedly fixed in PHP v1.3 Update 1. See the release notes at:

http://h71000.www7.hp.com/openvms/products/ips/apache/CSWS_PHP13_UPDATE1_README.TXT

Cheers & Plover!
Aaron
Aaron Sakovich
Super Advisor

Re: CSWS PHP 1.3 and GD support (PHP Version 4.3.10)

Tested & functionality verified (at least with JPEG files). Works great! Thanks, SWS Team!!!