@@ -249,17 +249,25 @@ jobs:
249249 if : matrix.os == 'windows-latest'
250250 working-directory : php-src
251251 run : |
252- REM Use php-sdk for environment setup and build
253- call C:\php-sdk\bin\phpsdk_buildtree.bat phpdev
254- call C:\php-sdk\bin\phpsdk_setvars.bat
255- buildconf.bat
252+ REM Setup PHP SDK environment properly
253+ call C:\php-sdk\phpsdk-vs17-x64.bat
254+
255+ REM Set UTF-8 encoding
256+ chcp 65001
257+
258+ REM Clean previous build
259+ nmake clean
260+
256261 REM Check if async extension exists
257262 dir ext\async
258- REM Configure with verbose output
259- configure.bat --help | findstr async
260- configure.bat --enable-opcache --enable-async --enable-pdo --with-pdo-mysql --enable-sockets --with-sqlite3 --with-curl --enable-ftp --with-pdo-pgsql
261- REM Check configuration
262- type config.log | findstr async
263+
264+ REM Build configuration files
265+ call buildconf.bat
266+
267+ REM Configure with your working options (without debug-pack)
268+ call configure.bat --enable-phpdbg --enable-async --enable-pdo --with-pdo-mysql --enable-sockets --with-sqlite3 --with-curl --enable-ftp
269+
270+ REM Build
263271 nmake
264272 shell : cmd
265273
@@ -271,26 +279,26 @@ jobs:
271279 # Debug environment
272280 echo "PATH: $PATH"
273281 echo "PKG_CONFIG_PATH: $PKG_CONFIG_PATH"
274- which autoconf
275- autoconf --version
282+ which autoconf || echo "autoconf not found"
283+ autoconf --version || echo "autoconf version failed"
276284
277285 # Check async extension
278- ls -la ext/async/
286+ ls -la ext/async/ || echo "async directory not found"
279287
280288 # Build configure
281- ./buildconf -f
289+ echo "Running buildconf..."
290+ ./buildconf -f || { echo "buildconf failed"; exit 1; }
291+
292+ # Test simple configure first
293+ echo "Testing minimal configure..."
294+ ./configure --help | head -20
282295
283- # Configure with minimal options
296+ # Configure with absolute minimal options
297+ echo "Running configure..."
284298 ./configure \
285- --enable-zts \
286- --enable-opcache \
287- --with-pdo-sqlite \
288- --enable-intl \
289- --without-pear \
290- --enable-sockets \
291- --enable-mbstring \
292- --with-openssl=$(brew --prefix openssl@3) \
293- --enable-async
299+ --disable-all \
300+ --enable-cli \
301+ --enable-async || { echo "configure failed"; cat config.log | tail -50; exit 1; }
294302
295303 - name : Build PHP (macOS)
296304 if : matrix.os == 'macos-latest'
0 commit comments