Bug 8389

Summary: BEGIN considered harmful
Product: Koha Reporter: Jared Camins-Esakov <jcamins>
Component: Architecture, internals, and plumbingAssignee: Galen Charlton <gmcharlt>
Status: RESOLVED DUPLICATE QA Contact:
Severity: minor    
Priority: P5 - low CC: jonathan.druart
Version: Main   
Hardware: All   
OS: All   
See Also: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13275
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27246
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Jared Camins-Esakov 2012-07-09 12:22:48 UTC
Right now we are using BEGIN { } blocks in a lot of C4, including for database access in C4::Context. This means that any script that uses C4::Context, even if it doesn't actually need the database or is not being run, just compiled, will not function without a database present.
Comment 1 Jonathan Druart 2020-12-16 10:12:17 UTC
This was no longer valid.
See also related bug 27246.

*** This bug has been marked as a duplicate of bug 27246 ***