Unknown SIZEOF_SIZE_T when compiling extension against PHP 8.0.2

From: Date: Tue, 09 Feb 2021 20:59:35 +0000
Subject: Unknown SIZEOF_SIZE_T when compiling extension against PHP 8.0.2
Groups: php.internals 
Request: Send a blank email to internals+get-113127@lists.php.net to get a copy of this message
Recently, I've tried compiling a custom extension against PHP 8.0.2 and have received the following error: In file included from /home/james/git/trogdor-pp/src/php7/trogdord/game.cpp:1: /home/james/local/php8.0.2/include/php/Zend/zend_long.h:124:3: error: #error "Unknown SIZEOF_SIZE_T"   124 | # error "Unknown SIZEOF_SIZE_T"
      |   ^~~~~
I've not encountered this before and I'm not sure what's changed about my environment other than I upgraded from 8.0.1 to 8.0.2. Does anyone know why this is happening? I dug into the header to see what the problem was, and it's related to the definition of SIZEOF_SIZE_T, but I'm not able to debug any further. Any help would be appreciated. Thank you!

« previous php.internals (#113127) next »