View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001973||Xdebug||Uncategorized||public||2021-05-13 01:38||2021-05-19 12:02|
|Summary||0001973: var_dump on an extension object could use get_class_name object handler|
|Description||I am looking here specifically:|
when I have xdebug loaded, if I var_dump($object) where $object is a class defined by a custom extension, the base name of that class will be output. However, the extension can define an object handler function get_class_name which adds additional information here, e.g.: https://github.com/php/php-src/blob/01b3fc03c30c6cb85038250bb5640be3a09c6a32/ext/ffi/ffi.c#L1636
Would you accept a pull request on this?
|Tags||No tags attached.|
I did not know that existed :-) I would indeed welcome a pull request, as long as it's also done for var_export_line, and var_export_text. Please follow the guidelines at https://xdebug.org/docs/contributing As this is a new feature, it should be against the master branch. If you're unsure about anything, or have questions, please reach out.