[PHP-DEV] Bug #12599: ImageTTFText doesn't open font file

2001-08-06 Thread carlos . a . viana

From: [EMAIL PROTECTED]
Operating system: Win98
PHP version:  4.0.6
PHP Bug Type: GD related
Bug description:  ImageTTFText doesn't open font file

The following code generates this warning (doesn't happen with 4.0.5):
bWarning/b:  Could not find/open font in
bd:\public_html\image_create.php/b on line b357/bbr

Code:
?php
Header (Content-type: image/jpeg);
$im = imagecreate (400, 30);
$black = ImageColorAllocate ($im, 0, 0, 0);
$white = ImageColorAllocate ($im, 255, 255, 255);
ImageTTFText ($im, 20, 0, 10, 20, $white, D:/public_html/fonts/a.ttf,
Testing... Omega: #937;);
ImageJpeg ($im);
ImageDestroy ($im);
?
-- 
Edit bug report at: http://bugs.php.net/?id=12599edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12315: Buffering crashes PHP when there is an error with mail function

2001-07-23 Thread carlos . a . viana

From: [EMAIL PROTECTED]
Operating system: Win ME
PHP version:  4.0.6
PHP Bug Type: Output Control
Bug description:  Buffering crashes PHP when there is an error with mail function

I don't have an email server in my development computer, so when I turn
output buffering on with ob_start('ob_gzhandler') and try to send an
email with mail (string to, string subject, string message) or die('Error
message'), PHP crashes. This doesn't happen in every script ans doesn't
happen at all, when I remove the or die('Error message') condition.
-- 
Edit bug report at: http://bugs.php.net/?id=12315edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]