Skip to content

Commit 861f03f

Browse files
committed
Remove inherited_hack as it is ignored since PHP 5.3
1 parent dc1ac9a commit 861f03f

11 files changed

Lines changed: 3 additions & 18 deletions

File tree

src/OpCacheGUI/OpCache/Configuration.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ public function getIniDirectives()
5757

5858
$directives['opcache.memory_consumption'] = $this->byteFormatter->format($directives['opcache.memory_consumption']);
5959

60+
unset($directives['opcache.inherited_hack']);
61+
6062
return $directives;
6163
}
6264

template/configuration.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<?php foreach ($config->getIniDirectives() as $key => $directiveItem) { ?>
1212
<tr>
1313
<td><?= $this->translator->translate('config.' . $key); ?></td>
14-
<?php if (in_array($key, ['opcache.enable', 'opcache.enable_cli', 'opcache.use_cwd', 'opcache.validate_timestamps', 'opcache.inherited_hack', 'opcache.dups_fix', 'opcache.revalidate_path', 'opcache.save_comments', 'opcache.fast_shutdown', 'opcache.enable_file_override'])) { ?>
14+
<?php if (in_array($key, ['opcache.enable', 'opcache.enable_cli', 'opcache.use_cwd', 'opcache.validate_timestamps', 'opcache.dups_fix', 'opcache.revalidate_path', 'opcache.save_comments', 'opcache.fast_shutdown', 'opcache.enable_file_override'])) { ?>
1515
<td><span class="<?= $directiveItem ? 'g' : 'r'; ?>s"></span></td>
1616
<?php } else { ?>
1717
<td><?= htmlspecialchars($directiveItem); ?></td>

test/Unit/OpCache/ConfigurationTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ protected function setUp()
1818
'opcache.enable_cli' => false,
1919
'opcache.use_cwd' => true,
2020
'opcache.validate_timestamps' => true,
21-
'opcache.inherited_hack' => true,
2221
'opcache.dups_fix' => false,
2322
'opcache.revalidate_path' => false,
2423
'opcache.log_verbosity_level' => 1,

texts/da.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@
5555
'config.opcache.use_cwd.description' => 'Når dette direktiv er aktiveret, føjer OPcache den nuværende arbejdsmappe til script nøglen, dermed fjernes eventuelle kollisioner mellem filer med samme navn (basenavn). Deaktivering af direktivet forbedrer ydeevenen, men kan knække eksisterende applikationer.',
5656
'config.opcache.validate_timestamps' => 'Godkend tidsstempler',
5757
'config.opcache.validate_timestamps.description' => 'Hvis deaktiveret, skal du manuelt nulstille eller genstarte webserveren før ændringer i filsystemet træder i kraft.',
58-
'config.opcache.inherited_hack' => 'Nedarvet hack',
59-
'config.opcache.inherited_hack.description' => '',
6058
'config.opcache.dups_fix' => 'Dups fix',
6159
'config.opcache.dups_fix.description' => '',
6260
'config.opcache.revalidate_path' => 'Revalider sti',

texts/de.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@
5555
'config.opcache.use_cwd.description' => 'Wenn diese Einstellung gesetzt ist, ergänzt der OPcache den Datei-Schlüssel (basename) um das aktuelle Arbeitsverzeichnis und verhindert so eventuelle Konflikte bei gleichnamigen Dateien. Das Deaktivieren dieser Einstellung verbessert die Performance, kann aber zu Problemen mit bestehenden Anwendungen führen.',
5656
'config.opcache.validate_timestamps' => 'validate_timestamps',
5757
'config.opcache.validate_timestamps.description' => 'Ist diese Einstellung deaktiviert, muss der OPcache manuell oder über einen Neustart des Webservers zurückgesetzt werden, damit Änderungen auf Dateiebene erkannt werden.',
58-
'config.opcache.inherited_hack' => 'inherited_hack',
59-
'config.opcache.inherited_hack.description' => 'Nicht mehr verwendet seit PHP 5.3.',
6058
'config.opcache.dups_fix' => 'dups_fix',
6159
'config.opcache.dups_fix.description' => 'Sollte nur aktiviert werden um "Cannot redeclare class"-Fehler zu umgehen.',
6260
'config.opcache.revalidate_path' => 'revalidate_path',

texts/en.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@
5555
'config.opcache.use_cwd.description' => 'When this directive is enabled, the OPcache appends the current working directory to the script key, thus eliminating possible collisions between files with the same name (basename). Disabling the directive improves performance, but may break existing applications.',
5656
'config.opcache.validate_timestamps' => 'Validate timestamps',
5757
'config.opcache.validate_timestamps.description' => 'When disabled, you must reset the OPcache manually or restart the webserver for changes to the filesystem to take effect.',
58-
'config.opcache.inherited_hack' => 'Inherited hack',
59-
'config.opcache.inherited_hack.description' => '',
6058
'config.opcache.dups_fix' => 'Dups fix',
6159
'config.opcache.dups_fix.description' => '',
6260
'config.opcache.revalidate_path' => 'Revalidate path',

texts/es.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@
5555
'config.opcache.use_cwd.description' => 'Cuando esta directiva está habilitada, OPcache agrega el directorio actual a la llave del script,eliminando asi posibles problemas por nombres repetidos. El deshabilitar esta opción mejora el rendimiento pero puede afectar aplicaciones existentes.',
5656
'config.opcache.validate_timestamps' => 'Validar timestamps',
5757
'config.opcache.validate_timestamps.description' => 'Cuando se deshabilita, debe reiniciar el OPcache manualmente o reiniciar el webserver para ver los cambios en el sistema de archivos',
58-
'config.opcache.inherited_hack' => 'Hack heredado',
59-
'config.opcache.inherited_hack.description' => '',
6058
'config.opcache.dups_fix' => 'Arreglo de Dups',
6159
'config.opcache.dups_fix.description' => '',
6260
'config.opcache.revalidate_path' => 'Revalidar ruta',

texts/fr.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@
5555
'config.opcache.use_cwd.description' => 'Lorsque cette directive est activée, OpCache ajoute le répertoire de travail courant à la clé de script, éliminant ainsi les collisions possibles entre les fichiers portant le même nom (basename). Désactiver la directive améliore les performances, mais peut briser les applications existantes.',
5656
'config.opcache.validate_timestamps' => 'Valider les timestamps',
5757
'config.opcache.validate_timestamps.description' => 'Lorsque désactivé, vous devez réinitialiser OpCache manuellement ou redémarrer le serveur Web pour que les modifications du système de fichiers prennent effet.',
58-
'config.opcache.inherited_hack' => 'Hack hérité',
59-
'config.opcache.inherited_hack.description' => '',
6058
'config.opcache.dups_fix' => 'Dups fix',
6159
'config.opcache.dups_fix.description' => '',
6260
'config.opcache.revalidate_path' => 'Re-valider le chemin',

texts/it.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@
5555
'config.opcache.use_cwd.description' => 'Quando questa direttiva è abilitata, OPCache utilizza la directory di lavoro corrente (CWD) come namespace delle key. Disabilitare questa direttiva migliora le prestazioni, ma può corrompere applicazioni esistenti.',
5656
'config.opcache.validate_timestamps' => 'Valida i timestamp',
5757
'config.opcache.validate_timestamps.description' => 'Quando disabilitata, dovrai invalidare la cache manualmente (o riavviare il webserver) per applicare i cambiamenti. Quando abilitata, i cambiamenti verranno rilevati automaticamente.',
58-
'config.opcache.inherited_hack' => 'Inherited hack', // ???
59-
'config.opcache.inherited_hack.description' => '',
6058
'config.opcache.dups_fix' => 'Dups fix', // ???
6159
'config.opcache.dups_fix.description' => '',
6260
'config.opcache.revalidate_path' => 'Ri-valida percorsi',

texts/nl.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@
5555
'config.opcache.use_cwd.description' => 'Indien deze waarde aan staat zal OPcache de huidige werk map toevoegen aan de sleutel van scripts. Dit voorkomt dat scripts met dezelfde naam in andere mappen elkaar overschrijven. Uitschakelen van deze optie verbeterd de prestatie, maar kan huidige applicatie breken.',
5656
'config.opcache.validate_timestamps' => 'Valideer tijstempels',
5757
'config.opcache.validate_timestamps.description' => 'Indien uitgeschakeld moet OPcache of de webserver handmatig herstart worden om wijzigen aan bestanden effect te laten hebben.',
58-
'config.opcache.inherited_hack' => 'Inherited hack',
59-
'config.opcache.inherited_hack.description' => '',
6058
'config.opcache.dups_fix' => 'Duplicaten fix',
6159
'config.opcache.dups_fix.description' => '',
6260
'config.opcache.revalidate_path' => 'Valideer pad',

0 commit comments

Comments
 (0)