summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorClark Tomlinson <fallen013@gmail.com>2015-01-23 10:28:47 -0500
committerClark Tomlinson <fallen013@gmail.com>2015-01-23 10:28:47 -0500
commitf8b1fde2c06575de79035f6690bda8a24c9802e9 (patch)
tree7a8407583278cffdfba5969960864c9a44bdd08d /lib
parent080a41a32642e027f6bc73bb6b5d08937f129aa4 (diff)
parent30a5758a95f612d00f9aed934819f16c67aceefc (diff)
downloadnextcloud-server-f8b1fde2c06575de79035f6690bda8a24c9802e9.tar.gz
nextcloud-server-f8b1fde2c06575de79035f6690bda8a24c9802e9.zip
Merge pull request #13626 from owncloud/check-for-hhvm
Don't check for `always_populate_raw_post_data` on HHVM
Diffstat (limited to 'lib')
-rw-r--r--lib/private/util.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/private/util.php b/lib/private/util.php
index 35b86da5d53..c08cff81469 100644
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -633,9 +633,14 @@ class OC_Util {
* PHP 5.6 ships with a PHP setting which throws notices by default for a
* lot of endpoints. Thus we need to ensure that the value is set to -1
*
+ * FIXME: Due to https://github.com/owncloud/core/pull/13593#issuecomment-71178078
+ * this check is disabled for HHVM at the moment. This should get re-evaluated
+ * at a later point.
+ *
* @link https://github.com/owncloud/core/issues/13592
*/
if(version_compare(phpversion(), '5.6.0', '>=') &&
+ !self::runningOnHhvm() &&
\OC::$server->getIniWrapper()->getNumeric('always_populate_raw_post_data') !== -1) {
$errors[] = array(
'error' => $l->t('PHP is configured to populate raw post data. Since PHP 5.6 this will lead to PHP throwing notices for perfectly valid code.'),
@@ -1241,6 +1246,15 @@ class OC_Util {
}
/**
+ * Checks whether server is running on HHVM
+ *
+ * @return bool True if running on HHVM, false otherwise
+ */
+ public static function runningOnHhvm() {
+ return defined('HHVM_VERSION');
+ }
+
+ /**
* Handles the case that there may not be a theme, then check if a "default"
* theme exists and take that one
*