Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

sysread() is deprecated on :utf8 handles

789 views
Skip to first unread message

Per Hamnqvist

unread,
Jul 21, 2016, 11:53:03 AM7/21/16
to support-...@lists.mozilla.org

Hi --

Just installed Bugzilla on a Windows Server. It is backed my MySQL and Apache. It relies on Strawberry Perl.

I am seeing errors to this effect in the apache log file:

Bugzilla.pm: sysread() is deprecated on :utf8 handles at C:/Strawberry/perl/site/lib/File/Slurp.pm line 225.: C:/bugzilla/index.cgi

There are many permutations of this error in the log, tracing to line 225. In the descriptions I have found, an exception is thrown in Slurp. I do not have a good feeling about the consequences of that.

I have installed File-Slurp v9999.13.

Any suggestions for what I could do to remedy this? I thought I could work-around by requesting to not use UTF-8, but it says I cannot change it since the database is MySQL.

Thanks,

>Per

Thorsten Schöning

unread,
Jul 21, 2016, 12:23:07 PM7/21/16
to support-...@lists.mozilla.org
Guten Tag Per Hamnqvist,
am Donnerstag, 21. Juli 2016 um 17:51 schrieben Sie:

> I have installed File-Slurp v9999.13.

Are you sure about the version? .13 is from 2008 and I don't see a
sysread in the mentioned line in there. Line 221 is the following
instead:

> sub write_file {

So I guess you are using a more recent version than .13. If not,
upgrading to a more recent File::Slurp or Perl altogether might be an
option.

> Any suggestions for what I could do to remedy this? I thought I
> could work-around by requesting to not use UTF-8, but it says I
> cannot change it since the database is MySQL.

I really doubt that File::Slurp is used for accessing DB contents, so
don't mess around with used encoding.

Mit freundlichen Grüßen,

Thorsten Schöning

--
Thorsten Schöning E-Mail: Thorsten....@AM-SoFT.de
AM-SoFT IT-Systeme http://www.AM-SoFT.de/

Telefon...........05151- 9468- 55
Fax...............05151- 9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow

Per Hamnqvist

unread,
Jul 21, 2016, 1:14:17 PM7/21/16
to Thorsten Schöning, support-...@lists.mozilla.org

Hi Thorsten --



>>  I have installed File-Slurp v9999.13.
>
>Are you sure about the version? .13 is from 2008 and I don't see a
>sysread in the mentioned line in there. Line 221 is the following
>instead:


You are correct. The line from checksetup.pl says:

Checking for           File-Slurp (v9999.13)  ok: found v9999.19

So it would appear as if I am using .19. That version is also what comes out as the File-Slurp version from CPAN. Not sure if any of these alternatives would work instead?

cpan> i /File-Slurp/
Database was generated on Thu, 21 Jul 2016 15:17:08 GMT

Distribution    LEONT/File-Slurp-Tiny-0.004.tar.gz
Distribution    LEONT/File-Slurper-0.008.tar.gz
Distribution    MUIR/modules/File-Slurp-Remote-0.44.tar.gz
Distribution    RCLAMP/File-Slurp-Tree-1.24.tar.gz
Distribution    SHARYANTO/File-Slurp-Shortcuts-0.05.tar.gz
Distribution    URI/File-Slurp-9999.19.tar.gz
6 items found

cpan>

Regards,

>Per

Thorsten Schöning

unread,
Jul 21, 2016, 1:37:50 PM7/21/16
to support-...@lists.mozilla.org
Guten Tag Per Hamnqvist,
am Donnerstag, 21. Juli 2016 um 19:12 schrieben Sie:

> Checking for File-Slurp (v9999.13) ok: found v9999.19
>
> So it would appear as if I am using .19. That version is also what
> comes out as the File-Slurp version from CPAN. Not sure if any of
> these alternatives would work instead?

I don't think this message comes from File::Slurp, I couldn't find it
in the source. I guess it comes directly from your Perl. So I suggest
to report a bug and just live with it for now, as I don't think things
will break. File::Slurp is surely only used for templates and such.

https://www.bugzilla.org/developers/reporting_bugs.html
https://rt.perl.org/Public/Bug/Display.html?id=125760
0 new messages