View Issue Details

IDProjectCategoryView StatusLast Update
0001638XdebugStep Debuggingpublic2019-02-21 21:44
Reporterzb3_got_no_mail Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionduplicate 
Product Version2.7.0RC2 
Summary0001638: Can't change string variable contents, property_set with string type has no effect
Description

property_set with -t string seems to have no effect even though no error returned. I am using php 7.3.2 and the latest xdebug (2.7.0RC2). Eclipse includes -t string when changing string variable contents.

Attached below are the example file and a textual representation of the packet dump.
Note: xdebug_do_eval is not called if -t used[0], Eclipse doesn't use -t for non string variables[1], so that works

[0] - https://github.com/xdebug/xdebug/blob/f0073b28dc1f7392f991001590b10f6b204a9931/xdebug_handler_dbgp.c#L1484
[1] - https://github.com/eclipse/pdt/blob/60c4dff8790a78f1f540141e220d12e2ce9e1ead/plugins/org.eclipse.php.debug.core/src/org/eclipse/php/internal/debug/core/xdebug/dbgp/model/DBGpTarget.java#L1512

TagsNo tags attached.
Operating SystemLinux
PHP Version7.3.2-7.3.4

Relationships

duplicate of 0001488 closedderick Rewrite property_set to use eval 

Activities

derick

2019-02-21 21:44

administrator   ~0004918

Hi!

Thanks for your report.

This is a duplicate of 0001488. After doing the refactoring of accessing variables, just using property_set with it's old (internal) logic no longer works. Instead, the internals need to be rewritten to use "eval" as is illustrated in 0001488.

cheers,
Derick