Categories: everyday life

Is that a bug?

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.

o6asan

Recent Posts

How to enable Hyper-V and run Windows 7 on Amazon’s cheap laptop.

The laptop mentioned previous article successfully became 24H2. The touchpad was risen because the battery…

1 week ago

Upgrade Amazon’s cheap laptop to Windows 11 PRO 24H2.

I had a cheap laptop from Amazon and had used it to watch streaming programs…

3 weeks ago

Very easy, sweet potato yōkan recipe.

The recipe for sweet potato yōkan that I often made this fall. Ingredients Sweet potato…

2 years ago

On my home network, I’ve built an FTP server that I left for long time.

After a long time, when I checked broken links and fixed them, I got an…

4 years ago

Moving “o6asan’s BBS”.-#2

I made a box, so I prepare the contents. Theme and Plugins. The theme is…

4 years ago

Moving “o6asan’s BBS”.

Hehe, it's been almost a year since my last post. I received a notification email…

4 years ago

This website uses cookies.