Fix Windows --nano build: include entry declaration header in extension TU (#134)
On Windows, --nano runs in nano-policy mode (nanoMode=false, nanoPolicyMode=true) using the WINDOWS_DLL backend. RINIT then emits a direct C++ call to php_main() instead of relying on ZendVM eval, but the extension translation unit never included the entry function's declaration header, so the php_main() prototype was missing and MSVC failed with C3861. genExtensionIncludeHeaderFiles() only added declaration headers for stub files and attribute-factory owners, never the entry's source file. Include the entry function's declaration header when nano-policy mode is active so php_main() is visible where RINIT references it. Verified: a minimal --nano program now compiles, links and runs on Windows (previously failed at extension-<target>.cc with 'php_main': identifier not found).master
parent
8b33cad5c4
commit
27371fa734
1 changed files with 14 additions and 0 deletions
Loading…
Reference in new issue