php-src/win32/build/phpize.bat
Christoph M. Becker c14bc7b10f
Fail phpize early if config.w32 is missing (GH-17100)
On Windows, phpize happily builds configure even if there is no
config.w32, but running configure then error with "Must be run from the
root of the extension source".  This is confusing.

We bring phpize's behavior on par with POSIX systems, where the missing
config.m4 is detected and reported right away.
2024-12-15 12:02:19 +01:00

11 lines
314 B
Batchfile

@echo off
SET PHP_BUILDCONF_PATH=%~dp0
cscript /nologo /e:jscript %PHP_BUILDCONF_PATH%\script\phpize.js %*
IF ERRORLEVEL 0 exit /b 3
IF NOT EXIST configure.bat (
echo Error generating configure script, configure script was not copied
exit /b 3
) ELSE (
echo Now run 'configure --help'
)
SET PHP_BUILDCONF_PATH=