Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55764 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20279 invoked from network); 9 Oct 2011 16:04:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Oct 2011 16:04:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.170 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.160.170 mail-gy0-f170.google.com Received: from [209.85.160.170] ([209.85.160.170:51702] helo=mail-gy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 56/15-15867-426C19E4 for ; Sun, 09 Oct 2011 12:04:53 -0400 Received: by gyb11 with SMTP id 11so5488780gyb.29 for ; Sun, 09 Oct 2011 09:04:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=i+AKoad0Uhr/eBTquLj+Bmvzsf1TCPtEQ5DK5CqFuNQ=; b=ExP5k7rT4e3ZwEu0Wsr33oY3j38Boxj+qERTS5Rqyc44q6+CdnsrUQ+LcmlbIteVap CJT9uC/Cjnp4soHQwy0FyWJ+ZQxvKMzMCBvNrozY3FLFLm0nJOtRe+UWBoR+uzt6X7+l sJi/QmcDGruxzfwgtsB9s1OafNd0wpBORQs8M= MIME-Version: 1.0 Received: by 10.146.166.4 with SMTP id o4mr2962940yae.7.1318176289308; Sun, 09 Oct 2011 09:04:49 -0700 (PDT) Received: by 10.147.125.13 with HTTP; Sun, 9 Oct 2011 09:04:49 -0700 (PDT) In-Reply-To: <931345662339866278.891701harald.lapp-gmail.com@news.php.net> References: <931345662339866278.891701harald.lapp-gmail.com@news.php.net> Date: Sun, 9 Oct 2011 18:04:49 +0200 Message-ID: To: Harald Lapp Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] bug #47358 -- unexpected behaviour From: tyra3l@gmail.com (Ferenc Kovacs) Hi, My first instinct tells me, that it was closed by mistake, as from the first comment it could seem as the reported problem only happens if the path given to glob is outside of open_basedir. As the reported explained in his second comment, it is not the case, but glob returns different result for nonexistent path/pattern depending whether the open_basedir is set or not. I think that it is a bug, and I reopened the ticket. Maybe it would be a good idea to create a test case, and if it turns out to be the expected behavior, we can still add the testcase as an XFAIL. On Sun, Oct 9, 2011 at 5:40 PM, Harald Lapp wrote: > hi, > > could someone please enlighten me, why bug #47358 > http://bugs.php.net/bug.php?id=3D47358 =C2=A0was closed as "bogus"? the b= ug was > reported for 5.2.9 but applies to 5.3.x and 5.4.x as well. i can't see, w= hy > glob should return 'false' if the search pattern does not match, even > though if the directory being searched in is valid compared to the > open_basedir settings: > > php -r "var_dump(glob('/tmp/*.php'));" > array(0) { > } > > vs. > > php -d "open_basedir=3D/tmp/" -r "var_dump(glob('/tmp/*.php'));" > bool(false) > > i fail to understand, why the second one is expected behaviour. > > i stumbled over this when playing with the fat free framework, which uses > quite a lot of glob statements in its autoloader, in a shared hosting > environment. > > thanks in advance, > > harald > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu