View Issue Details

IDProjectCategoryView StatusLast Update
0001217XdebugUncategorizedpublic2015-12-07 11:32
Reporterderick Assigned To 
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version2.4.0rc1 
Target Version2.4.0Fixed in Version2.4.0rc2 
Summary0001217: Xdebug messes with catching Error (and inherited classes)
Description

It's really because xdebug.show_error_trace defaults to 1.

There is an issue at https://github.com/sebastianbergmann/phpunit/issues/1972

Steps To Reproduce

Run this with Xdebug, and with xdebug.show_error_trace=1 (the default)

<?php

class Foo
{
public function foo(string $string)
{
}
}

try {
$foo = new Foo(null);
} catch (TypeError $e) {
echo "caught TypeError \n";
}
?>

TagsNo tags attached.
Operating System
PHP Version7.0.0rc7

Activities

derick

2015-11-30 10:36

administrator   ~0003273

Fixed for 2.4.0