php / php-sdk-binary-tools

Tool kit for building PHP under Windows
BSD 2-Clause "Simplified" License
85 stars 32 forks source link

Visual Studio 2022 Error Compiling #14

Closed Ballistiks closed 1 month ago

Ballistiks commented 3 months ago

image

On phpsdk_deps --update give the error above. I've using visual studio 2022.

jay94ks commented 3 months ago

This can be skipped by editing that Config.php file to:

............................
            /* Evaluate CRTs, to avoid ambiquity. */
            $crt = key($branches[$current_branch_name]);
            $data = $branches[$current_branch_name][$crt];
            if ($crt != $cur_crt) {
                // throw new Exception("The passed CRT '$cur_crt', doesn't match any available for branch '$current_branch_name'");
            }
        }

....

This will prepare dependency packages for vs16, but everything works fine on my test build.

phpsdk_deps --update --branch master

.\buildconf.bat
.\configure.bat --!ZTS_STATE!-zts --disable-cgi --enable-embed=shared --enable-cli-win32

nmake
cmb69 commented 1 month ago

This issue is basically resolved as of 19c8ccbf072370b0ed99bd8734ed09926549d16f, and for roughly a week, vs17 packages are available from downloads.php.net. So if you're still using php-sdk-2.2.0, switch to master or wait for a while until php-sdk-2.3.0 is available.