Skip to content

Commit 33f08ff

Browse files
Fix fake_scope now returning a const zend_class_entry
1 parent d74085b commit 33f08ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/user_filters.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ static php_stream_filter_status_t userfilter_filter(
149149
stream->flags |= PHP_STREAM_FLAG_NO_FCLOSE;
150150

151151
/* Give the userfilter class a hook back to the stream */
152-
zend_class_entry *old_scope = EG(fake_scope);
152+
const zend_class_entry *old_scope = EG(fake_scope);
153153
EG(fake_scope) = Z_OBJCE_P(obj);
154154

155155
zend_string *stream_name = ZSTR_INIT_LITERAL("stream", 0);

0 commit comments

Comments
 (0)