Skip to content
forked from php/php-src

Commit

Permalink
Merge branch 'PHP-5.5'
Browse files Browse the repository at this point in the history
* PHP-5.5:
  Fixed issue php#128 (opcache_invalidate segmentation fault)
  • Loading branch information
dstogov committed Sep 9, 2013
2 parents 2f4bc9d + 8d860c1 commit df711f2
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 df711f2

Please sign in to comment.