HHVM lacks the dba_open function, which causes scap to fail. For the moment the script on mira has been live hacked to use php5 instead of hhvm.
The hack is uncommitted on mira in srv/deployment/scap/scap:
diff --git a/bin/refreshCdbJsonFiles b/bin/refreshCdbJsonFiles index 69e0df8..27f50e0 100755 --- a/bin/refreshCdbJsonFiles +++ b/bin/refreshCdbJsonFiles @@ -1,4 +1,4 @@ -#!/usr/bin/env php +#!/usr/bin/env php5 <?php /** diff --git a/scap/tasks.py b/scap/tasks.py index a3d4798..28fd2ff 100644 --- a/scap/tasks.py +++ b/scap/tasks.py @@ -81,7 +81,7 @@ def check_valid_syntax(*paths): quoted_paths = ["'%s'" % x for x in paths] cmd = ( "find %s -name '*.php' -or -name '*.inc' -or -name '*.phtml' " - " -or -name '*.php5' | xargs -n1 -P%d -exec php -l >/dev/null" + " -or -name '*.php5' | xargs -n1 -P%d -exec php5 -l >/dev/null" ) % (' '.join(quoted_paths), multiprocessing.cpu_count()) logger.debug('Running command: `%s`', cmd) subprocess.check_call(cmd, shell=True)