View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000723 | Xdebug | Uncategorized | public | 2011-09-29 23:22 | 2011-09-30 09:58 |
Reporter | lkladar | Assigned To | derick | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | x86_63 | OS | Linux debian | OS Version | 6.0.2 |
Product Version | 2.1.0 | ||||
Summary | 0000723: xdebug is stricter than PHP regarding Exception property types | ||||
Description | setting the Exception line value to a string triggers the "Fatal error: Your exception class uses incorrect types for common properties: 'message' and 'file' need to be a string and 'line' needs to be an integer." error PHP seems to enforce this in the Exception constructor, but lets you set it after the constructor and after that it just works it looks more like PHP should be more aggressive with this or let it go, but from the outside it looks like xdebug breaks perfectly working PHP | ||||
Steps To Reproduce | throwing this exception: class MyException extends Exception { with xdebug enabled | ||||
Additional Information | full repro case at https://gist.github.com/1251971 | ||||
Tags | No tags attached. | ||||
Operating System | linux debian | ||||
PHP Version | 5.3.7 | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2011-09-29 23:23 | lkladar | New Issue | |
2011-09-30 09:58 | derick | Note Added: 0001825 | |
2011-09-30 09:58 | derick | Status | new => closed |
2011-09-30 09:58 | derick | Assigned To | => derick |
2011-09-30 09:58 | 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 |