Skip to content

Add support to build for PHP8.0 #1167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions source/shared/core_sqlsrv.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,17 @@ extern "C" {
#pragma warning( disable: 4005 4100 4127 4142 4244 4505 4530 )
#endif

/* Small change to let it build after a major internal change for php8.0
* More info:
* https://github.com/php/php-src/blob/php-8.0.0alpha3/UPGRADING.INTERNALS#L47
*/
#if PHP_MAJOR_VERSION >= 8
# define TSRMLS_DC
# define TSRMLS_D
# define TSRMLS_CC
# define TSRMLS_C
#endif

#ifdef ZTS
#include "TSRM.h"
#endif
Expand Down