line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package DBIx::Class::StartupCheck; |
2
|
|
|
|
|
|
|
|
3
|
380
|
|
|
380
|
|
10450
|
use strict; |
|
380
|
|
|
|
|
1248
|
|
|
380
|
|
|
|
|
11322
|
|
4
|
380
|
|
|
380
|
|
6689
|
use warnings; |
|
380
|
|
|
|
|
1292
|
|
|
380
|
|
|
|
|
13221
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
1; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
__END__ |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 NAME |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
DBIx::Class::StartupCheck - Run environment checks on startup |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 SYNOPSIS |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
use DBIx::Class::StartupCheck; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 DESCRIPTION |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
This module used to check for, and if necessary issue a warning for, a |
21
|
|
|
|
|
|
|
particular bug found on Red Hat and Fedora systems using their system |
22
|
|
|
|
|
|
|
perl build. As of September 2008 there are fixed versions of perl for |
23
|
|
|
|
|
|
|
all current Red Hat and Fedora distributions, but the old check still |
24
|
|
|
|
|
|
|
triggers, incorrectly flagging those versions of perl to be buggy. A |
25
|
|
|
|
|
|
|
more comprehensive check has been moved into the test suite in |
26
|
|
|
|
|
|
|
C<t/99rh_perl_perf_bug.t> and further information about the bug has been |
27
|
|
|
|
|
|
|
put in L<DBIx::Class::Manual::Troubleshooting>. |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
Other checks may be added from time to time. |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
Any checks herein can be disabled by setting an appropriate environment |
32
|
|
|
|
|
|
|
variable. If your system suffers from a particular bug, you will get a |
33
|
|
|
|
|
|
|
warning message on startup sent to STDERR, explaining what to do about |
34
|
|
|
|
|
|
|
it and how to suppress the message. If you don't see any messages, you |
35
|
|
|
|
|
|
|
have nothing to worry about. |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 FURTHER QUESTIONS? |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Check the list of L<additional DBIC resources|DBIx::Class/GETTING HELP/SUPPORT>. |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
This module is free software L<copyright|DBIx::Class/COPYRIGHT AND LICENSE> |
44
|
|
|
|
|
|
|
by the L<DBIx::Class (DBIC) authors|DBIx::Class/AUTHORS>. You can |
45
|
|
|
|
|
|
|
redistribute it and/or modify it under the same terms as the |
46
|
|
|
|
|
|
|
L<DBIx::Class library|DBIx::Class/COPYRIGHT AND LICENSE>. |