File tree 1 file changed +10
-1
lines changed
src/Peachpie.Library/Streams
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,16 @@ public static bool stream_context_set_option(PhpResource stream_or_context, stri
180
180
/// <param name="stream_or_context">The PhpResource of either PhpStream or StreamContext type.</param>
181
181
/// <param name="options">The options to set for <paramref name="stream_or_context"/>.</param>
182
182
/// <returns>True on success.</returns>
183
- public static bool stream_context_set_option ( PhpResource stream_or_context , PhpArray options )
183
+ //[Obsolete("Deprecated as of PHP 8.4.0, use stream_context_set_options() instead.")]
184
+ public static bool stream_context_set_option ( PhpResource stream_or_context , PhpArray options ) => stream_context_set_options ( stream_or_context , options ) ;
185
+
186
+ /// <summary>
187
+ /// Sets an option for a stream/wrapper/context.
188
+ /// </summary>
189
+ /// <param name="stream_or_context">The PhpResource of either PhpStream or StreamContext type.</param>
190
+ /// <param name="options">The options to set for <paramref name="stream_or_context"/>.</param>
191
+ /// <returns>True on success.</returns>
192
+ public static bool stream_context_set_options ( PhpResource stream_or_context , PhpArray options )
184
193
{
185
194
// OK, creates the context if Default, so that Data is always a PhpArray.
186
195
// Fails only if the first argument is not a stream nor context.
You can’t perform that action at this time.
0 commit comments