Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42312 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55405 invoked from network); 17 Dec 2008 22:51:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Dec 2008 22:51:49 -0000 Authentication-Results: pb1.pair.com header.from=crrodriguez@suse.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=crrodriguez@suse.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain suse.de from 195.135.220.15 cause and error) X-PHP-List-Original-Sender: crrodriguez@suse.de X-Host-Fingerprint: 195.135.220.15 ns2.suse.de Linux 2.4/2.6 Received: from [195.135.220.15] ([195.135.220.15:54646] helo=mx2.suse.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 75/51-48223-38289494 for ; Wed, 17 Dec 2008 17:51:48 -0500 Received: from Relay1.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 32672483BB for ; Wed, 17 Dec 2008 23:51:44 +0100 (CET) Message-ID: <494981BD.1080206@suse.de> Date: Wed, 17 Dec 2008 19:48:29 -0300 Organization: Platform/OpenSUSE - Core Services, SUSE LINUX Products GmbH, Research & Development User-Agent: Thunderbird 2.0.0.18 (X11/20081112) MIME-Version: 1.0 To: internals@lists.php.net References: <8c35d7690812171101o12b1a5c3k7c16772004e53990@mail.gmail.com> In-Reply-To: <8c35d7690812171101o12b1a5c3k7c16772004e53990@mail.gmail.com> X-Enigmail-Version: 0.95.7 OpenPGP: id=85898BD3 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig7B7EBF50F83D0253DFDC25C8" Subject: Re: [PHP-DEV] Is Empty functionality to the Directory Functions From: crrodriguez@suse.de (=?UTF-8?B?Q3Jpc3RpYW4gUm9kcsOtZ3Vleg==?=) --------------enig7B7EBF50F83D0253DFDC25C8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable =C3=93lafur Waage escribi=C3=B3: > $dir =3D dir("/foo/bar"); > var_dump($dir->empty()); // bool(true) Use SplDirectoryIterator instead. --=20 "We have art in order not to die of the truth" - Friedrich Nietzsche Cristian Rodr=C3=ADguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/ --------------enig7B7EBF50F83D0253DFDC25C8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAklJgcAACgkQhbiInYWJi9NlCgCeJeUssvDTX6Ed/2/CddCMnGM5 ef4An2GCGlMT+Goq3rEITho9pNyzR9fn =V4Kb -----END PGP SIGNATURE----- --------------enig7B7EBF50F83D0253DFDC25C8--