Skip to content

Commit 85a5eb2

Browse files
committed
opcache: Fix typo in warning message
1 parent fb1f245 commit 85a5eb2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

ext/opcache/tests/opcache_enable_noop_001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ Should not warn:
2121
Disabling:
2222
Should warn:
2323

24-
Warning: Zend OPcache can't be temporary enabled (it may be only disabled till the end of request) in %s on line %d
24+
Warning: Zend OPcache can't be temporarily enabled (it may be only disabled till the end of request) in %s on line %d

ext/opcache/zend_accelerator_module.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ static ZEND_INI_MH(OnEnable)
159159
stage == ZEND_INI_STAGE_DEACTIVATE) {
160160
return OnUpdateBool(entry, new_value, mh_arg1, mh_arg2, mh_arg3, stage);
161161
} else {
162-
/* It may be only temporary disabled */
162+
/* It may be only temporarily disabled */
163163
bool *p = (bool *) ZEND_INI_GET_ADDR();
164164
if (zend_ini_parse_bool(new_value)) {
165165
if (*p) {
@@ -169,12 +169,12 @@ static ZEND_INI_MH(OnEnable)
169169

170170
if (stage == ZEND_INI_STAGE_ACTIVATE) {
171171
if (strcmp(sapi_module.name, "fpm-fcgi") == 0) {
172-
zend_accel_error(ACCEL_LOG_WARNING, ACCELERATOR_PRODUCT_NAME " can't be temporary enabled. Are you using php_admin_value[opcache.enable]=1 in an individual pool's configuration?");
172+
zend_accel_error(ACCEL_LOG_WARNING, ACCELERATOR_PRODUCT_NAME " can't be temporarily enabled. Are you using php_admin_value[opcache.enable]=1 in an individual pool's configuration?");
173173
} else {
174-
zend_accel_error(ACCEL_LOG_WARNING, ACCELERATOR_PRODUCT_NAME " can't be temporary enabled (it may be only disabled till the end of request)");
174+
zend_accel_error(ACCEL_LOG_WARNING, ACCELERATOR_PRODUCT_NAME " can't be temporarily enabled (it may be only disabled till the end of request)");
175175
}
176176
} else {
177-
zend_error(E_WARNING, ACCELERATOR_PRODUCT_NAME " can't be temporary enabled (it may be only disabled till the end of request)");
177+
zend_error(E_WARNING, ACCELERATOR_PRODUCT_NAME " can't be temporarily enabled (it may be only disabled till the end of request)");
178178
}
179179
return FAILURE;
180180
} else {

sapi/fpm/tests/opcache_enable_admin_value.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ $tester->start(iniEntries: [
3232
'opcache.log_verbosity_level' => '2',
3333
]);
3434
$tester->expectLogStartNotices();
35-
$tester->expectLogPattern("/Zend OPcache can't be temporary enabled. Are you using php_admin_value\\[opcache.enable\\]=1 in an individual pool's configuration?/");
35+
$tester->expectLogPattern("/Zend OPcache can't be temporarily enabled. Are you using php_admin_value\\[opcache.enable\\]=1 in an individual pool's configuration?/");
3636
echo $tester
3737
->request()
3838
->getBody();

0 commit comments

Comments
 (0)