Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sirsnyder committed Mar 22, 2017
1 parent 61a5e8f commit fd8fac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/copy.h
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ static inline zend_function* pthreads_copy_internal_function(zend_function *func
static zend_function* pthreads_copy_function(zend_function *function) {
zend_function *copy = zend_hash_index_find_ptr(&PTHREADS_ZG(resolve), (zend_ulong)function);

if (copy) {
if (copy && copy->op_array.run_time_cache == NULL) {
function_add_ref(copy);
return copy;
}
Expand Down

1 comment on commit fd8fac4

@dktapps
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have reproducing code for the bug that this commit fixes? This commit resolves a segfault I have in my project, but I haven't been able to identify what actually caused the problem to start with.

Please sign in to comment.