]> granicus.if.org Git - php/commitdiff
Fixed crash in ZTS build with --repeat option
authorDmitry Stogov <dmitry@zend.com>
Thu, 21 Jan 2021 08:39:13 +0000 (11:39 +0300)
committerDmitry Stogov <dmitry@zend.com>
Thu, 21 Jan 2021 08:39:13 +0000 (11:39 +0300)
sapi/cli/php_cli.c

index 2cabbf961dcdf60ff326128fae3b404d3a09e22b..3c1fae1924c4ba1a7908632babdc5d54881c047d 100644 (file)
@@ -898,6 +898,7 @@ do_repeat:
                        php_optind++;
                }
                if (script_file) {
+                       virtual_cwd_activate();
                        if (cli_seek_file_begin(&file_handle, script_file) != SUCCESS) {
                                goto err;
                        } else {