[php] Fix two incorrect PHP 8 conditionals
The correct macro to test is PHP_MAJOR_VERSION so these two PHP 8 cases weren't ever used, which hid that the PHP8 version of the code was broken in one of them. Highlighted in #2113.
This commit is contained in:
parent
7246cfa6c6
commit
c0c7a8dba0
2 changed files with 5 additions and 5 deletions
|
|
@ -54,7 +54,7 @@
|
|||
#define SWIG_PHP_INTERFACE_JsonSerializable_HEADER "ext/json/php_json.h"
|
||||
|
||||
// New in PHP 8.0.
|
||||
#if PHP_MAJOR >= 8
|
||||
#if PHP_MAJOR_VERSION >= 8
|
||||
# define SWIG_PHP_INTERFACE_Stringable_CE zend_ce_stringable
|
||||
# define SWIG_PHP_INTERFACE_Stringable_HEADER "zend_interfaces.h"
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue