Skip to content

Commit fdc38bd

Browse files
Merge branch 'master' into florian/profiler-debug
2 parents e7932ed + 3fb0a73 commit fdc38bd

5 files changed

Lines changed: 12 additions & 6 deletions

File tree

.gitlab-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ generate-templates:
4545
elif [ "${CI_COMMIT_BRANCH:-}" = "bot/libdatadog-latest" ]; then
4646
# Feedback run after a bot commit: the submodule already points to the tested SHA.
4747
# Don't export — generate-common.php must not inject fetch/checkout (no-op anyway).
48+
set -x
49+
apt update
50+
apt install -y git
4851
LIBDATADOG_SHA=$(git ls-tree HEAD libdatadog | awk '{print $3}')
4952
printf 'LIBDATADOG_OVERRIDE_SHA=%s\nLIBDATADOG_FEEDBACK_RUN=true\n' "$LIBDATADOG_SHA" >> libdatadog.env
5053
fi

.gitlab/generate-common.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ function windows_git_setup_with_packages() {
114114
}
115115

116116
$step = <<<STEP
117+
- git config --global --add safe.directory "\${CI_PROJECT_DIR}/libdatadog"
117118
- git -C libdatadog fetch --depth=1 origin "$_libdatadog_sha" 2>&1
118119
- git -C libdatadog checkout FETCH_HEAD
119120
STEP;

.gitlab/libdatadog-latest.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,10 @@ stages:
211211
# Install Claude (nvm — no root required)
212212
if ! command -v claude &>/dev/null; then
213213
export NVM_DIR="${HOME}/.nvm"
214-
curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash - 2>&1
215-
. "${NVM_DIR}/nvm.sh"
216-
nvm install --lts --no-progress 2>&1
217-
npm install -g @anthropic-ai/claude-code 2>&1
214+
curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash - >/dev/null 2>&1
215+
. "${NVM_DIR}/nvm.sh" >/dev/null 2>&1
216+
nvm install --lts --no-progress >/dev/null 2>&1
217+
npm install -g @anthropic-ai/claude-code >/dev/null 2>&1
218218
fi
219219
220220
AI_GATEWAY_TOKEN=$(_vault_jwt rapid-ai-platform) || {

ext/engine_hooks.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static zend_op_array *_dd_compile_file(zend_file_handle *file_handle, int type)
7777
zend_op_array *res;
7878
uint64_t start = zend_hrtime();
7979
res = _prev_compile_file(file_handle, type);
80-
DDTRACE_G(compile_time_microseconds) += (int64_t)(zend_hrtime() - start);
80+
DDTRACE_G(compile_time_microseconds) += (int64_t)((zend_hrtime() - start) / 1000);
8181
return res;
8282
}
8383

zend_abstract_interface/config/config_ini.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ void zai_config_ini_rinit(void) {
396396

397397
#if ZTS
398398
// Skip during preloading, in that case EG(ini_directives) is the actual source of truth (NTS-like)
399-
if (env_to_ini_name && !inis_synchronized && zai_config_first_rinit_done) {
399+
if (env_to_ini_name && !inis_synchronized && zai_config_first_rinit_done && !in_startup) {
400400
for (uint16_t i = 0; i < zai_config_memoized_entries_count; ++i) {
401401
zai_config_memoized_entry *memoized = &zai_config_memoized_entries[i];
402402
if (!memoized->original_on_modify) {
@@ -405,6 +405,8 @@ void zai_config_ini_rinit(void) {
405405
zend_ini_entry *source = memoized->ini_entries[n],
406406
*ini = zend_hash_find_ptr(EG(ini_directives), source->name);
407407
// On ZTS INIs must be not shared between threads (otherwise: refcount race conditions). Hence we dup them rather than just copy.
408+
ZEND_ASSERT(ini && source);
409+
ZEND_ASSERT(ini != source && "ZTS INI sync must not run against the global INI table");
408410
if (ini->modified) {
409411
bool identical_orig = ini->orig_value == ini->value;
410412
zend_string_release(ini->orig_value);

0 commit comments

Comments
 (0)