go to bug id or search bugs for
in ext/gd.c ext/gd_ctx.c
(PG(safe_mode) && !php_checkuid(fn, "rb+",
should be :
(PG(safe_mode) && !php_checkuid(fn, "wb+",
because with "rb+" it's impossible to create a new file
with imagepng,imagejpeg, etc ....
("r" change mode from CHECKUID_CHECK_FILE_AND_DIR to
Add a Patch
Add a Pull Request
This is the same issue covered in bug #35060 (though you do suggest a potential fix). email@example.com claims this is a documentation problem, not a bug.
Fixed in HEAD and PHP_5_1 branches.
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.