Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:2066 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60777 invoked from network); 28 May 2003 14:01:32 -0000 Received: from unknown (HELO secure.thebrainroom.com) (213.239.42.171) by pb1.pair.com with SMTP; 28 May 2003 14:01:32 -0000 Received: from zaneeb.brainnet.i (IDENT:root@brain.dial.nildram.co.uk [195.149.29.154]) by secure.thebrainroom.com (8.9.3/8.9.3) with ESMTP id PAA18552; Wed, 28 May 2003 15:01:27 +0100 Received: from zaneeb.brainnet.i (IDENT:wez@zaneeb.brainnet.i [127.0.0.1]) by zaneeb.brainnet.i (8.11.6/8.11.6) with ESMTP id h4SE1S808895; Wed, 28 May 2003 15:01:28 +0100 Date: Wed, 28 May 2003 15:01:28 +0100 (BST) X-X-Sender: wez@zaneeb.brainnet.i To: ohp@pyrenet.fr cc: PHP developpers In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] fopen bug (fwd) From: wez@thebrainroom.com (Wez Furlong) Please paste the patch into your bug report and someone will look at including it in 4.3.3 or 4.4 or whatever the next release will be (too late for this to be in 4.3.2). --Wez. On Wed, 28 May 2003 ohp@pyrenet.fr wrote: > This a resent of my yesterday message (can't remember if I got it myself) > Could one of the developpers help me with this patch I'm not so sure > about. > > I'm willing to help on this long standing bug. > > Regards, > > -- > Olivier PRENANT Tel: +33-5-61-50-97-00 (Work) > Quartier d'Harraud Turrou +33-5-61-50-97-01 (Fax) > 31190 AUTERIVE +33-6-07-63-80-64 (GSM) > FRANCE Email: ohp@pyrenet.fr > ------------------------------------------------------------------------------ > Make your life a dream, make your dream a reality. (St Exupery) > > ---------- Forwarded message ---------- > Date: Tue, 27 May 2003 16:52:11 +0200 (MET DST) > From: ohp@pyrenet.fr > To: PHP developpers > Subject: fopen bug > > Hi everey one. > > I've been hit by the fopen bug 21958 very badly so I decided to have a > look and came with this pch against 4.3.2RC4 safe_mode.c > > Problem is no matter the permissions, you can't create a file with fopen > uner safe_mode on > My system is unixware 7.3.1 and php is an apache 1.3.27 module. > > Can someone review this and tell me if it's ok. (it works for me) > > *** main/safe_mode.c.orig lun mrs 17 14:50:23 2003 > --- main/safe_mode.c mar mai 27 15:06:30 2003 > *************** > *** 66,71 **** > --- 66,72 ---- > mode = CHECKUID_DISALLOW_FILE_NOT_EXISTS; > } else { > mode = CHECKUID_CHECK_FILE_AND_DIR; > + flags=1; > } > } > > *************** > *** 81,86 **** > --- 82,88 ---- > * If that fails, passthrough and check directory... > */ > if (mode != CHECKUID_ALLOW_ONLY_DIR) { > + strcpy(path,filename); > VCWD_REALPATH(filename, path); > ret = VCWD_STAT(path, &sb); > if (ret < 0) { > > TIA > -- > Olivier PRENANT Tel: +33-5-61-50-97-00 (Work) > Quartier d'Harraud Turrou +33-5-61-50-97-01 (Fax) > 31190 AUTERIVE +33-6-07-63-80-64 (GSM) > FRANCE Email: ohp@pyrenet.fr > ------------------------------------------------------------------------------ > Make your life a dream, make your dream a reality. (St Exupery) > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > >