com php-src: Merge branch 'PHP-5.6' into PHP-7.0: ext/opcache/ZendAccelerator.c
| From: | Dmitry Stogov | Date: | Tue, 10 May 2016 14:53:33 +0000 |
| Subject: | com php-src: Merge branch 'PHP-5.6' into PHP-7.0: ext/opcache/ZendAccelerator.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-92080@lists.php.net to get a copy of this message | ||
Commit: f7372f648fdf9ea91e2414b394f786a01f7f0496
Author: Dmitry Stogov <dmitry@zend.com> Tue, 10 May 2016 17:53:33 +0300
Parents: 09dae4dc8539594a390692700cf69d4118607953 90f43caf5bb0e371eac3a268c28f16fcd6e5e8fe
Branches: PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f7372f648fdf9ea91e2414b394f786a01f7f0496
Log:
Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6:
The "flock" structure has to be writable on AIX.
Changed paths:
MM ext/opcache/ZendAccelerator.c
Diff:
diff --cc ext/opcache/ZendAccelerator.c
index 8eddb4b,418b4a3..fab8975
--- a/ext/opcache/ZendAccelerator..c
+++ b/ext/opcache/ZendAccelerator.c
@@@ -305,12 -576,16 +321,16 @@@ static inline void accel_deactivate_sub
#endif
}
-static inline void accel_unlock_all(TSRMLS_D)
+static inline void accel_unlock_all(void)
{
#ifdef ZEND_WIN32
- accel_deactivate_sub(TSRMLS_C);
+ accel_deactivate_sub();
#else
+ # ifdef _AIX
+ static FLOCK_STRUCTURE(mem_usage_unlock_all, F_UNLCK, SEEK_SET, 0, 0);
+ # else
static const FLOCK_STRUCTURE(mem_usage_unlock_all, F_UNLCK, SEEK_SET, 0, 0);
+ # endif
if (fcntl(lock_file, F_SETLK, &mem_usage_unlock_all) == -1) {
zend_accel_error(ACCEL_LOG_DEBUG, "UnlockAll: %s (%d)", strerror(errno), errno);