Explorar o código

emit warning if using V8 version < 6.4.388

Stefan Siegl %!s(int64=7) %!d(string=hai) anos
pai
achega
52b9aa4521
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      config.m4

+ 3 - 0
config.m4

@@ -144,6 +144,9 @@ int main ()
     if test "$V8_API_VERSION" -lt 4006076 ; then
        AC_MSG_ERROR([libv8 must be version 4.6.76 or greater])
     fi
+    if test "$V8_API_VERSION" -lt 6004388 ; then
+       AC_MSG_WARN([libv8 prior to 6.4.388.18 is missing speculative execution mitigations])
+    fi
     AC_DEFINE_UNQUOTED([PHP_V8_API_VERSION], $V8_API_VERSION, [ ])
     AC_DEFINE_UNQUOTED([PHP_V8_VERSION], "$ac_cv_v8_version", [ ])
   else