Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42318 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85815 invoked from network); 18 Dec 2008 01:11:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Dec 2008 01:11:32 -0000 Authentication-Results: pb1.pair.com smtp.mail=olafurw@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=olafurw@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.21 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: olafurw@gmail.com X-Host-Fingerprint: 209.85.218.21 mail-bw0-f21.google.com Received: from [209.85.218.21] ([209.85.218.21:55690] helo=mail-bw0-f21.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1D/17-48223-343A9494 for ; Wed, 17 Dec 2008 20:11:32 -0500 Received: by bwz14 with SMTP id 14so579996bwz.23 for ; Wed, 17 Dec 2008 17:11:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=JLMx2y77bO/5Wd0bsH5bGqsiyiITbbI5a7s872Z6nDI=; b=wZA6gHFtDtln0wT692wUhbe24M+0hpa4+fTXBqYy82oIsM5jq2sX50IZXc0e07SoQR +kGNLtiMgM+iIb+HTxJhrJ8HyVEAGk8npPeOAOY+cHBNfpPpZYfKNKSIDigvewE8aanO P44OoNaCmEEEWyuZkaFqk2rKEc8w/wki2gRdI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=luUe3jMvzogoHEK4nqBqhed9TU3CeDsSklbqP8kDJPiDzAGF99zaRvthusYslec+uN /kEl656lYZyB7e5nz0DRwyW4+b+0Jax6ztZtoBuY3EaiN6X0vRAOHI5LKhJria+9dTpm DNG4K3aKf2JVIWEVgJU+GEqad4oZFRo9xLqtc= Received: by 10.103.222.1 with SMTP id z1mr524152muq.121.1229562687687; Wed, 17 Dec 2008 17:11:27 -0800 (PST) Received: by 10.103.226.8 with HTTP; Wed, 17 Dec 2008 17:11:27 -0800 (PST) Message-ID: <8c35d7690812171711s434d7878t206a769833af026e@mail.gmail.com> Date: Thu, 18 Dec 2008 01:11:27 +0000 To: internals@lists.php.net In-Reply-To: <494981BD.1080206@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <8c35d7690812171101o12b1a5c3k7c16772004e53990@mail.gmail.com> <494981BD.1080206@suse.de> Subject: Re: [PHP-DEV] Is Empty functionality to the Directory Functions From: olafurw@gmail.com ("=?ISO-8859-1?Q?=D3lafur_Waage?=") Yes the SPL directory listing has more functionality but not the one i am talking about. It's not something crucial but useful while iterating through directories. Oh and I should to sit down over the holidays and write examples for the SPL Directory functions and send over to the documentation team. =D3lafur Waage olafurw@gmail.com On Wed, Dec 17, 2008 at 10:48 PM, Cristian Rodr=EDguez wrote: > =D3lafur Waage escribi=F3: > >> $dir =3D dir("/foo/bar"); >> var_dump($dir->empty()); // bool(true) > > Use SplDirectoryIterator instead. > > > -- > "We have art in order not to die of the truth" - Friedrich Nietzsche > > Cristian Rodr=EDguez R. > Platform/OpenSUSE - Core Services > SUSE LINUX Products GmbH > Research & Development > http://www.opensuse.org/ > > >