]> granicus.if.org Git - php/commitdiff
add run target
authorAnatol Belski <ab@php.net>
Tue, 1 Nov 2016 12:50:46 +0000 (13:50 +0100)
committerAnatol Belski <ab@php.net>
Tue, 1 Nov 2016 12:50:46 +0000 (13:50 +0100)
With this it is possible to run some code with the currently compiled
PHP and all the required environment included.

win32/build/Makefile

index 9f389360d6cf550b4be03efa4169d0dd0435b7e7..f4125e0c185a9997688b5a3f222539c288b6e44b 100644 (file)
@@ -154,9 +154,15 @@ clean-pgo: clean-all
 !if $(PHP_TEST_INI_PATH) == ""
 test: set-tmp-env
        "$(BUILD_DIR)\php.exe" -d open_basedir= -d output_buffering=0 run-tests.php $(TESTS) -p "$(BUILD_DIR)\php.exe"
+
+run: set-tmp-env
+       "$(BUILD_DIR)\php.exe" $(ARGS)
 !else
 test: set-tmp-env
        "$(BUILD_DIR)\php.exe" -n -c $(PHP_TEST_INI_PATH) -d open_basedir= -d output_buffering=0 -d memory_limit=-1 run-tests.php -p "$(BUILD_DIR)\php.exe" -n -c $(PHP_TEST_INI_PATH) $(TESTS)
+
+run: set-tmp-env
+       "$(BUILD_DIR)\php.exe" -n -c $(PHP_TEST_INI_PATH) $(ARGS)
 !endif
 
 build-snap: set-tmp-env generated_files