Skip to content

Commit 308fd31

Browse files
MaxKellermannGirgias
authored andcommitted
ext/{standard,json,random,...}: add missing includes
1 parent 16203b5 commit 308fd31

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+81
-2
lines changed

ext/intl/collator/collator_is_numeric.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
*/
1515

1616
#include "collator_is_numeric.h"
17+
#include "zend_strtod.h"
18+
19+
#include <errno.h>
1720

1821
/* {{{ Taken from PHP6:zend_u_strtod() */
1922
static double collator_u_strtod(const UChar *nptr, UChar **endptr) /* {{{ */

ext/json/json_encoder.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "php_json_encoder.h"
2929
#include <zend_exceptions.h>
3030
#include "zend_enum.h"
31+
#include "zend_strtod.h" // for ZEND_DOUBLE_MAX_LENGTH
3132

3233
static const char digits[] = "0123456789abcdef";
3334

ext/json/json_scanner.re

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "php_json_scanner.h"
1919
#include "php_json_scanner_defs.h"
2020
#include "php_json_parser.h"
21+
#include "zend_strtod.h"
2122
#include "json_parser.tab.h"
2223

2324
#define YYCTYPE php_json_ctype

ext/mbstring/libmbfl/filters/mbfilter_base64.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
#include "mbfilter.h"
3232
#include "mbfilter_base64.h"
33+
#include "zend_multiply.h" // for zend_safe_address_guarded()
3334

3435
static size_t mb_base64_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize, unsigned int *state);
3536
static void mb_wchar_to_base64(uint32_t *in, size_t len, mb_convert_buf *buf, bool end);

ext/mysqlnd/mysql_float_to_double.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "main/php.h"
2121
#include <float.h>
2222
#include "main/snprintf.h"
23+
#include "zend_strtod.h"
2324

2425
#define MAX_CHAR_BUF_LEN 255
2526

ext/mysqlnd/mysqlnd_connection.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
#include "mysqlnd_ext_plugin.h"
3131
#include "zend_smart_str.h"
3232

33+
#include <errno.h>
34+
#include <string.h> // for strerror()
3335

3436
extern MYSQLND_CHARSET *mysqlnd_charsets;
3537

ext/mysqlnd/mysqlnd_wireprotocol.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include "mysqlnd_wireprotocol.h"
2424
#include "mysqlnd_statistics.h"
2525
#include "mysqlnd_debug.h"
26+
#include "zend_strtod.h"
2627

2728
#define BAIL_IF_NO_MORE_DATA \
2829
if (UNEXPECTED((size_t)(p - begin) > packet->header.size)) { \

ext/oci8/oci8_collection.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535

3636
#include "php_oci8.h"
3737
#include "php_oci8_int.h"
38+
#include "zend_strtod.h"
3839

3940
/* {{{ php_oci_collection_create()
4041
Create and return connection handle */

ext/opcache/jit/zend_jit.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@
5151
#include <pthread.h>
5252
#endif
5353

54+
#ifdef HAVE_MPROTECT
55+
#include <errno.h>
56+
#endif
57+
5458
#ifdef ZTS
5559
int jit_globals_id;
5660
#else

ext/opcache/zend_file_cache.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242

4343
#include <sys/types.h>
4444
#include <sys/stat.h>
45+
#include <errno.h>
4546
#include <fcntl.h>
4647

4748
#if HAVE_UNISTD_H

0 commit comments

Comments
 (0)