On Sat, Nov 01, 2003 at 10:05:42PM -0800, Michael G Schwern wrote:
the directory's contents happened to have a true value at the end? will require be sucessful? Shouldn't it test that the file it's going to read is actually a file?
There was just a big umm, thread on this earlier, but I don't think it was noticed that require() effected. Yeah, it probably should check that its a file.
I'd rather that it checked it was not a directory (S_IFDIR, and not a block special device: S_IFBLK).
People can do funky things with named pipes and sockets and char devices. We shouldn't be stopping them.
I've filed a bug-report including Tim's followup.
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
