Skip to content

Commit 05875bc

Browse files
committed
Improved error messages
1 parent 800edcc commit 05875bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3592,7 +3592,7 @@ static zend_persistent_script* preload_script_in_shared_memory(zend_persistent_s
35923592
uint32_t checkpoint;
35933593

35943594
if (zend_accel_hash_is_full(&ZCSG(hash))) {
3595-
zend_accel_error(ACCEL_LOG_FATAL, "Not enough entries in hash table for preloading!");
3595+
zend_accel_error(ACCEL_LOG_FATAL, "Not enough entries in hash table for preloading. Consider increasing the value for the opcache.max_accelerated_files directive in php.ini.");
35963596
return NULL;
35973597
}
35983598

@@ -3644,7 +3644,7 @@ static zend_persistent_script* preload_script_in_shared_memory(zend_persistent_s
36443644
}
36453645
#endif
36463646
if (!ZCG(mem)) {
3647-
zend_accel_error(ACCEL_LOG_FATAL, "Not enough shared memory for preloading!");
3647+
zend_accel_error(ACCEL_LOG_FATAL, "Not enough shared memory for preloading. Consider increasing the value for the opcache.memory_consumption directive in php.ini.");
36483648
return NULL;
36493649
}
36503650

0 commit comments

Comments
 (0)