Skip to content

Commit

Permalink
Fixed issue #389 (segfault in debug mode while running with phpunit)
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Mar 1, 2018
1 parent 64df363 commit a8ab590
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yaf_loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,12 +242,12 @@ yaf_loader_t *yaf_loader_instance(yaf_loader_t *this_ptr, zend_string *library_p
this_ptr, ZEND_STRL(YAF_LOADER_PROPERTY_NAME_GLOBAL_LIB), global_path);
}

zend_update_static_property(yaf_loader_ce, ZEND_STRL(YAF_LOADER_PROPERTY_NAME_INSTANCE), this_ptr);

if (!yaf_loader_register(this_ptr)) {
php_error_docref(NULL, E_WARNING, "Failed to register autoload function");
}

zend_update_static_property(yaf_loader_ce, ZEND_STRL(YAF_LOADER_PROPERTY_NAME_INSTANCE), this_ptr);

return this_ptr;
}
/* }}} */
Expand Down

0 comments on commit a8ab590

Please sign in to comment.