]> granicus.if.org Git - php/commitdiff
Don't preload tests without --FILE-- section
authorDmitry Stogov <dmitry@zend.com>
Tue, 19 Feb 2019 21:06:57 +0000 (00:06 +0300)
committerDmitry Stogov <dmitry@zend.com>
Tue, 19 Feb 2019 21:06:57 +0000 (00:06 +0300)
run-tests.php

index 49da8c95bcaa7a6da166e9c01203ff0a510262d0..b9e14f373c9bd4916cf3c939790efcd217c9f28f 100755 (executable)
@@ -2262,7 +2262,7 @@ TEST $file
 
        $args = isset($section_text['ARGS']) ? ' -- ' . $section_text['ARGS'] : '';
 
-       if ($preload) {
+       if ($preload && !empty($test_file)) {
                save_text($preload_filename, "<?php opcache_compile_file('$test_file');");
                $local_pass_options = $pass_options;
                unset($pass_options);