ID: 45832
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-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] [EMAIL PROTECTED]
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