Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 5, 2022. It is now read-only.

Commit 5605ede

Browse files
Merge branch '2.8' into 3.4
* 2.8: Fixed typo Fix ini_get() for boolean values
2 parents f31333b + 5694f14 commit 5605ede

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎Tests/ApcClassLoaderTest.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ApcClassLoaderTest extends TestCase
2222
{
2323
protected function setUp()
2424
{
25-
if (!(ini_get('apc.enabled')&& ini_get('apc.enable_cli'))) {
25+
if (!(filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) && filter_var(ini_get('apc.enable_cli'), FILTER_VALIDATE_BOOLEAN))) {
2626
$this->markTestSkipped('The apc extension is not enabled.');
2727
} else {
2828
apcu_clear_cache();
@@ -31,7 +31,7 @@ protected function setUp()
3131

3232
protected function tearDown()
3333
{
34-
if (ini_get('apc.enabled')&& ini_get('apc.enable_cli')) {
34+
if (filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) && filter_var(ini_get('apc.enable_cli'), FILTER_VALIDATE_BOOLEAN)) {
3535
apcu_clear_cache();
3636
}
3737
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /