Skip to content

Commit db28e1c

Browse files
committed
2.0.0
1 parent 74e576d commit db28e1c

164 files changed

Lines changed: 1864 additions & 1535 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ext/opcache/ZendAccelerator.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ typedef struct _zend_accel_directives {
152152
zend_long memory_consumption;
153153
zend_long static_cache_volatile_size_mb;
154154
zend_long static_cache_pinned_size_mb;
155-
bool static_cache_allow_unsafe_runtime;
156155
zend_long max_accelerated_files;
157156
double max_wasted_percentage;
158157
char *user_blacklist_filename;

ext/opcache/opcache.stub.php

Lines changed: 49 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,15 @@ enum CacheStrategy: int
7373
case Tracking = 1;
7474
}
7575

76+
enum CacheStoreType
77+
{
78+
case NotFound;
79+
case Scalar;
80+
case SharedGraph;
81+
case OPcacheSerialized;
82+
case PHPSerialized;
83+
}
84+
7685
#[\Attribute(13)] /* TARGET_CLASS | TARGET_METHOD | TARGET_PROPERTY */
7786
final class VolatileStatic
7887
{
@@ -83,58 +92,68 @@ final class VolatileStatic
8392
public function __construct(int $ttl = 0, CacheStrategy $strategy = CacheStrategy::Immediate) {}
8493
}
8594

86-
function volatile_store(string $key, null|bool|int|float|string|array|object $value, int $ttl = 0, bool $throw_on_error = false): bool {}
95+
final class VolatileCache
96+
{
97+
public static function get(string $key, null|bool|int|float|string|array|object $default = null): null|bool|int|float|string|array|object {}
8798

88-
function volatile_store_array(array $values, int $ttl = 0, bool $throw_on_error = false): bool {}
99+
/**
100+
* @return array<string, null|bool|int|float|string|array|object>|false
101+
*/
102+
public static function getMultiple(array $keys, ?array $default = null): array|false {}
89103

90-
function volatile_fetch(string $key, null|bool|int|float|string|array|object $default = null, bool $throw_on_error = false): null|bool|int|float|string|array|object {}
104+
public static function set(string $key, null|bool|int|float|string|array|object $value, int $ttl = 0): bool {}
91105

92-
/**
93-
* @return array<string, null|bool|int|float|string|array|object>|false
94-
*/
95-
function volatile_fetch_array(array $keys, ?array $default = null, bool $throw_on_error = false): array|false {}
106+
public static function setMultiple(array $values, int $ttl = 0): bool {}
96107

97-
function volatile_exists(string $key, bool $throw_on_error = false): bool {}
108+
public static function has(string $key): bool {}
98109

99-
function volatile_lock(string $key, int $lease = 0, bool $throw_on_error = false): bool {}
110+
public static function delete(string $key_or_class): bool {}
100111

101-
function volatile_unlock(string $key, bool $throw_on_error = false): bool {}
112+
public static function deleteMultiple(array $keys): bool {}
102113

103-
function volatile_delete(string $key_or_class, bool $throw_on_error = false): bool {}
114+
public static function clear(): bool {}
104115

105-
function volatile_delete_array(array $keys, bool $throw_on_error = false): bool {}
116+
public static function lock(string $key, int $lease = 0): bool {}
106117

107-
function volatile_clear(bool $throw_on_error = false): bool {}
118+
public static function unlock(string $key): bool {}
108119

109-
function volatile_cache_info(): StaticCacheInfo {}
120+
public static function getCacheStoreType(string $key_or_property, ?string $class_name = null): CacheStoreType {}
110121

111-
function pinned_store(string $key, null|bool|int|float|string|array|object $value, bool $throw_on_error = false): bool {}
122+
public static function info(): StaticCacheInfo {}
123+
}
112124

113-
function pinned_store_array(array $values, bool $throw_on_error = false): bool {}
125+
final class PinnedCache
126+
{
127+
public static function get(string $key, null|bool|int|float|string|array|object $default = null): null|bool|int|float|string|array|object {}
114128

115-
function pinned_fetch(string $key, null|bool|int|float|string|array|object $default = null, bool $throw_on_error = false): null|bool|int|float|string|array|object {}
129+
/**
130+
* @return array<string, null|bool|int|float|string|array|object>|false
131+
*/
132+
public static function getMultiple(array $keys, ?array $default = null): array|false {}
116133

117-
/**
118-
* @return array<string, null|bool|int|float|string|array|object>|false
119-
*/
120-
function pinned_fetch_array(array $keys, ?array $default = null, bool $throw_on_error = false): array|false {}
134+
public static function set(string $key, null|bool|int|float|string|array|object $value): bool {}
121135

122-
function pinned_exists(string $key, bool $throw_on_error = false): bool {}
136+
public static function setMultiple(array $values): bool {}
123137

124-
function pinned_lock(string $key, int $lease = 0, bool $throw_on_error = false): bool {}
138+
public static function has(string $key): bool {}
125139

126-
function pinned_unlock(string $key, bool $throw_on_error = false): bool {}
140+
public static function delete(string $key_or_class): bool {}
127141

128-
function pinned_delete(string $key_or_class, bool $throw_on_error = false): bool {}
142+
public static function deleteMultiple(array $keys): bool {}
129143

130-
function pinned_delete_array(array $keys, bool $throw_on_error = false): bool {}
144+
public static function clear(): bool {}
131145

132-
function pinned_clear(bool $throw_on_error = false): bool {}
146+
public static function lock(string $key, int $lease = 0): bool {}
133147

134-
function pinned_atomic_increment(string $key, int $step = 1, bool $throw_on_error = false): int|false {}
148+
public static function unlock(string $key): bool {}
135149

136-
function pinned_atomic_decrement(string $key, int $step = 1, bool $throw_on_error = false): int|false {}
150+
public static function increment(string $key, int $step = 1): int|false {}
137151

138-
function pinned_cache_info(): StaticCacheInfo {}
152+
public static function decrement(string $key, int $step = 1): int|false {}
153+
154+
public static function getCacheStoreType(string $key_or_property, ?string $class_name = null): CacheStoreType {}
155+
156+
public static function info(): StaticCacheInfo {}
157+
}
139158

140159
}

0 commit comments

Comments
 (0)