View Issue Details

IDProjectCategoryView StatusLast Update
0002295XdebugUncategorizedpublic2024-10-08 17:25
ReporterFirehed Assigned Toderick  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version3.3.0 
Fixed in Version3.3dev 
Summary0002295: var_dump(SensitiveParameterValue) segfaults
Description

With XDebug installed, var_dump'ing a still-wrapped SensitiveParameterValue object results in a segfault. This only happens in the (I assume uncommon) case of manually using this class; it does not occur when using an unwrapped value that you get when applying the #[SensitiveParameter] attribute.

Steps To Reproduce

<?php

function sp(#[SensitiveParameter] string $str): void
{
var_dump($str);
}

function spv(SensitiveParameterValue $spv): void
{
var_dump($spv);
}

sp('a'); // ok
spv(new SensitiveParameterValue('p')); // segfault

Additional Information

See original PHP issue: https://github.com/php/php-src/issues/16207. It contains sample code and an XDebug stack trace

TagsNo tags attached.
Operating SystemmacOS 15
PHP Version8.3.0-8.3.4

Activities

derick

2024-10-08 17:25

administrator   ~0007068

Fixed through https://github.com/xdebug/xdebug/pull/982 — thanks for the report!

Issue History

Date Modified Username Field Change
2024-10-08 16:49 Firehed New Issue
2024-10-08 17:25 derick Assigned To => derick
2024-10-08 17:25 derick Status new => closed
2024-10-08 17:25 derick Resolution open => fixed
2024-10-08 17:25 derick Fixed in Version => 3.3dev
2024-10-08 17:25 derick Note Added: 0007068