Skip to content

Commit 314eedb

Browse files
committed
Convert resources to objects in ext/zlib
Closes GH-5680
1 parent 1efaed7 commit 314eedb

File tree

5 files changed

+241
-157
lines changed

5 files changed

+241
-157
lines changed

UPGRADING

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ PHP 8.0 UPGRADE NOTES
440440

441441
- Sysvmsg:
442442
. msg_get_queue() will now return an SysvMessageQueue object rather than a
443-
resource. Return value checks using is_resource() should be replaced with
443+
resource. Return value checks using is_resource() should be replaced with
444444
checks for `false`.
445445

446446
- Sysvsem:
@@ -474,6 +474,12 @@ PHP 8.0 UPGRADE NOTES
474474

475475
- Zlib:
476476
. gzgetss() has been removed.
477+
. inflate_init() will now return an InflateContext object rather than a
478+
resource. Return value checks using is_resource() should be replaced with
479+
checks for `false`.
480+
. deflate_init() will now return a DeflateContext object rather than a
481+
resource. Return value checks using is_resource() should be replaced with
482+
checks for `false`.
477483

478484
========================================
479485
2. New Features

ext/zlib/php_zlib.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ typedef struct _php_zlib_context {
4747
int status;
4848
size_t inflateDictlen;
4949
php_zlib_buffer buffer;
50+
zend_object std;
5051
} php_zlib_context;
5152

5253
ZEND_BEGIN_MODULE_GLOBALS(zlib)

0 commit comments

Comments
 (0)