[patch] safe mode gid check

From: Date: Mon, 09 Jul 2001 15:33:48 +0000
Subject: [patch] safe mode gid check
Groups: php.dev 
Request: Send a blank email to php-dev+get-59330@lists.php.net to get a copy of this message
This is a patch against php-4.0.4pl1.

Description:
  In Safe Mode, when opening files the UID of the script
owner and the UID of the destination file are compared. In
some circumstances it is desired that this check be relaxed
to a GID compare. The attached patch adds a php ini
directive "safe_mode_gid" (boolean, default: Off). When
this is On, a GID compare is performed if the UID compare
fails.
  Additionally this patch adds a new PHP function
getmygid(), which returns the GID of the executing script
(see getmyuid()).

Author:
  James Flemer <jflemer@zoo.uvm.edu>
  CITS / Web Developer
  The University of Vermont

[ Please CC me in all replies, I am not subscribed to the list. ]

Thanks,
-James


Thread (4 messages)

« previous php.dev (#59330) next »