]> git.koha-community.org Git - koha.git/commit
Bug 10644: (follow-up) remove inadvertant dependence on Perl 5.14
authorGalen Charlton <gmc@esilibrary.com>
Fri, 9 Aug 2013 18:53:20 +0000 (18:53 +0000)
committerChris Hall <followingthepath@gmail.com>
Tue, 17 Sep 2013 07:57:20 +0000 (19:57 +1200)
commitdbaef6ae87df0debe5fd1a1ce7653ab2bdb17a9b
treef4e3f3611ba525f60a657299693caf2d748641c2
parent662e43c91f6fd625c2b80acd0bfb33c6ea5bcc89
Bug 10644: (follow-up) remove inadvertant dependence on Perl 5.14

Perl 5.14 changed array and hash container functions (e.g., keys())
to accept hashrefs or arrayrefs.  However, this doesn't work in
Perl 5.10, so doing

  scalar(keys( function_returning_hashref() ) );

is a syntax error in that version.  This patch changes the affected
tests to explicitly difference the hashrefs returned by the various
functions.

To test:

Verify that t/db_dependent/ClassSource.t passes.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 8f933bc040e8e4198f5278253191a7a4233467ce)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 9504e00f7b497aa8e49567ca99cf73f7c32ad134)
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
(cherry picked from commit 9504e00f7b497aa8e49567ca99cf73f7c32ad134)
Signed-off-by: Chris Hall <followingthepath@gmail.com>
(cherry picked from commit 4e474580b16024d6a6afc36bf220ebab034cb26a)
t/db_dependent/ClassSource.t