|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-08-15 15:27 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 12:00:01 2025 UTC |
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