Congrats Andrey

This commit is contained in:
Zeev Suraski 1999-07-24 20:36:31 +00:00
parent 46783929a3
commit fff675c448
2 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -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;