[php] Workaround PHP 8.2 header problem

We need to include php.h before stdio.h (and probably before most
other libc headers).
This commit is contained in:
Olly Betts 2022-09-28 19:01:01 +13:00
commit 246dd2d787
2 changed files with 8 additions and 2 deletions

View file

@ -10,8 +10,6 @@
extern "C" {
#endif
#include "php.h"
#if PHP_MAJOR_VERSION < 7
# error These bindings need PHP 7 or later - to generate PHP5 bindings use: SWIG < 4.0.0 and swig -php5
#endif