diff options
author | Pierre Joye <pajoye@php.net> | 2011-05-26 14:37:13 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2011-05-26 14:37:13 +0000 |
commit | 885357a711ba0313c3316b1680ba16cac12bd3ad (patch) | |
tree | 6618b5b0eea566fc75f1175cd335b6114ca02e85 /ext | |
parent | 983cedfd941c019845ab6c5ffd076e8c568b2db9 (diff) | |
download | php-git-885357a711ba0313c3316b1680ba16cac12bd3ad.tar.gz |
-fix bug 54935, php_win_err can lead to crash
Diffstat (limited to 'ext')
-rw-r--r-- | ext/standard/dl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/dl.c b/ext/standard/dl.c index c7c4df399d..b1555ea365 100644 --- a/ext/standard/dl.c +++ b/ext/standard/dl.c @@ -148,7 +148,7 @@ PHPAPI int php_load_extension(char *filename, int type, int start_now TSRMLS_DC) if (!handle) { #if PHP_WIN32 char *err = GET_DL_ERROR(); - if (err) { + if (err && (*err != "")) { php_error_docref(NULL TSRMLS_CC, error_type, "Unable to load dynamic library '%s' - %s", libpath, err); LocalFree(err); } else { |