Skip to content

Commit 67a74f8

Browse files
committed
Add bool header to TSRM and replace php_stdint.h header with standard headers
1 parent 8269357 commit 67a74f8

File tree

13 files changed

+25
-65
lines changed

13 files changed

+25
-65
lines changed

TSRM/TSRM.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
# include "main/php_config.h"
2121
#endif
2222

23-
#include "main/php_stdint.h"
23+
#include <inttypes.h>
24+
#include <stdint.h>
25+
#include <stdbool.h>
2426

2527
#ifdef TSRM_WIN32
2628
# ifdef TSRM_EXPORTS

Zend/zend_long.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
#ifndef ZEND_LONG_H
2020
#define ZEND_LONG_H
2121

22-
#include "main/php_stdint.h"
22+
#include <inttypes.h>
23+
#include <stdint.h>
2324

2425
/* This is the heart of the whole int64 enablement in zval. */
2526
#if defined(__x86_64__) || defined(__LP64__) || defined(_LP64) || defined(_WIN64)

ext/date/config.w32

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ ADD_FLAG('CFLAGS_DATE', "/wd4244");
88

99
var tl_config = FSO.CreateTextFile("ext/date/lib/timelib_config.h", true);
1010
tl_config.WriteLine("#include \"config.w32.h\"");
11-
tl_config.WriteLine("#include <php_stdint.h>");
11+
tl_config.WriteLine("#include <inttypes.h>");
12+
tl_config.WriteLine("#include <stdint.h>");
1213
tl_config.WriteLine("#include \"zend.h\"");
1314
tl_config.WriteLine("#define timelib_malloc emalloc");
1415
tl_config.WriteLine("#define timelib_realloc erealloc");

ext/date/config0.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ cat > $ext_builddir/lib/timelib_config.h <<EOF
2323
#else
2424
# include <php_config.h>
2525
#endif
26-
#include <php_stdint.h>
26+
#include <inttypes.h>
27+
#include <stdint.h>
2728

2829
#include "zend.h"
2930

ext/fileinfo/libmagic.patch

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3478,7 +3478,8 @@ diff -ur libmagic.orig/strcasestr.c libmagic/strcasestr.c
34783478

34793479
#include "file.h"
34803480

3481-
+#include "php_stdint.h"
3481+
+#include <inttypes.h>
3482+
+#include <stdint.h>
34823483
+
34833484
#include <assert.h>
34843485
#include <ctype.h>

ext/fileinfo/libmagic/strcasestr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ __RCSID("$NetBSD: strncasecmp.c,v 1.2 2007/06/04 18:19:27 christos Exp $");
3939

4040
#include "file.h"
4141

42-
#include "php_stdint.h"
43-
42+
#include <inttypes.h>
43+
#include <stdint.h>
4444
#include <assert.h>
4545
#include <ctype.h>
4646
#include <string.h>

ext/mysqlnd/mysqlnd_portability.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ This file is public domain and comes with NO WARRANTY of any kind */
3838
#define atoll atol
3939
#endif
4040

41-
#include "php_stdint.h"
41+
#include <inttypes.h>
42+
#include <stdint.h>
4243

4344
#if SIZEOF_LONG_LONG > 4 && !defined(_LONG_LONG)
4445
#define _LONG_LONG 1 /* For AIX string library */

ext/session/mod_mm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@
2424
#include <sys/stat.h>
2525
#include <sys/types.h>
2626
#include <fcntl.h>
27+
#include <inttypes.h>
28+
#include <stdint.h>
2729

28-
#include "php_stdint.h"
2930
#include "php_session.h"
3031
#include "mod_mm.h"
3132
#include "SAPI.h"

ext/standard/crypt_freesec.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
# endif
88
#endif
99

10-
#include "php_stdint.h"
10+
#include <inttypes.h>
11+
#include <stdint.h>
1112

1213
#define MD5_HASH_MAX_LEN 120
1314

main/php.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ typedef unsigned int socklen_t;
210210
#endif
211211

212212
#include <stdarg.h>
213-
214-
#include "php_stdint.h"
213+
#include <inttypes.h>
214+
#include <stdint.h>
215215

216216
#include "zend_hash.h"
217217
#include "zend_alloc.h"

main/php_stdint.h

Lines changed: 0 additions & 51 deletions
This file was deleted.

sapi/cli/php_http_parser.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ extern "C" {
3434
# include "php_config.h"
3535
#endif
3636

37-
#include "php_stdint.h"
37+
#include <inttypes.h>
38+
#include <stdint.h>
3839

3940
/* Compile with -DPHP_HTTP_PARSER_STRICT=0 to make less checks, but run
4041
* faster

sapi/phpdbg/phpdbg.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
# include <stdint.h>
3232
# include <stddef.h>
3333
#else
34-
# include "main/php_stdint.h"
34+
# include <stdint.h>
35+
# include <inttypes.h>
3536
#endif
3637
#include "php.h"
3738
#include "php_globals.h"

0 commit comments

Comments
 (0)