Issue #1786056 by japerry, cs_shadow, Turek: Notice: Use of undefined constant PHP_MAJOR_VERSION