mirror of
https://github.com/php-win-ext/php-sdk-binary-tools.git
synced 2026-03-24 17:12:12 +01:00
We set executable permissions for all .bat and .exe files. This is required for running in Cygwin shells, but generally considered good style.
17 lines
308 B
Batchfile
Executable File
17 lines
308 B
Batchfile
Executable File
@echo off
|
|
|
|
cmd /c "exit /b 0"
|
|
|
|
if "%PHP_SDK_PHP_CMD%"=="" (
|
|
call %~dp0phpsdk_setvars.bat
|
|
if "!PHP_SDK_PHP_CMD!"=="" (
|
|
echo PHP SDK is not setup
|
|
exit /b 3
|
|
)
|
|
)
|
|
|
|
%PHP_SDK_PHP_CMD% -r "echo 'PHP SDK ' . file_get_contents(getenv('PHP_SDK_ROOT_PATH') . '\\VERSION');"
|
|
|
|
exit /b %errorlevel%
|
|
|