Skip to content

Commit ce7afeb

Browse files
committed
drop hhvm
1 parent 6dd2363 commit ce7afeb

File tree

4 files changed

+2
-62
lines changed

4 files changed

+2
-62
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Unreleased
44
- Changed `wp_cache_*()` function signatures to match core
5+
- Removed deprecated HHVM support
56
- Removed deprecated `WP_REDIS_SERIALIZER` constant
67

78
## 2.6.5

includes/diagnostics.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@
4646
$info['PHP Version'] = PHP_VERSION;
4747
}
4848

49-
if ( defined( 'HHVM_VERSION' ) ) {
50-
$info['HHVM Version'] = HHVM_VERSION;
51-
}
52-
5349
$info['Plugin Version'] = WP_REDIS_VERSION;
5450
$info['Redis Version'] = $roc->get_redis_version() ?: 'Unknown';
5551

includes/object-cache.php

Lines changed: 1 addition & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -519,18 +519,11 @@ public function __construct( $fail_gracefully = false ) {
519519

520520
$this->cache_group_types();
521521

522-
if ( defined( 'WP_REDIS_TRACE' ) && WP_REDIS_TRACE ) {
523-
trigger_error('Tracing feature was removed', E_USER_DEPRECATED);
524-
}
525-
526522
$client = $this->determine_client();
527523
$parameters = $this->build_parameters();
528524

529525
try {
530526
switch ( $client ) {
531-
case 'hhvm':
532-
$this->connect_using_hhvm( $parameters );
533-
break;
534527
case 'phpredis':
535528
$this->connect_using_phpredis( $parameters );
536529
break;
@@ -600,7 +593,7 @@ protected function determine_client() {
600593
$client = 'predis';
601594

602595
if ( class_exists( 'Redis' ) ) {
603-
$client = defined( 'HHVM_VERSION' ) ? 'hhvm' : 'phpredis';
596+
$client = 'phpredis';
604597
}
605598

606599
if ( defined( 'WP_REDIS_CLIENT' ) ) {
@@ -1067,55 +1060,6 @@ protected function connect_using_credis( $parameters ) {
10671060
);
10681061
}
10691062

1070-
/**
1071-
* Connect to Redis using HHVM's Redis extension.
1072-
*
1073-
* @param array $parameters Connection parameters built by the `build_parameters` method.
1074-
* @return void
1075-
*/
1076-
protected function connect_using_hhvm( $parameters ) {
1077-
trigger_error('HHVM support is deprecated and will be removed in the future', E_USER_DEPRECATED);
1078-
1079-
$this->redis = new Redis();
1080-
1081-
// Adjust host and port if the scheme is `unix`.
1082-
if ( strcasecmp( 'unix', $parameters['scheme'] ) === 0 ) {
1083-
$parameters['host'] = 'unix://' . $parameters['path'];
1084-
$parameters['port'] = 0;
1085-
}
1086-
1087-
$this->redis->connect(
1088-
$parameters['host'],
1089-
$parameters['port'],
1090-
$parameters['timeout'],
1091-
null,
1092-
$parameters['retry_interval']
1093-
);
1094-
1095-
if ( $parameters['read_timeout'] ) {
1096-
$this->redis->setOption( Redis::OPT_READ_TIMEOUT, $parameters['read_timeout'] );
1097-
}
1098-
1099-
if ( isset( $parameters['password'] ) ) {
1100-
$this->redis->auth( $parameters['password'] );
1101-
}
1102-
1103-
if ( isset( $parameters['database'] ) ) {
1104-
if ( ctype_digit( (string) $parameters['database'] ) ) {
1105-
$parameters['database'] = (int) $parameters['database'];
1106-
}
1107-
1108-
if ( $parameters['database'] ) {
1109-
$this->redis->select( $parameters['database'] );
1110-
}
1111-
}
1112-
1113-
$this->diagnostics = array_merge(
1114-
[ 'client' => sprintf( 'HHVM Extension (v%s)', HHVM_VERSION ) ],
1115-
$parameters
1116-
);
1117-
}
1118-
11191063
/**
11201064
* Fetches Redis `INFO` mostly for server version.
11211065
*

tests/PHPStan/bootstrap.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
exit(2);
88
}
99

10-
const HHVM_VERSION = '0.0.0';
1110
const WPINC = 'wp-includes';
1211
const WP_CONTENT_DIR = './';
1312
const WP_DEBUG_DISPLAY = true;

0 commit comments

Comments
 (0)