[2010/09] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

Is that a bug?

2010.09.27(Mon)

After I updated “Apache, Perl, Mysql, and ImageMagick” last time, I have had errors “defined(%hash) is deprecated at ./lib/./lib/jcode.pl line xxx” and “(Maybe you should just omit the defined()?)” on the Apache error.log.

Though I thought it depends on the Perl’s version, I felt some strange because I could not find any information on the net. But tonight I found out the below finally.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6392

So, I changed two lines of jcode.pl.
Line 684    &init_z2h_euc unless defined %z2h_euc;
                                   —–>>     &init_z2h_euc unless %z2h_euc;
Line 693    &init_z2h_sjis unless defined %z2h_sjis;
                                   —–>>      &init_z2h_sjis unless %z2h_sjis;

I also did DBD.pm and Maketext.pm.
Line 14     unless (defined %{“${subclass}::”}) {
                                   —–>>      unless (%{“${subclass}::”}) {
Line 404   if defined(%{$module . ‘::Lexicon’}) or defined(@{$module . ‘::ISA’});
                                   —–>>      if (%{$module . ‘::Lexicon’}) or (@{$module . ‘::ISA’});

These had no problems with the old perl, but the new one might become strict about them.

 


 

 Similar Posts:

Leave a comment

Until 24 hours, you can edit your comment from the same browser if the same PC.
But, within 24 hours, the comment will be uneditable when it has any newer comments.