Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:2070 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59439 invoked from network); 28 May 2003 17:30:12 -0000 Received: from unknown (HELO server.pyrenet.fr) (194.250.190.1) by pb1.pair.com with SMTP; 28 May 2003 17:30:12 -0000 Received: from localhost (localhost [127.0.0.1]) by localhost.pyrenet.fr (Postfix) with ESMTP id 44A7427582; Wed, 28 May 2003 19:30:12 +0200 (MET DST) Received: from server.pyrenet.fr ([127.0.0.1]) by localhost (server [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17192-03; Wed, 28 May 2003 19:29:50 +0200 (MET DST) Received: from server.pyrenet.fr (server.pyrenet.fr [194.250.190.1]) by server.pyrenet.fr (Postfix) with ESMTP id 4B225218DE; Wed, 28 May 2003 19:29:50 +0200 (MET DST) Date: Wed, 28 May 2003 19:29:50 +0200 (MET DST) Reply-To: ohp@pyrenet.fr To: Wez Furlong Cc: PHP developpers In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new Subject: Re: [PHP-DEV] fopen bug (fwd) From: ohp@pyrenet.fr Done, Hope someone will have a look. Regards On Wed, 28 May 2003, Wez Furlong wrote: > Date: Wed, 28 May 2003 15:01:28 +0100 (BST) > From: Wez Furlong > To: ohp@pyrenet.fr > Cc: PHP developpers > Subject: Re: [PHP-DEV] fopen bug (fwd) > > 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 > > > > > > > -- 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)