Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c028b76

Browse files
ext/{standard,json,random,...}: add missing includes
1 parent c872a6d commit c028b76

38 files changed

+76
-1
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/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

‎ext/openssl/xp_ssl.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
#include <openssl/bn.h>
3737
#include <openssl/dh.h>
3838

39+
#include <errno.h>
40+
3941
#ifdef PHP_WIN32
4042
#include "win32/winutil.h"
4143
#include "win32/time.h"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /