Bug #50750 [Opn->Bgs]: stream_register_wrapper and imagejpeg

From: Date: Wed, 19 May 2010 12:53:51 +0000
Subject: Bug #50750 [Opn->Bgs]: stream_register_wrapper and imagejpeg
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-150602@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=50750&edit=1

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

 New Comment:

Image functions (GD) do not use php streams.


Previous Comments:
------------------------------------------------------------------------
[2010-05-19 14:50:12] mike@php.net

Reclassified.

------------------------------------------------------------------------
[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


Thread (1 message)

  • mike@php.net
  • Unknown Message
    • mike@php.net
« previous php.bugs (#150602) next »