Edit report at http://bugs.php.net/bug.php?id=50750&edit=1

 ID:               50750
 Updated by:       m...@php.net
 Reported by:      lgynove at 163 dot com
 Summary:          stream_register_wrapper and imagejpeg
 Status:           Open
 Type:             Bug
-Package:          Systems problem
+Package:          GD related
 Operating System: windows xp
 PHP Version:      5.2.12

 New Comment:

Reclassified.


Previous Comments:
------------------------------------------------------------------------
[2010-01-14 14:23:32] lgynove at 163 dot com

Description:
------------
imagejpeg function not work in stream_register_wrapper.

Reproduce code:
---------------
class dbStream{...}

stream_register_wrapper("mysql123", "dbStream") or die("Failed to
register protocol");



$im = imagecreatetruecolor(120, 20);

$text_color = imagecolorallocate($im, 233, 14, 91);

imagestring($im, 1, 5, 5,  'A Simple Text String', $text_color);

imagejpeg($im, 'mysql123://simpletext.jpg');

imagedestroy($im);

Expected result:
----------------
no error.

Actual result:
--------------
Warning: imagejpeg(): Unable to open 'mysql123://simpletext.jpg' for
writing: Invalid argument.


------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=50750&edit=1

Reply via email to