Selaa lähdekoodia

Merge pull request #15440 from thinkerou/f

PHP: remove invalid include file
Zhouyihai Ding 7 vuotta sitten
vanhempi
commit
a7fbd7a89e
2 muutettua tiedostoa jossa 2 lisäystä ja 8 poistoa
  1. 2 0
      src/php/ext/grpc/byte_buffer.c
  2. 0 8
      src/php/ext/grpc/server_credentials.h

+ 2 - 0
src/php/ext/grpc/byte_buffer.c

@@ -18,6 +18,8 @@
 
 #include <php.h>
 
+// The include file must place here under <php.h> for fixing compile error.
+// See: https://github.com/grpc/grpc/pull/12360#issuecomment-326484589
 #include "byte_buffer.h"
 
 #include <grpc/byte_buffer_reader.h>

+ 0 - 8
src/php/ext/grpc/server_credentials.h

@@ -19,14 +19,6 @@
 #ifndef NET_GRPC_PHP_GRPC_SERVER_CREDENTIALS_H_
 #define NET_GRPC_PHP_GRPC_SERVER_CREDENTIALS_H_
 
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <php.h>
-#include <php_ini.h>
-#include <ext/standard/info.h>
-
 #include "php_grpc.h"
 
 #include <grpc/grpc_security.h>