Skip to content

Commit

Permalink
Update config.w32 - windows build now support loading php extension a…
Browse files Browse the repository at this point in the history
…s static or dynamic
  • Loading branch information
wantedxnn authored Sep 20, 2023
1 parent 7bb7448 commit c78376e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ext/config.w32
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
// vim:ft=javascript
// Changed ARGS to be always compiled static (shared will crash)

ARG_ENABLE('opentelemetry', 'opentelemetry support', 'yes');
ARG_ENABLE('opentelemetry', 'opentelemetry support', 'no');

if (PHP_OPENTELEMETRY == 'yes') {
if (PHP_OPENTELEMETRY != 'no') {
AC_DEFINE('HAVE_OPENTELEMETRY', 1, 'opentelemetry support enabled');

EXTENSION('opentelemetry', 'opentelemetry.c otel_observer.c', null, '/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1');
EXTENSION('opentelemetry', 'opentelemetry.c otel_observer.c', '/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1');
}

0 comments on commit c78376e

Please sign in to comment.