View Revisions: Issue #1586

Summary 0001586: error_reporting()'s return value is incorrect during debugger's 'eval' command
Revision 2019-05-06 09:28 by derick
Steps To Reproduce 1) Set error_reporting to `E_ALL & ~E_NOTICE`
2) Create a php script:
<?php

echo $undefined;

3) Make sure that regular execution doesn't generate PHP Notification
4) Start Xdebug debug session
5) Enable notify feature
<- feature_set -i 5 -n notify_ok -v 1
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="5" feature="notify_ok" success="1"></response>

6) Finish debug session
7) Note that there's a notification in xdebug log:
-> <notify xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" name="error"><xdebug:message filename="file:///path/to/project/withNotice.php" lineno="6" type="Notice"><![CDATA[Undefined variable: x]]></xdebug:message></notify>
Revision 2018-11-12 12:18 by LanaZem
Steps To Reproduce 1) Set error_reporting to `E_ALL & ~E_NOTICE`
2) Create a php script:
```
<?php

echo $undefined;
```
3) Make sure that regular execution doesn't generate PHP Notification
4) Start Xdebug debug session
5) Enable notify feature
```
<- feature_set -i 5 -n notify_ok -v 1
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="5" feature="notify_ok" success="1"></response>
```
6) Finish debug session
7) Note that there's a notification in xdebug log:
```
-> <notify xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" name="error"><xdebug:message filename="file:///path/to/project/withNotice.php" lineno="6" type="Notice"><![CDATA[Undefined variable: x]]></xdebug:message></notify>
```