We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17a9308 commit ccfabb0Copy full SHA for ccfabb0
overrides/path/php.bat
@@ -10,5 +10,11 @@ set WRAPPER_FOLDER=%THIS_PATH:~0,-1%
10
REM Remove that folder from PATH
11
call set PATH=%%PATH:%WRAPPER_FOLDER%;=%%
12
13
+REM Get the real php path, store it in %REAL_PHP%
14
+FOR /F "tokens=*" %%g IN ('where php') do (SET REAL_PHP=%%g)
15
+
16
+REM Reset PATH, so its visible to php & subprocesses
17
+set PATH=%ORIGINALPATH%
18
19
REM Start PHP for real, with extra args to override certain configs
-php -d "openssl.cafile=%SSL_CERT_FILE%" -d "curl.cainfo=%SSL_CERT_FILE%" -d "auto_prepend_file=%WRAPPER_FOLDER%\prepend.php" %*
20
+"%REAL_PHP%" -d "openssl.cafile=%SSL_CERT_FILE%" -d "curl.cainfo=%SSL_CERT_FILE%" -d "auto_prepend_file=%WRAPPER_FOLDER%\prepend.php" %*
0 commit comments