Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6704c60

Browse files
committed
Fix GH-14596: phpdbg with asan and ZC_RC_DEBUG set crashes.
close GH-14607
1 parent 49aaa7c commit 6704c60

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

‎NEWS‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? ????, PHP 8.2.22
44

5+
- PHPDBG:
6+
. Fixed bug GH-14596 (crashes with ASAN and ZEND_RC_DEBUG=1).
7+
(David Carlier)
8+
59

610
04 Jul 2024, PHP 8.2.21
711

‎sapi/phpdbg/phpdbg.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,13 +229,13 @@ static PHP_RINIT_FUNCTION(phpdbg) /* {{{ */
229229

230230
if (zend_vm_kind() != ZEND_VM_KIND_HYBRID) {
231231
/* phpdbg cannot work JIT-ed code */
232-
zend_string *key = zend_string_init(ZEND_STRL("opcache.jit"), 1);
233-
zend_string *value = zend_string_init(ZEND_STRL("off"), 1);
232+
zend_string *key = zend_string_init(ZEND_STRL("opcache.jit"), false);
233+
zend_string *value = zend_string_init(ZEND_STRL("off"), false);
234234

235-
zend_alter_ini_entry(key, value, ZEND_INI_SYSTEM, ZEND_INI_STAGE_STARTUP);
235+
zend_alter_ini_entry_ex(key, value, ZEND_INI_SYSTEM, ZEND_INI_STAGE_STARTUP, false);
236236

237-
zend_string_release(key);
238-
zend_string_release(value);
237+
zend_string_release_ex(key, false);
238+
zend_string_release_ex(value, false);
239239
}
240240

241241
return SUCCESS;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /