modperl-perl.5.6_breaks_readddir

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



To: dougm@pobox.com
From: Lincoln Stein <lstein@cshl.org>
Subject: readdir()
Date: Wed, 25 Apr 2001 17:42:50 -0400 (EDT)

Hi Doug,

Perl 5.6.0 breaks the readdir() function when running under mod_perl.
This is with the most recent versions of Apache and mod_perl, as well
as with older versions.  I see the same problem reported in the
mailing list going back to December 2000, but no hint of a
resolution.  Is there any fix?

Lincoln

====

To: Mathew Hennessy <hennessy@thoughtcrime.com>
From: Stas Bekman <stas@stason.org>
Subject: Re: readdir()
Date: Thu, 26 Apr 2001 12:59:00 +0800 (SGT)

On Thu, 26 Apr 2001, Mathew Hennessy wrote:

> Hi,
> 	I'm also experiencing issues using readdir() under mod_perl
> v1.25/apache 1.3.19 on a perl 5.6.1 system freshly compiled in RH7.1 +
> gcc 2.96/glibc 2.2.  I _can_ get correct behavior when running readdir()
> in perl -e on the command line, but when run thru mod_perl/apache it
> returns null/empty.  It's strange: I keep trying to run finds against
> the  mod_perl and apache source code to detect readdir, and I get hardly
> anything useful..  I wonder where the breakdown is :p
>
> 	A temporary workaround is to shell out and do a find -maxdepth 1,
> but that's unworkable for anything beyond my own toy use :p..

use glob() or the diamond operator <*>, the suggested workarounds in the
two threads from the past (see the archives).

Of course this should be resolved.

===


the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu