From: Pierre Joye Date: Thu, 26 May 2011 14:37:13 +0000 (+0000) Subject: -fix bug 54935, php_win_err can lead to crash X-Git-Tag: php-5.4.0alpha1~130 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d1ea827f27177f871d81f239045f91168af89520;p=php -fix bug 54935, php_win_err can lead to crash --- 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 {