[Koha-bugs] [Bug 20727] Replace usage of File::Spec->tmpdir with C4::Context->temporary_directory

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 18 01:58:10 CEST 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20727

David Cook <dcook at prosentient.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dcook at prosentient.com.au

--- Comment #25 from David Cook <dcook at prosentient.com.au> ---
When I run "perl -c C4/Auth.pm", I get the following:

dcook at kohaprod:/kohawebs/dev/dcook/git> perl -c C4/Auth.pm
Subroutine psgi_env redefined at C4/Auth.pm line 50.
Subroutine safe_exit redefined at C4/Auth.pm line 52.
Subroutine get_template_and_user redefined at C4/Auth.pm line 142.
Subroutine _version_check redefined at C4/Auth.pm line 715.
Subroutine _session_log redefined at C4/Auth.pm line 761.
Subroutine _timeout_syspref redefined at C4/Auth.pm line 768.
Subroutine checkauth redefined at C4/Auth.pm line 778.
Subroutine check_api_auth redefined at C4/Auth.pm line 1387.
Subroutine check_cookie_auth redefined at C4/Auth.pm line 1629.
Bareword "C4::Context::temporary_directory" not allowed while "strict subs" in
use at C4/Auth.pm line 1750.
BEGIN not safe after errors--compilation aborted at C4/Auth.pm line 1928.

If I change "C4::Context::temporary_directory" to
"C4::Context::temporary_directory()", that error goes away and compilation is
fine.

I'm guessing no one else has experienced this?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list