mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
Avoid possible exception
This commit is contained in:
parent
a27afba6ff
commit
99639f79b6
@ -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) &&
|
||||
|
Loading…
Reference in New Issue
Block a user