PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-?? ??? 2018, PHP 7.1.14
+?? ??? ????, PHP 7.2.2
- Core:
+ . Fixed bug #75742 (potential memleak in internal classes's static members).
+ (Laruence)
. Fixed bug #75679 (Path 260 character problem). (Anatol)
+ . Fixed bug #75614 (Some non-portable == in shell scripts). (jdolecek)
+
+- Opcache:
+ . Fixed bug #75687 (var 8 (TMP) has array key type but not value type).
+ (Nikita, Laruence)
+ . Fixed bug #75698 (Using @ crashes php7.2-fpm). (Nikita)
+
+- PDO:
+ . Fixed bug #75616 (PDO extension doesn't allow to be built shared on Darwin).
+ (jdolecek)
+
+- PDO MySQL:
+ . Fixed bug #75615 (PDO Mysql module can't be built as module). (jdolecek)
- Opcache:
+ . Fixed bug #75720 (File cache not populated after SHM runs full). (Dmitry)
. Fixed bug #75579 (Interned strings buffer overflow may cause crash).
(Dmitry)
}
#ifdef HAVE_OPCACHE_FILE_CACHE
- static zend_persistent_script *cache_script_in_file_cache(zend_persistent_script *new_persistent_script, int *from_shared_memory)
+ static zend_persistent_script *store_script_in_file_cache(zend_persistent_script *new_persistent_script)
{
- uint memory_used;
+ uint32_t memory_used;
- /* Check if script may be stored in shared memory */
- if (!zend_accel_script_persistable(new_persistent_script)) {
- return new_persistent_script;
- }
-
- if (!zend_optimize_script(&new_persistent_script->script, ZCG(accel_directives).optimization_level, ZCG(accel_directives).opt_debug_level)) {
- return new_persistent_script;
- }
-
zend_shared_alloc_init_xlat_table();
/* Calculate the required memory size */