PHP: add xDS user agent (#26205)

* PHP: add xds user agent

* Add version string too

* Rerun generate_projects.sh
pull/26490/head
Stanley Cheung 3 years ago committed by GitHub
parent 6d699be11d
commit 26f9de81c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      config.m4
  2. 4
      templates/config.m4.template

@ -1038,7 +1038,9 @@ if test "$PHP_GRPC" != "no"; then
, $ext_shared, , -fvisibility=hidden \
-DOPENSSL_NO_ASM -D_GNU_SOURCE -DWIN32_LEAN_AND_MEAN \
-D_HAS_EXCEPTIONS=0 -DNOMINMAX -DGRPC_ARES=0 \
-DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1)
-DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 \
-DGRPC_XDS_USER_AGENT_SUFFIX="\"PHP\"" \
-DGRPC_XDS_USER_AGENT_VERSION_SUFFIX="\"1.39.0dev\"")
PHP_ADD_BUILD_DIR($ext_builddir/src/core/ext/filters/census)
PHP_ADD_BUILD_DIR($ext_builddir/src/core/ext/filters/client_channel)

@ -60,7 +60,9 @@
, $ext_shared, , -fvisibility=hidden ${"\\"}
-DOPENSSL_NO_ASM -D_GNU_SOURCE -DWIN32_LEAN_AND_MEAN ${"\\"}
-D_HAS_EXCEPTIONS=0 -DNOMINMAX -DGRPC_ARES=0 ${"\\"}
-DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1)
-DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 ${"\\"}
-DGRPC_XDS_USER_AGENT_SUFFIX="\"PHP\"" ${"\\"}
-DGRPC_XDS_USER_AGENT_VERSION_SUFFIX="\"${settings.php_version.php()}\"")
<%
dirs = sorted(set(src[:src.rfind('/')] for src in srcs))
%>

Loading…
Cancel
Save