View Revisions: Issue #1501

Summary 0001501: Xdebug var dump tries casting properties
Revision 2017-12-10 15:17 by derick
Description The xdebug version of var_dump tries to cast numeric strings in class properties to integer, thus leading to wrong results. In my case those numeric strings were 64bit integers (as string, because integer overflow on 32bit systems), which ended up horribly wrong. So instead of $373556941768884244 I had ${830734356} in my dump.

This behaviour seems to have started in 2.5.0 and only affects PHP 7.1 and newer. Tests have shown that PHP 7.0 is unaffected.
Revision 2017-12-08 23:14 by CharlotteDunois
Description The xdebug version of var_dump tries to cast numeric strings in class properties to integer, thus leading to wrong results. In my case those numeric strings were 64bit integers (as string, because integer overflow on 32bit systems), which ended up horribly wrong. So instead of $373556941768884244 I had ${830734356} in my dump.

This behaviour seems to have started in 2.5.0 and only affects PHP7.1 and newer. Tests have shown that PHP 7.0 is unaffected.