develooper Front page | perl.perl5.porters | Postings from August 2006

Re: [perl #8244] *FILE{IO} does not behave like *FILE for stat()and -X() operators

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
August 10, 2006 02:47
Subject:
Re: [perl #8244] *FILE{IO} does not behave like *FILE for stat()and -X() operators
Message ID:
20060810114742.12a22fa4@grubert.mandriva.com
Andrew Dougherty wrote:
> The following test script (stripped down from t/op/stat.t) illustrates the 
> problem.  It currently core dumps at the XXX line while trying to warn 
> "lstat() on filehandle %s", GvENAME(gv), and dumps core since gv is NULL.  
> I haven't dug deeply enough to decide whether to just beef up the warning 
> message (and the corresponding perldiag entry) or whether there's some way 
> to make some more useful information available.

Not seeing an obvious way to get more useful information, I've for now
plugged the hole by change #28690:

-                       "lstat() on filehandle %s", GvENAME(gv));
+                       "lstat() on filehandle %s", gv ? GvENAME(gv) : "");


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About