[Rt-devel] [patch] RT 3.8 bug when using Fcntl perl module

Jesse Vincent jesse at bestpractical.com
Tue Feb 9 10:35:53 EST 2010


Thanks. Applied as df7a20d87c92774126ae7251c563214fc6eb82c0


On Mon  8.Feb'10 at 19:47:04 -0800, Ivan Kohler wrote:
> Hi,
> 
> I find myself having recently encountered the bug indicated here:
> 
>   http://lists.fsck.com/pipermail/rt-users/2009-September/061167.html
> 
> (including "use Fcntl;" in a script which uses the RT libraries 
> and attempts to LoadConfig() and Init() causes io error out with an 
> error: "Couldn't load RT config file RT_SiteConfig.pm: Not a SCALAR 
> reference")
> 
> The following patch to lib/RT/Config.pm should fix the problem and allow 
> use of RT libraries while Fcntl (and probably other similar modules 
> which export symbols) are loaded concurrently:
> 
> @@ -821,7 +821,7 @@
>              # XXX skip references to scalars or other references.
>              # Otherwie 5.10 goes boom. may be we should skip any
>              # reference
> -            return if ref($entry) eq 'SCALAR' || ref($entry) eq 'REF';
> +            next if ref($entry) eq 'SCALAR' || ref($entry) eq 'REF';
>              my $entry_ref = *{$entry}{ ref($ref) };
>              next unless $entry_ref;
> 
> 
> Just another happy RT user (and embedder),
> 
> -- 
> Ivan Kohler
> CTO and Head Geek, Freeside Internet Services, Inc.  http://freeside.biz/
> Open-source billing, ticketing and provisioning
> for ISPs, VoIP providers and online businesses
> _______________________________________________
> List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.bestpractical.com/pipermail/rt-devel/attachments/20100209/c9e9940b/attachment.pgp 


More information about the Rt-devel mailing list