com php-src: Fixed issue #128 (opcache_invalidate segment ation fault): ext/opcache/ZendAccelerator.c
| From: | Anatol Belski | Date: | Wed, 16 Oct 2013 08:28:23 +0000 |
| Subject: | com php-src: Fixed issue #128 (opcache_invalidate segment ation fault): ext/opcache/ZendAccelerator.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73532@lists.php.net to get a copy of this message | ||
Commit: 4d86b8b5075c1c86f3f8e3017edab7983abf519a
Author: Dmitry Stogov <dmitry@zend.com> Mon, 9 Sep 2013 10:05:59 +0400
Committer: Anatol Belski <ab@php.net> Wed, 16 Oct 2013 01:28:23 -0700
Parents: 32a8ad32e71e10a5a3b9586b14b133d87e18d229
Branches: str_size_and_int64
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4d86b8b5075c1c86f3f8e3017edab7983abf519a
Log:
Fixed issue #128 (opcache_invalidate segmentation fault)
Bugs:
https://bugs.php.net/128
Changed paths:
M ext/opcache/ZendAccelerator.c
Diff:
diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c
index 2c765f1..52e9e98 100644
--- a/ext/opcache/ZendAccelerator.c
+++ b/ext/opcache/ZendAccelerator.c
@@ -1062,6 +1062,10 @@ int zend_accel_invalidate(const char *filename, int filename_len, zend_bool
forc
realpath = accelerator_orig_zend_resolve_path(filename, filename_len TSRMLS_CC);
#endif
+ if (!realpath) {
+ return FAILURE;
+ }
+
persistent_script = zend_accel_hash_find(&ZCSG(hash), realpath, strlen(realpath) + 1);
if (persistent_script && !persistent_script->corrupted) {
zend_file_handle file_handle;