mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
Congrats Andrey
This commit is contained in:
parent
46783929a3
commit
fff675c448
@ -2,6 +2,8 @@ PHP 4.0 CHANGE LOG ChangeLog
|
||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||
|
||||
??? ?? 1999, Version 4.0 Beta 2
|
||||
- Fixed a problem with the PHP error handler that could result in a crash
|
||||
on certain operating systems (Zeev)
|
||||
- Apache php_flag values only recognized 'On' (case sensitive) - changed
|
||||
to case insensitive (Zeev)
|
||||
- Fixed a memory leak with switch statement containing return statements
|
||||
|
@ -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…
Reference in New Issue
Block a user