mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
Congrats Andrey
This commit is contained in:
parent
46783929a3
commit
fff675c448
2 changed files with 9 additions and 0 deletions
|
@ -359,6 +359,9 @@ PHPAPI void php3_error(int type, const char *format,...)
|
|||
|
||||
error_filename = zend_get_compiled_filename();
|
||||
error_lineno = CG(zend_lineno);
|
||||
if (!error_filename) {
|
||||
error_filename = zend_get_executed_filename(ELS_C);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case E_ERROR:
|
||||
|
@ -372,6 +375,10 @@ PHPAPI void php3_error(int type, const char *format,...)
|
|||
error_lineno = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
if (!error_filename) {
|
||||
error_filename = "Unknown";
|
||||
}
|
||||
|
||||
if (EG(error_reporting) & type || (type & E_CORE)) {
|
||||
char *error_type_str;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue