View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001157 | Xdebug | Documentation | public | 2015-06-02 12:02 | 2015-11-22 15:05 |
Reporter | vaughany | Assigned To | derick | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
Platform | Linux | OS | Ubuntu | OS Version | 14.04 |
Product Version | 2.2.3 | ||||
Summary | 0001157: Code in documentation does not output results seen in documentation | ||||
Description | Hi there. Using the code examples given in the documentation (here: http://xdebug.org/docs/all_functions) for 'xdebug_debug_zval' produces results that are different to the documentation or no results at all. phpinfo() confirms that xdebug is loaded. Commands such as the overloaded var_dump work fine. | ||||
Steps To Reproduce | Example 1: <?php ..should produce (according to the documentation): a: (refcount=2, is_ref=1)=array ( ...but actually produces: a: (refcount=2, is_ref=1), Example 2: <?php ...produces no output whatsoever. | ||||
Additional Information | I am aware that the current stable version and the version I am running may produce different results but I found it odd that a command produces no output whatsoever. Xdebug installed with apt-get (php5-xdebug). | ||||
Tags | No tags attached. | ||||
Operating System | Ubuntu 14.04 | ||||
PHP Version | 5.5.5-5.5.9 | ||||
|
I will have to check the difference in output, but it makes sense that: xdebug_debug_zval("a[2]"); Does not work in 2.2.x, as it's new functionality in 2.3.x. |
|
Apologies, I didn't realise that was a feature in 2.3.x. Sorry about that. I am seeing the a: on a different line, however, which is a minor formatting issue and hardly worth reporting! |
|
The output can indeed be different, but I can't reproduce your output's format. And it makes sense that your example two produces no output, as in Xdebug 2.2 |
Date Modified | Username | Field | Change |
---|---|---|---|
2015-06-02 12:02 | vaughany | New Issue | |
2015-06-02 12:36 | derick | Note Added: 0003105 | |
2015-06-02 13:14 | vaughany | Note Added: 0003106 | |
2015-11-20 23:10 | derick | Category | Usage problems => Documentation |
2015-11-22 15:05 | derick | Note Added: 0003255 | |
2015-11-22 15:05 | derick | Status | new => resolved |
2015-11-22 15:05 | derick | Resolution | open => no change required |
2015-11-22 15:05 | derick | Assigned To | => derick |