View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000314Xdebug(No Category)public2007-10-05 14:452007-10-27 20:25
Assigned To 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000314: PHP CLI Error Logging thwarted when XDebug Loaded
DescriptionPHP Error Logging from CLI scripts is thwarted when the XDebug module is loaded. This does not happen if the XDebug module is not included.
Additional InformationConsider:
trigger_error('Error', E_USER_ERROR);

When run through the php cli it shows an error on screen (with display_errors=on), but no error is logged to the PHP error log.
If the XDebug module is disabled then PHP CLI behaves as expected.

I'm experiencing this issue on Debian Lenny (testing) with PHP 5.2.3, and XDebug 2.1-dev, but my friend has the same issue on Debian Etch (stable) with XDebug 2.0.0. I've also experienced this issue with XDebug 2.0.0RC4.

I can make a full 'php -i' available on request.
TagsNo tags attached.
Operating SystemDebian Lenny
PHP Version5.2-dev
Attached Files

- Relationships

-  Notes
rgpjones (reporter)
2007-10-05 14:46

Sorry, I raised this in "Debug Client". I meant "Usage Problems"
rgpjones (reporter)
2007-10-10 18:48

Sorry... this is a dupe of 0000232

If you are experiencing this issue then you need to edit the source code:

file: xdebug.c
function: log_stack
remove the if clause:
if (is_cli) {

Recompile and install:
./configure --enable-xdebug
sudo make install
derick (administrator)
2007-10-27 20:25

Fixed in CVS, thanks for your report!

- Issue History
Date Modified Username Field Change
2007-10-05 14:45 rgpjones New Issue
2007-10-05 14:46 rgpjones Note Added: 0000735
2007-10-10 18:48 rgpjones Note Added: 0000736
2007-10-27 20:25 derick Status new => closed
2007-10-27 20:25 derick Note Added: 0000771
2016-07-31 13:35 derick Category Debug client (console) => debugclient (debugging tool)
2016-07-31 13:35 derick Category debugclient (debugging tool) => (No Category)

Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker