php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7435 ImageWBMP doesn't work
Submitted: 2000-10-24 11:17 UTC Modified: 2000-10-25 13:50 UTC
From: raf at netmobil dot fr Assigned:
Status: Closed Package: GD related
PHP Version: 4.0.1pl2 OS: linux red hat 6.2
Private report: No CVE-ID: None
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
45 - 11 = ?
Subscribe to this entry?

 
 [2000-10-24 11:17 UTC] raf at netmobil dot fr
my code for use ImageWBMP

imagewbmp.wml
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="start" title="Rectangle">
<p align="center">
<img src="rectangle.php" alt="Rectangle"/>
</p>
</card>
</wml>

rectangle.php
<?
Header("Content-type: image/vnd.wap.wbmp");
$im = imagecreate(90, 90);
$white = ImageColorAllocate($im, 255,255,255);
$black = ImageColorAllocate($im, 0,0,0);
ImageRectangle($im, 5, 5, 85, 85, $black);
ImageWBMP($im);
ImageDestroy($im);
?>


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-25 13:50 UTC] sniper@php.net
As you don't give any clues how it doesn't work I must assume
it was crashing. This is fixed in the CVS now and will be in PHP 4.0.4.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 06 07:01:29 2024 UTC