]> granicus.if.org Git - php/commitdiff
Avoid possible exception
authorWez Furlong <wez@php.net>
Tue, 3 Aug 2004 00:47:57 +0000 (00:47 +0000)
committerWez Furlong <wez@php.net>
Tue, 3 Aug 2004 00:47:57 +0000 (00:47 +0000)
ext/ming/config.w32

index 78baa2603d42ffc4a3acb8be0577fe311819d07b..4c73e858347347e261a66b7dd32643fb649b8f73 100644 (file)
@@ -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) &&