View Issue Details

IDProjectCategoryView StatusLast Update
0000391XdebugUncategorizedpublic2009-12-29 17:19
ReporterKrishna Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
OSFreeBSD 7.0 amd64 
Product Version2.0.0dev 
Summary0000391: When PHP runs with Xdebug it doesn't stop executing script when type hinting leads to fatal error
Description

When PHP runs with Xdebug it doesn't stop executing script when type hinting leads to fatal error. Without Xdebugs it stops.

Steps To Reproduce

<?php

class A
{
public $x = 1;
}

class B
{
public function myMethod(A $y)
{
echo $y;
}
}

$z = new B();
$z->myMethod(123);
echo "And going and going...";
?>

This code leads to Catchable fatal error: Argument 1 passed to B::myMethod() must be an instance of A, integer given, called in /var/www/dev1/html/test.php on line 17 and defined in /var/www/dev1/html/test.php on line 10

BUT!

when

zend_extension=/usr/local/lib/php/20060613/xdebug.so is commented in php.ini (XDebug off) - the script stops and we do not get any messages. But if XDebug is active we get error again, followed by output of:

123And going and going...

Additional Information

PHP 5.2.6 (from /usr/ports/)

Xdebug part in php.ini:

[xdebug]

xdebug.remote_autostart = Off
xdebug.remote_enable = On
xdebug.remote_host = 192.168.3.38
xdebug.remote_log = "/var/log/xdebug_remote.log"
xdebug.show_exception_trace = On
xdebug.var_display_max_depth = 3
xdebug.profiler_append = Off
xdebug.profiler_enable = On
xdebug.profiler_enable_trigger = On
xdebug.profiler_output_dir = /var/www/dev1/tmp
;xdebug.profiler_output_name =
xdebug.var_display_max_data = 65536

TagsNo tags attached.
Operating SystemFreeBSD 7.0 amd64
PHP Version5.2.6

Relationships

has duplicate 0000408 resolvedderick Script is not aborted on E_RECOVERABLE_ERROR errors 

Activities

Krishna

2008-07-23 14:26

reporter   ~0000866

Please read "Steps To Reproduce"!

P.S. This bug can be affilated to 0000389

tomas

2008-09-20 22:28

reporter   ~0000878

Last edited: 2008-09-20 22:30

PHP with xdebug enabled does not stop script on RECOVERABLE ERRORS. See bug 0000408.

edited on: 2008-09-20 23:30

k-fish

2008-12-11 21:10

reporter   ~0000899

related to 0000389, has duplicate 0000408

I could reproduce this with PHP 5.3.0alpha3 and XDebug 2.1.0-dev as of today.

derick

2009-12-29 17:19

administrator   ~0001231

Fixed in rev. 3178—it was only slightly related to 0000389.

Issue History

Date Modified Username Field Change
2008-07-22 16:11 Krishna New Issue
2008-07-23 14:26 Krishna Note Added: 0000866
2008-09-20 22:28 tomas Note Added: 0000878
2008-09-20 22:30 tomas Note Edited: 0000878
2008-12-11 21:10 k-fish Note Added: 0000899
2008-12-20 19:49 derick Relationship added has duplicate 0000408
2009-12-29 17:19 derick Note Added: 0001231
2009-12-29 17:19 derick Status new => closed
2009-12-29 17:19 derick Resolution open => fixed
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized