Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > #35071 : Safe mode restrictions: "rb+" should be "wb+"
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 20th April 21:37
External User
 
Posts: 1
Default #35071 : Safe mode restrictions: "rb+" should be "wb+"


ID: 35071
Updated by: sniper@php.net
Reported By: webmaster at iksaif dot net
-Status: Open
+Status: Closed
Bug Type: GD related
Operating System: *
PHP Version: 4.4.1
New Comment:

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
http://snaps.php.net/.

Thank you for the report, and for helping us make PHP better.


Previous Comments:
------------------------------------------------------------------------

[2005-11-02 22:28:05] sniper@php.net

Fixed in HEAD and PHP_5_1 branches.


------------------------------------------------------------------------

[2005-11-02 21:25:19] moron at industrial dot org

This is the same issue covered in bug #35060 (though you do suggest a
potential fix). sniper@php.net claims this is a do***entation problem,
not a bug.

------------------------------------------------------------------------

[2005-11-02 21:04:17] webmaster at iksaif dot net

Description:
------------
in ext/gd.c ext/gd_ctx.c
(PG(safe_mode) && !php_checkuid(fn, "rb+",
CHECKUID_CHECK_FILE_AND_DIR)))
should be :
(PG(safe_mode) && !php_checkuid(fn, "wb+",
CHECKUID_CHECK_FILE_AND_DIR)))
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
CHECKUID_DISALLOW_FILE_NOT_EXISTS).

------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=35071&edit=1
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666