View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001160 | Xdebug | Uncategorized | public | 2015-06-10 08:03 | 2015-06-18 09:32 |
| Reporter | bogeux | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | duplicate | ||
| Platform | x86_64 | OS | Linux debian | OS Version | 6.0.10 |
| Product Version | 2.3.2 | ||||
| Fixed in Version | 2.3.3 | ||||
| Summary | 0001160: xdebug is still stricter than PHP regarding the code property type | ||||
| Description | According to the issue http://bugs.xdebug.org/bug_view_page.php?bug_id=00000723 we still can't set a string code and throw the exception. In this case the code would be overrite with the value (int)0; | ||||
| Steps To Reproduce | With xdebug (2.3.2) enabled : class myException extends Exception { $ex = new myException('foo', 'foo'); Output : | ||||
| Tags | No tags attached. | ||||
| Operating System | linux debian | ||||
| PHP Version | 5.6.0-5.6.4 | ||||
|
|
Little fail in my "Steps To Reproduce", the type in the catch sould be myException. |
|
|
It's a duplicate of 0001133, which I've already fixed. I've verified it with your example too: derick@whisky:~ $ php --ri xdebug | grep Version derick@whisky:~ $ php /tmp/foo.php derick@whisky:~ $ php --ri xdebug | grep Version derick@whisky:~ $ php /tmp/foo.php derick@whisky:~ $ cat /tmp/foo.php $ex = new myException('foo', 'foo'); |