coverager: avoid crash when upstream failed to compile file
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@201 c26eb9a1-5813-0410-bd6c-c2e55f420ca71.2
parent
d519ff2c5a
commit
3ac3773fc8
|
@ -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…
Reference in New Issue