You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix assumptions around interned strings on PHP 7.3 (#3224)
Additionally we always intern the zai config value zval on PHP 7.3+. Not interning these zvals leads to unncessary string value duplication.
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
// On PHP 7.3 zend_interned_strings_switch_storage has undesired side effects (it calls interned_string_copy_storage); hence we collect zend_new_interned_string_permanent via zai_persistent_new_interned_string at minit.
220
232
#ifPHP_VERSION_ID >= 70400
221
233
if (in_request) {
222
234
zend_interned_strings_switch_storage(0);
223
235
}
236
+
#else
237
+
(void)in_request;
224
238
#endif
225
239
226
240
for (uint16_ti=0; i<zai_config_memoized_entries_count; i++) {
0 commit comments