File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ PHP NEWS
6
6
. Fixed bug #64076 (imap_sort() does not return FALSE on failure). (cmb)
7
7
. Fixed bug #80239 (imap_rfc822_write_address() leaks memory). (cmb)
8
8
9
+ - Opcache:
10
+ . Fixed bug #79643 (PHP with Opcache crashes when a file with specific name
11
+ is included). (twosee)
12
+
9
13
- OpenSSL:
10
14
. Fixed bug #79983 (openssl_encrypt / openssl_decrypt fail with OCB mode).
11
15
(Nikita)
Original file line number Diff line number Diff line change @@ -2576,7 +2576,9 @@ static int zend_accel_init_shm(void)
2576
2576
if (ZCG (accel_directives ).interned_strings_buffer ) {
2577
2577
accel_shared_globals = zend_shared_alloc ((ZCG (accel_directives ).interned_strings_buffer * 1024 * 1024 ));
2578
2578
} else {
2579
- accel_shared_globals = zend_shared_alloc (sizeof (zend_accel_shared_globals ));
2579
+ /* Make sure there is always at least one interned string hash slot,
2580
+ * so the table can be queried unconditionally. */
2581
+ accel_shared_globals = zend_shared_alloc (sizeof (zend_accel_shared_globals ) + sizeof (uint32_t ));
2580
2582
}
2581
2583
if (!accel_shared_globals ) {
2582
2584
zend_accel_error (ACCEL_LOG_FATAL , "Insufficient shared memory!" );
@@ -2617,6 +2619,8 @@ static int zend_accel_init_shm(void)
2617
2619
STRTAB_INVALID_POS ,
2618
2620
(char * )ZCSG (interned_strings ).start -
2619
2621
((char * )& ZCSG (interned_strings ) + sizeof (zend_string_table )));
2622
+ } else {
2623
+ * STRTAB_HASH_TO_SLOT (& ZCSG (interned_strings ), 0 ) = STRTAB_INVALID_POS ;
2620
2624
}
2621
2625
2622
2626
zend_interned_strings_set_request_storage_handlers (accel_new_interned_string_for_php , accel_init_interned_string_for_php );
You can’t perform that action at this time.
0 commit comments