Skip to content

Commit eea6900

Browse files
committed
refactor: ZstdContext -> Zstd\(Un)Compress\Context
1 parent 8dac0f1 commit eea6900

File tree

5 files changed

+253
-74
lines changed

5 files changed

+253
-74
lines changed

php_zstd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ extern zend_module_entry zstd_module_entry;
4242
#include "TSRM.h"
4343
#endif
4444

45-
#if PHP_VERSION_ID >= 80000
4645
typedef struct _php_zstd_context php_zstd_context;
4746

47+
#if PHP_VERSION_ID >= 80000
4848
ZEND_BEGIN_MODULE_GLOBALS(zstd)
4949
zend_long output_compression;
5050
zend_long output_compression_default;

tests/inc_comp.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@ foreach ([128, 512, 1024] as $size) {
2525
===Done===
2626
--EXPECTF--
2727
int(128)
28-
object(ZstdContext)#%d (0) {
28+
object(Zstd\Compress\Context)#%d (0) {
2929
}
3030
int(%d)
3131
bool(true)
3232
bool(true)
3333
int(512)
34-
object(ZstdContext)#%d (0) {
34+
object(Zstd\Compress\Context)#%d (0) {
3535
}
3636
int(%d)
3737
bool(true)
3838
bool(true)
3939
int(1024)
40-
object(ZstdContext)#%d (0) {
40+
object(Zstd\Compress\Context)#%d (0) {
4141
}
4242
int(%d)
4343
bool(true)

tests/inc_decomp.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ foreach ([128, 512, 1024] as $size) {
2525
===Done===
2626
--EXPECTF--
2727
int(128)
28-
object(ZstdContext)#%d (0) {
28+
object(Zstd\UnCompress\Context)#%d (0) {
2929
}
3030
bool(true)
3131
int(512)
32-
object(ZstdContext)#%d (0) {
32+
object(Zstd\UnCompress\Context)#%d (0) {
3333
}
3434
bool(true)
3535
int(1024)
36-
object(ZstdContext)#%d (0) {
36+
object(Zstd\UnCompress\Context)#%d (0) {
3737
}
3838
bool(true)
3939
===Done===

0 commit comments

Comments
 (0)