From fe01577619bee7010ed5e707a4edc216827c20a1 Mon Sep 17 00:00:00 2001 From: Faustin Date: Thu, 18 Aug 2022 17:01:30 +0200 Subject: [PATCH] cleaning up php-imap lib --- htdocs/includes/webklex/php-imap/.travis.yml | 34 ----- htdocs/includes/webklex/php-imap/_config.yml | 1 - htdocs/includes/webklex/php-imap/phpunit.xml | 32 ----- .../webklex/php-imap/vendor/bin/phpunit | 123 ------------------ 4 files changed, 190 deletions(-) delete mode 100644 htdocs/includes/webklex/php-imap/.travis.yml delete mode 100644 htdocs/includes/webklex/php-imap/_config.yml delete mode 100644 htdocs/includes/webklex/php-imap/phpunit.xml delete mode 100755 htdocs/includes/webklex/php-imap/vendor/bin/phpunit diff --git a/htdocs/includes/webklex/php-imap/.travis.yml b/htdocs/includes/webklex/php-imap/.travis.yml deleted file mode 100644 index 26e564efd77..00000000000 --- a/htdocs/includes/webklex/php-imap/.travis.yml +++ /dev/null @@ -1,34 +0,0 @@ -language: php - -os: linux -dist: xenial - -php: - - 5.6 - - 7.0 - - 7.1 - - 7.2 - - 7.3 - - 7.4 - - hhvm - -jobs: - fast_finish: true - allow_failures: - - php: 7.3 - - php: 7.4 - - php: hhvm - -before_install: - - COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-source --no-interaction --dev - -install: - - COMPOSER_MEMORY_LIMIT=-1 composer install --no-interaction - -script: - - ./vendor/bin/phpunit - -notifications: - email: - on_success: always - on_failure: always diff --git a/htdocs/includes/webklex/php-imap/_config.yml b/htdocs/includes/webklex/php-imap/_config.yml deleted file mode 100644 index c4192631f25..00000000000 --- a/htdocs/includes/webklex/php-imap/_config.yml +++ /dev/null @@ -1 +0,0 @@ -theme: jekyll-theme-cayman \ No newline at end of file diff --git a/htdocs/includes/webklex/php-imap/phpunit.xml b/htdocs/includes/webklex/php-imap/phpunit.xml deleted file mode 100644 index bfbb0b093c9..00000000000 --- a/htdocs/includes/webklex/php-imap/phpunit.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - tests - - - - - src/ - - - - - - - - - - - - - \ No newline at end of file diff --git a/htdocs/includes/webklex/php-imap/vendor/bin/phpunit b/htdocs/includes/webklex/php-imap/vendor/bin/phpunit deleted file mode 100755 index e92cddc5036..00000000000 --- a/htdocs/includes/webklex/php-imap/vendor/bin/phpunit +++ /dev/null @@ -1,123 +0,0 @@ -#!/usr/bin/env php -realpath = realpath($opened_path) ?: $opened_path; - $opened_path = 'phpvfscomposer://'.$this->realpath; - $this->handle = fopen($this->realpath, $mode); - $this->position = 0; - - return (bool) $this->handle; - } - - public function stream_read($count) - { - $data = fread($this->handle, $count); - - if ($this->position === 0) { - $data = preg_replace('{^#!.*\r?\n}', '', $data); - } - $data = str_replace('__DIR__', var_export(dirname($this->realpath), true), $data); - $data = str_replace('__FILE__', var_export($this->realpath, true), $data); - - $this->position += strlen($data); - - return $data; - } - - public function stream_cast($castAs) - { - return $this->handle; - } - - public function stream_close() - { - fclose($this->handle); - } - - public function stream_lock($operation) - { - return $operation ? flock($this->handle, $operation) : true; - } - - public function stream_seek($offset, $whence) - { - if (0 === fseek($this->handle, $offset, $whence)) { - $this->position = ftell($this->handle); - return true; - } - - return false; - } - - public function stream_tell() - { - return $this->position; - } - - public function stream_eof() - { - return feof($this->handle); - } - - public function stream_stat() - { - return array(); - } - - public function stream_set_option($option, $arg1, $arg2) - { - return true; - } - - public function url_stat($path, $flags) - { - $path = substr($path, 17); - if (file_exists($path)) { - return stat($path); - } - - return false; - } - } - } - - if ( - (function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true)) - || (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper')) - ) { - include("phpvfscomposer://" . __DIR__ . '/..'.'/phpunit/phpunit/phpunit'); - exit(0); - } -} - -include __DIR__ . '/..'.'/phpunit/phpunit/phpunit';