diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2011-03-24 12:57:38 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2011-03-24 12:57:38 +0000 |
commit | e42662039f1adaa2e227a04885941bd0e5ed92d1 (patch) | |
tree | 2f32105c03f5158cb294534e66a0348f65f7116b /main | |
parent | 39e0aa4dc6f66ac00cc6e1a86ea9d71bb5f3520f (diff) | |
download | php-git-e42662039f1adaa2e227a04885941bd0e5ed92d1.tar.gz |
Fixed a crash inside dtor for error handling.
Diffstat (limited to 'main')
-rw-r--r-- | main/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/main.c b/main/main.c index d12f7e57e9..ef4c9e8a7c 100644 --- a/main/main.c +++ b/main/main.c @@ -880,9 +880,11 @@ static void php_error_cb(int type, const char *error_filename, const uint error_ if (display) { if (PG(last_error_message)) { free(PG(last_error_message)); + PG(last_error_message) = NULL; } if (PG(last_error_file)) { free(PG(last_error_file)); + PG(last_error_file) = NULL; } if (!error_filename) { error_filename = "Unknown"; |