Skip to content

Commit 508acf8

Browse files
committed
Fix for PHP 8.2+
1 parent d1a42dc commit 508acf8

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

php_compat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
#if PHP_VERSION_ID < 80200
3+
#if PHP_VERSION_ID < 80400
44
#define RETURN_THIS() ZVAL_COPY(return_value, getThis()); return
55
#endif
66

tests/url-no-fd.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Constructor falls back to FILE* for stream wrappers that cannot be cast to a fil
66
/* A stream wrapper that delegates reads/seeks to a real file but never
77
* exposes a file descriptor (no stream_cast method). */
88
class NoFdWrapper {
9+
public $context;
910
private $fp;
1011

1112
public function stream_open(string $path, string $mode,

0 commit comments

Comments
 (0)