#45832 [Opn->Bgs]: Unable to write to user-defined stream by imagejpeg()
| From: | jani@php.net | Date: | Fri, 15 Aug 2008 15:27:16 +0000 |
| Subject: | #45832 [Opn->Bgs]: Unable to write to user-defined stream by imagejpeg() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-128105@lists.php.net to get a copy of this message | ||
ID: 45832
Updated by: jani@php.net
Reported By: vrana@php.net
-Status: Open
+Status: Bogus
Bug Type: GD related
Operating System: Windows
PHP Version: 5.2.6
New Comment:
See bug #39263
Previous Comments:
------------------------------------------------------------------------
[2008-08-15 12:31:55] vrana@php.net
Description:
------------
Function imagejpeg() is not able to write to the user-defined stream.
[I think it is caused by the fact that _php_image_output_ctx() uses
VCWD_FOPEN() instead of php_stream_open_wrapper() - but I'm not an
expert.]
Reproduce code:
---------------
imagejpeg(imagecreatefromjpeg("x.jpg"), "var://myvar");
"var" protocol defined as an example in
http://www.php.net/stream_wrapper_register
Expected result:
----------------
Image successfully copied to the variable.
Actual result:
--------------
Warning: imagejpeg(): Unable to open 'var://myvar' for writing: Invalid
argument
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45832&edit=1