Skip to content

Commit 02af9ac

Browse files
committed
streams: use precomputed persistant variable
1 parent 67d6160 commit 02af9ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/streams/streams.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2260,7 +2260,7 @@ PHPAPI php_stream *_php_stream_open_wrapper_ex(const char *path, const char *mod
22602260

22612261
/* if the caller asked for a persistent stream but the wrapper did not
22622262
* return one, force an error here */
2263-
if (stream && (options & STREAM_OPEN_PERSISTENT) && !stream->is_persistent) {
2263+
if (stream && persistent && !stream->is_persistent) {
22642264
php_stream_wrapper_log_error(wrapper, options & ~REPORT_ERRORS,
22652265
"wrapper does not support persistent streams");
22662266
php_stream_close(stream);

0 commit comments

Comments
 (0)