We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
NTS
ZTS
1 parent 2e1ed12 commit 901496cCopy full SHA for 901496c
1 file changed
profiling/src/lib.rs
@@ -516,6 +516,15 @@ extern "C" fn rinit(_type: c_int, _module_number: c_int) -> ZendResult {
516
// standardized tag name.
517
add_tag(&mut tags, "runtime_version", PHP_VERSION.as_str());
518
add_tag(&mut tags, "php.sapi", SAPI.as_ref());
519
+ // In case we ever add PHP debug build support, we should add `zend-zts-debug` and
520
+ // `zend-nts-debug`. For the time being we only support `zend-zts-ndebug` and
521
+ // `zend-nts-ndebug`
522
+ let runtime_engine = if cfg!(php_zts) {
523
+ "zend-zts-ndebug"
524
+ } else {
525
+ "zend-nts-ndebug"
526
+ };
527
+ add_tag(&mut tags, "runtime_engine", runtime_engine);
528
cell.replace(Arc::new(tags));
529
});
530
0 commit comments