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

Appearance settings

Commit 5a7f20a

Browse filesBrowse files
committed
Check "APCu" instead of "APC"
1 parent 29f6259 commit 5a7f20a
Copy full SHA for 5a7f20a

File tree

3 files changed

+8
-8
lines changed
Filter options

3 files changed

+8
-8
lines changed

‎src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@
214214
</div>
215215

216216
<div class="metric">
217-
<span class="value">{{ include('@WebProfiler/Icon/' ~ (collector.hasapc ? 'yes' : 'no') ~ '.svg') }}</span>
218-
<span class="label">APC</span>
217+
<span class="value">{{ include('@WebProfiler/Icon/' ~ (collector.hasapcu ? 'yes' : 'no') ~ '.svg') }}</span>
218+
<span class="label">APCu</span>
219219
</div>
220220

221221
<div class="metric">

‎src/Symfony/Component/HttpKernel/DataCollector/ConfigDataCollector.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/DataCollector/ConfigDataCollector.php
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function collect(Request $request, Response $response, \Exception $except
7171
'php_intl_locale' => \Locale::getDefault() ?: 'n/a',
7272
'php_timezone' => date_default_timezone_get(),
7373
'xdebug_enabled' => extension_loaded('xdebug'),
74-
'apc_enabled' => extension_loaded('apc') && ini_get('apc.enabled'),
74+
'apcu_enabled' => extension_loaded('apcu') && ini_get('apc.enabled'),
7575
'zend_opcache_enabled' => extension_loaded('Zend OPcache') && ini_get('opcache.enable'),
7676
'bundles' => array(),
7777
'sapi_name' => PHP_SAPI,
@@ -201,13 +201,13 @@ public function hasXDebug()
201201
}
202202

203203
/**
204-
* Returns true if APC is enabled.
204+
* Returns true if APCu is enabled.
205205
*
206-
* @return bool true if APC is enabled, false otherwise
206+
* @return bool true if APCu is enabled, false otherwise
207207
*/
208-
public function hasApc()
208+
public function hasApcu()
209209
{
210-
return $this->data['apc_enabled'];
210+
return $this->data['apcu_enabled'];
211211
}
212212

213213
/**

‎src/Symfony/Component/HttpKernel/Tests/DataCollector/ConfigDataCollectorTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/Tests/DataCollector/ConfigDataCollectorTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function testCollect()
3838
$this->assertNull($c->getToken());
3939
$this->assertSame(extension_loaded('xdebug'), $c->hasXDebug());
4040
$this->assertSame(extension_loaded('Zend OPcache') && ini_get('opcache.enable'), $c->hasZendOpcache());
41-
$this->assertSame(extension_loaded('apc') && ini_get('apc.enabled'), $c->hasApc());
41+
$this->assertSame(extension_loaded('apcu') && ini_get('apc.enabled'), $c->hasApcu());
4242
}
4343
}
4444

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.