release; } public function require_all_upgrades() { return false; } /** * * @return Array */ public function concern() { return $this->concern; } /** * @param base $databox */ public function apply(base &$appbox) { $registry = $appbox->get_registry(); $sql = 'UPDATE registry SET type = :type, value = :value WHERE `key` = :key'; $stmt = $appbox->get_connection()->prepare($sql); $binaries = array( 'GV_cli', 'GV_imagick', 'GV_pathcomposite', 'GV_swf_extract', 'GV_pdf2swf', 'GV_swf_render', 'GV_unoconv', 'GV_ffmpeg', 'GV_ffprobe', 'GV_mp4box', 'GV_pdftotext', 'GV_cli', ); foreach ($binaries as $binary) { $value = is_executable($registry->get($binary)) ? $registry->get($binary) : ''; $stmt->execute(array( ':type' => \registry::TYPE_BINARY, ':key' => $binary, ':value' => $value, )); } $stmt->closeCursor(); return true; } }