diff options
author | Felipe Pena <felipe@php.net> | 2009-11-12 00:10:00 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2009-11-12 00:10:00 +0000 |
commit | 8f0a4517474601df28111c381f8925b416bd2d46 (patch) | |
tree | d82082e136516c1497fc400f816163401b1a8a1b /main | |
parent | 01d9f2c9cefcea3e2742c69cb4968f9b535e6385 (diff) | |
download | php-git-8f0a4517474601df28111c381f8925b416bd2d46.tar.gz |
- Fixed bug #50005 (Throwing through Reflection modified Exception object makes segmentation fault)
Diffstat (limited to 'main')
-rw-r--r-- | main/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/main.c b/main/main.c index 9068ea4b46..12c35ac639 100644 --- a/main/main.c +++ b/main/main.c @@ -889,6 +889,9 @@ static void php_error_cb(int type, const char *error_filename, const uint error_ if (PG(last_error_file)) { free(PG(last_error_file)); } + if (!error_filename) { + error_filename = "Unknown"; + } PG(last_error_type) = type; PG(last_error_message) = strdup(buffer); PG(last_error_file) = strdup(error_filename); |