Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42304 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99379 invoked from network); 17 Dec 2008 19:01:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Dec 2008 19:01:22 -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:42081] helo=mail-bw0-f21.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 58/62-19668-08C49494 for ; Wed, 17 Dec 2008 14:01:21 -0500 Received: by bwz14 with SMTP id 14so133505bwz.23 for ; Wed, 17 Dec 2008 11:01:17 -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:mime-version:content-type:content-transfer-encoding :content-disposition; bh=oYaTmA+RXYRRYoARWQAWlDkuEpRrVlZ87BUSNqK/7Z0=; b=Ei/yVe3N+F2l0mp7VOso2gKiM3W1xoiWF28dXLhXMj4fs0LvC5ZzMVuSMPKQ9tkI+u dKNKSZkeB0zjyPfTivfIP06Xqmo5fSrsgeZNKpSDbwlAtvZOgeKVJhVx2NTcAYP4ojP9 iZF8RYGi+ZUSOAp+uk6btJFtV9/fTvJnHupp0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=q+zVgNeRkACnNaqqCj8LsEVes4XzrTf9g2HDdwE5K1Hq5TlkfIoEN6Vzt4iDZON4e8 3NS05mdeJKWPrUVU00jnbcBHK9x2vJkt2jiOdV44p9VGU8GbDa3aKLAEVJF85vJInsou bTfbBj34H/1lpCxARku6yMqBrjW/kIZNnkoH4= Received: by 10.103.252.5 with SMTP id e5mr401041mus.54.1229540477402; Wed, 17 Dec 2008 11:01:17 -0800 (PST) Received: by 10.103.226.8 with HTTP; Wed, 17 Dec 2008 11:01:17 -0800 (PST) Message-ID: <8c35d7690812171101o12b1a5c3k7c16772004e53990@mail.gmail.com> Date: Wed, 17 Dec 2008 19:01:17 +0000 To: internals@lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Is Empty functionality to the Directory Functions From: olafurw@gmail.com ("=?ISO-8859-1?Q?=D3lafur_Waage?=") This is my 1st suggestion to the internals :) Anywho, there has been some discussion in the is_dir() comments on php.net (http://is.php.net/manual/en/function.is-dir.php) about a function that returns bool if a directory is empty or not. Just throwing it out there if it should be implemented to the current list of Directory Functions. $dir =3D dir("/foo/bar"); var_dump($dir->empty()); // bool(true) =D3lafur Waage olafurw@gmail.com