Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28500 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14259 invoked by uid 1010); 20 Mar 2007 21:09:26 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 14244 invoked from network); 20 Mar 2007 21:09:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Mar 2007 21:09:26 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 66.249.92.168 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 66.249.92.168 ug-out-1314.google.com Linux 2.4/2.6 Received: from [66.249.92.168] ([66.249.92.168:20470] helo=ug-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6A/CA-21779-48D40064 for ; Tue, 20 Mar 2007 16:09:25 -0500 Received: by ug-out-1314.google.com with SMTP id o4so11665uge for ; Tue, 20 Mar 2007 14:09:10 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=qpwRlIei/ubht+YFi9J4e1oFoOiq/QwSyuYcCkoF+SvibNB4xSfR9ZuEtcqW3hWMOy6KLRswK5OCpfYoz8aK1uoa6bunXQx4hbPFWaX3iQBmXTpq+XFj4GNInpDIGahN/eLevbXFpR54f5ed9pUH8QCK2VfnbuUA07LNpZ3GMXs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=md6PO92oDEaT0YZq46mdOF2iWf0bKx5udGkmIGtRxSjKICYJOIr5xuLPnp6bpElIILqWqVZSMdwEGyx9/W8FS/gMiCl5vamOT4idMBbNiteR/mxaLywLbKbFWom9uf+BPKXBEZ05JSbHE3ke84AF/q/iMO9VU0SclaMvx//F7MY= Received: by 10.64.27.13 with SMTP id a13mr27816qba.1174424949707; Tue, 20 Mar 2007 14:09:09 -0700 (PDT) Received: by 10.114.181.10 with HTTP; Tue, 20 Mar 2007 14:08:49 -0700 (PDT) Message-ID: Date: Tue, 20 Mar 2007 22:08:49 +0100 To: "PHP Developers Mailing List" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: safemode, php_stream_open_wrapper does not respect REPORT_ERRORS From: pierre.php@gmail.com (Pierre) Hi, While fixing PECL Bug #10426, we found that php_checkuid_ex forces CHECKUID_DISALLOW_FILE_NOT_EXISTS in read mode. As php_stream_open_wrapper uses this functions, it is not possible to call it using a non existing file without getting a warning when safe_mode is On. The related code is main/safemode.c:70 : if (fopen_mode) { if (fopen_mode[0] == 'r') { mode = CHECKUID_DISALLOW_FILE_NOT_EXISTS; } else { mode = CHECKUID_CHECK_FILE_AND_DIR; } } Any reason behind this check or should we drop it? Thanks, --Pierre