Skip to content
forked from php/php-src

Commit

Permalink
Fixed issue php#128 (opcache_invalidate segmentation fault)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Sep 9, 2013
1 parent fc9d886 commit 8d860c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/opcache/ZendAccelerator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8d860c1

Please sign in to comment.