From: Wez Furlong Date: Tue, 3 Aug 2004 00:47:57 +0000 (+0000) Subject: Avoid possible exception X-Git-Tag: PRE_ZEND_VM_DISPATCH_PATCH~262 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=99639f79b6698d98b1c5e7ccaa34367431dd2ce8;p=php Avoid possible exception --- diff --git a/ext/ming/config.w32 b/ext/ming/config.w32 index 78baa2603d..4c73e85834 100644 --- a/ext/ming/config.w32 +++ b/ext/ming/config.w32 @@ -15,7 +15,7 @@ function ming_check_version() } c = file_get_contents(ming_h + "\\ming.h"); - if (c.match(/MING_VERSION\s+(0.[a-zA-Z0-9]+)/)) { + if (typeof(c) == "string" && c.match(/MING_VERSION\s+(0.[a-zA-Z0-9]+)/)) { v = RegExp.$1; if (v > "0.2") { if (CHECK_LIB("libungif.lib", "ming", PHP_MING) &&