From:             spam at jerome-gamez dot de
Operating system: Debian Linux 3
PHP version:      4CVS-2003-07-30 (stable)
PHP Bug Type:     *Graphics related
Bug description:  Image functions don't work

Description:
------------
This script below does not lead to an image with some text on it, but to a
set of chars, as you can see on 
http://drupal.smallbrainer.de/font.php

We are using PHP 4.3.2, see our phpinfo: 

http://www.smallbrainer.de/phpinfo.php

Reproduce code:
---------------
<?php
//  header("Content-type: image/jpeg");
  $im = imagecreate(400,30);
  $white = imagecolorallocate($im, 255,255,255);
  $black = imagecolorallocate($im, 0,0,0);
  
  // Replace path by your own font path
  // imagettftext($im, 20, 0, 10, 20, $black,
"/var/www/web1/html/sb-drupal/fonts/slkscr.ttf", "Testing... Omega:
&amp;#937;");
  imagejpeg($im);
  imagedestroy($im);
?>

Expected result:
----------------
An image with some text on it.

Actual result:
--------------
Result is visible at http://drupal.smallbrainer.de/font.php.

- A set of chars, but not an image 

-- 
Edit bug report at http://bugs.php.net/?id=24869&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24869&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24869&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=24869&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24869&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24869&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24869&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24869&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24869&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24869&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24869&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24869&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24869&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24869&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24869&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24869&r=gnused

Reply via email to