Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8905 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67261 invoked by uid 1010); 3 Apr 2004 01:30:15 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 67068 invoked from network); 3 Apr 2004 01:30:14 -0000 Received: from unknown (HELO pigeon.alphaweb.net) (64.142.6.229) by pb1.pair.com with SMTP; 3 Apr 2004 01:30:14 -0000 Received: from alphaweb.net ([64.142.6.229] helo=basillica) by pigeon.alphaweb.net with smtp (Exim 4.10) id 1B9b02-0000hR-00; Fri, 02 Apr 2004 18:35:10 -0800 Message-ID: <002501c4191b$534c0980$de00000a@alphaweb.net> To: "Luna Kid" Cc: References: <20040402235607.94267.qmail@pb1.pair.com> Date: Fri, 2 Apr 2004 17:30:59 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: Re: is_readable stricter than it should be (PHP5 only?) From: pollita@php.net ("Sara Golemon") stat() (of which is_readable() is a variant) was refactored slightly with PHP5. Take a look at the output of stat($sRealPath) and the user/group that the webserver is running as. It'll also help to know what OS/webserver/sapi is being used. -Sara ----- Original Message ----- From: "Luna Kid" Newsgroups: php.internals To: Sent: Friday, April 02, 2004 3:56 PM Subject: is_readable stricter than it should be (PHP5 only?) > Tampering with a coWiki (www.cowiki.org) plugin, I noticed that > is_readable() returns false, when PHP actually *can* read the file. > (Just commented out an "if (!is_readable($sRealPath))" and then > all went fine, the plugin now can read the files...) > > Is there a known reason for or has anoyone bumped into this? (Just > asking so I can decide if I should put some efforts to investigating > this.) > > Thanks, > Sz.