summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2011-05-26 14:37:13 +0000
committerPierre Joye <pajoye@php.net>2011-05-26 14:37:13 +0000
commit2c9136a25e3e0e279193a95d4bcca23a289232e1 (patch)
tree8c2774df3756514f44dad2bbc114aad4cb202ca5
parent565d0063ebcd12531a2b6da4fcee19efe984fa14 (diff)
downloadphp-git-2c9136a25e3e0e279193a95d4bcca23a289232e1.tar.gz
-fix bug 54935, php_win_err can lead to crash
-rw-r--r--ext/standard/dl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/dl.c b/ext/standard/dl.c
index 9099edfafd..b59cf58567 100644
--- a/ext/standard/dl.c
+++ b/ext/standard/dl.c
@@ -145,7 +145,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 {