Browse Source

coverager: avoid crash when upstream failed to compile file

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@201 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
1.2
Xuefer 15 years ago
parent
commit
3ac3773fc8
  1. 2
      coverager.c

2
coverager.c

@ -350,7 +350,7 @@ static zend_op_array *xc_compile_file_for_coverage(zend_file_handle *h, int type
zend_op_array *op_array;
op_array = origin_compile_file(h, type TSRMLS_CC);
if (XG(coveragedumper) && XG(coverages)) {
if (XG(coveragedumper) && XG(coverages) && op_array) {
xc_coverager_init_compile_result(op_array TSRMLS_CC);
}
return op_array;

Loading…
Cancel
Save