summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2009-11-12 00:10:00 +0000
committerFelipe Pena <felipe@php.net>2009-11-12 00:10:00 +0000
commit8f0a4517474601df28111c381f8925b416bd2d46 (patch)
treed82082e136516c1497fc400f816163401b1a8a1b /main
parent01d9f2c9cefcea3e2742c69cb4968f9b535e6385 (diff)
downloadphp-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.c3
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);