format(DATE_W3C); $data = [ $mime, $data, '' . '' . '' . 'phpMyAdmin ' . Version::VERSION . '' . 'phpMyAdmin ' . Version::VERSION . '' . '' . $dateTimeCreation . '' . '' . '', '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '', '' . '' . '' . '' . '' . '' . '', ]; $name = ['mimetype', 'content.xml', 'meta.xml', 'styles.xml', 'META-INF/manifest.xml']; $zipExtension = new ZipExtension(); $fileContents = $zipExtension->createFile($data, $name); if ($fileContents === false) { // TODO: this needs to gracefully fail instead of returning false or empty string return ''; } return $fileContents; } }