com php-src: Merge branch 'PHP-7.1' into PHP-7.2: NEWS ext/opcache/ZendAccelerator.c
| From: | Dmitry Stogov | Date: | Thu, 28 Dec 2017 11:08:38 +0000 |
| Subject: | com php-src: Merge branch 'PHP-7.1' into PHP-7.2: NEWS ext/opcache/ZendAccelerator.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-100710@lists.php.net to get a copy of this message | ||
Commit: 9188f1d861a829316ee6c867655cf8a360250e8b
Author: Dmitry Stogov <dmitry@zend.com> Thu, 28 Dec 2017 14:08:38 +0300
Parents: 650264e360e7cda8b224283dde55673ed022314d 60b2d67828185940b80e7923f0766fa22e6d5daa
Branches: PHP-7.2 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9188f1d861a829316ee6c867655cf8a360250e8b
Log:
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Fixed bug #75720 (File cache not populated after SHM runs full)
Bugs:
https://bugs.php.net/75720
Changed paths:
MM NEWS
MM ext/opcache/ZendAccelerator.c
Diff:
diff --cc NEWS
index a330bba,5a69457..fbbbeae
--- a/NEWS
+++ b/NEWS
@@@ -1,26 -1,12 +1,27 @@@
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)
diff --cc ext/opcache/ZendAccelerator.c
index d9d5940,b4033fb..be9d162
--- a/ext/opcache/ZendAccelerator.c
+++ b/ext/opcache/ZendAccelerator.c
@@@ -1251,19 -1214,10 +1251,10 @@@ static void zend_accel_add_key(char *ke
}
#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 */