Skip to content

Commit 5a4d267

Browse files
committed
main/php.h: add #include directives that some extensions rely on
These are currently indirectly included, but in order to retain source compatibility with out-of-tree extensions when #includes are cleaned up in those parts of PHP, we need to re-add them to the "php.h" header.
1 parent 98a6cd2 commit 5a4d267

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

main/php.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,4 +434,18 @@ END_EXTERN_C()
434434

435435
#include "php_reentrancy.h"
436436

437+
/* the following headers used to be included indirectly, and we have
438+
* them here only for backwards compatibility with thirdparty
439+
* extensions */
440+
#include "php_globals.h"
441+
#include "php_ini.h"
442+
#include "zend_arena.h"
443+
#include "zend_iterators.h"
444+
#include "zend_multiply.h"
445+
#include "zend_objects.h"
446+
#include "zend_strtod.h"
447+
#include <errno.h>
448+
#include <float.h>
449+
#include <string.h>
450+
437451
#endif

0 commit comments

Comments
 (0)