|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-05-19 14:50 UTC] mike@php.net
-Package: Systems problem
+Package: GD related
[2010-05-19 14:50 UTC] mike@php.net
[2010-05-19 14:53 UTC] mike@php.net
-Status: Open
+Status: Bogus
[2010-05-19 14:53 UTC] mike@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 21 23:00:01 2025 UTC |
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.