You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Read the maximum number of filters from context stream. If it is set, it
doesn't make sense to raise a deprecation warning, because this stream
context option didn't exist earlier. We raise an error consistent with
current stream handling, as long as rfc/stream_errors has not landed.
If it is not set, we give a deprecation warning when the 17th filter is
added. This is unfortunately done in another place; to prevent showing
warnings multiple times, the counting is done within the loop and not at
the end.
if (warn_filter_count&&count==max_filter_count_default) {
182
+
zend_error(E_DEPRECATED, "Using more than %d filters in a php://filter URL is deprecated, "
183
+
"set this limit using the stream context option max_filter_count, or use stream_filter_append", max_filter_count_default);
184
+
}
185
+
156
186
php_url_decode(p, strlen(p));
157
187
if (read_chain) {
158
-
if (php_stream_filter_count(&stream->readfilters) ==max_stream_filters) {
159
-
zend_error(E_DEPRECATED, "Using more than %d filters in a php://filter URL is deprecated, use stream_filter_append to chain more than %d filters", max_stream_filters, max_stream_filters);
160
-
}
161
188
if ((temp_filter=php_stream_filter_create(p, NULL, php_stream_is_persistent(stream)))) {
php_error_docref(NULL, E_WARNING, "Unable to create filter (%s)", p);
165
192
}
166
193
}
167
194
if (write_chain) {
168
-
if (php_stream_filter_count(&stream->writefilters) ==max_stream_filters) {
169
-
zend_error(E_DEPRECATED, "Using more than %d filters in a php://filter URL is deprecated, use stream_filter_append to chain more than %d filters", max_stream_filters, max_stream_filters);
170
-
}
171
195
if ((temp_filter=php_stream_filter_create(p, NULL, php_stream_is_persistent(stream)))) {
Deprecated: Using more than 16 filters in a php://filter URL is deprecated, use stream_filter_append to chain more than 16 filters in %smax_filter_chain.php on line %d
71
+
Deprecated: Using more than 16 filters in a php://filter URL is deprecated, set this limit using the stream context option max_filter_count, or use stream_filter_append in %smax_filter_chain.php on line %d
60
72
string(9) "SEVENTEEN"
61
73
62
-
Deprecated: Using more than 16 filters in a php://filter URL is deprecated, use stream_filter_append to chain more than 16 filters in %smax_filter_chain.php on line %d
74
+
Deprecated: Using more than 16 filters in a php://filter URL is deprecated, set this limit using the stream context option max_filter_count, or use stream_filter_append in %smax_filter_chain.php on line %d
63
75
string(9) "SEVENTEEN"
64
76
65
-
Deprecated: Using more than 16 filters in a php://filter URL is deprecated, use stream_filter_append to chain more than 16 filters in %smax_filter_chain.php on line %d
77
+
Deprecated: Using more than 16 filters in a php://filter URL is deprecated, set this limit using the stream context option max_filter_count, or use stream_filter_append in %smax_filter_chain.php on line %d
66
78
string(9) "SEVENTEEN"
67
79
68
-
Deprecated: Using more than 16 filters in a php://filter URL is deprecated, use stream_filter_append to chain more than 16 filters in %smax_filter_chain.php on line %d
80
+
Deprecated: Using more than 16 filters in a php://filter URL is deprecated, set this limit using the stream context option max_filter_count, or use stream_filter_append in %smax_filter_chain.php on line %d
69
81
int(1)
70
82
71
-
Deprecated: Using more than 16 filters in a php://filter URL is deprecated, use stream_filter_append to chain more than 16 filters in %smax_filter_chain.php on line %d
83
+
Deprecated: Using more than 16 filters in a php://filter URL is deprecated, set this limit using the stream context option max_filter_count, or use stream_filter_append in %smax_filter_chain.php on line %d
72
84
int(1)
73
85
74
-
Deprecated: Using more than 16 filters in a php://filter URL is deprecated, use stream_filter_append to chain more than 16 filters in %smax_filter_chain.php on line %d
86
+
Deprecated: Using more than 16 filters in a php://filter URL is deprecated, set this limit using the stream context option max_filter_count, or use stream_filter_append in %smax_filter_chain.php on line %d
75
87
int(1)
76
88
77
-
Deprecated: Using more than 16 filters in a php://filter URL is deprecated, use stream_filter_append to chain more than 16 filters in %smax_filter_chain.php on line %d
89
+
Warning: file_get_contents(php://filter/string.toupper|string.toupper|string.toupper/resource=data:text/plain,three): Failed to open stream: too many filters in %s on line %d
90
+
bool(false)
91
+
92
+
Warning: file_get_contents(php://filter/string.toupper/string.toupper/string.toupper/resource=data:text/plain,three): Failed to open stream: too many filters in %s on line %d
93
+
bool(false)
94
+
95
+
Warning: file_get_contents(php://filter/string.toupper/resource=php://filter/string.toupper/resource=php://filter/string.toupper/resource=data:text/plain,three): Failed to open stream: too many filters in %s on line %d
96
+
bool(false)
97
+
string(8) "NINETEEN"
98
+
string(8) "NINETEEN"
99
+
string(8) "NINETEEN"
100
+
101
+
Deprecated: Using more than 16 filters in a php://filter URL is deprecated, set this limit using the stream context option max_filter_count, or use stream_filter_append in %smax_filter_chain.php on line %d
78
102
string(8) "EIGHTEEN"
79
103
80
-
Deprecated: Using more than 16 filters in a php://filter URL is deprecated, use stream_filter_append to chain more than 16 filters in %smax_filter_chain.php on line %d
104
+
Deprecated: Using more than 16 filters in a php://filter URL is deprecated, set this limit using the stream context option max_filter_count, or use stream_filter_append in %smax_filter_chain.php on line %d
81
105
string(8) "EIGHTEEN"
82
106
83
-
Deprecated: Using more than 16 filters in a php://filter URL is deprecated, use stream_filter_append to chain more than 16 filters in %smax_filter_chain.php on line %d
107
+
Deprecated: Using more than 16 filters in a php://filter URL is deprecated, set this limit using the stream context option max_filter_count, or use stream_filter_append in %smax_filter_chain.php on line %d
0 commit comments