(PHP 5 >= 5.3.0, PHP 7, PHP 8)
streamWrapper::stream_set_option — Akım seçeneklerini değiştirir
Bu yöntem akıma seçenek atamak için çağrılır.
seçenek
Şunlardan biri olmalıdır:
STREAM_OPTION_BLOCKING
(Yöntem stream_set_blocking() işlevine yanıtta çağrılmış)STREAM_OPTION_READ_TIMEOUT
(Yöntem stream_set_timeout() işlevine yanıtta çağrılmış)STREAM_OPTION_WRITE_BUFFER
(Yöntem stream_set_write_buffer() işlevine yanıtta çağrılmış)arg1
seçenek
değerine göre:
STREAM_OPTION_BLOCKING
: İstenen engelleme kipi (engelleniyorsa 1, engellenmiyorsa 0).STREAM_OPTION_READ_TIMEOUT
: Saniye cinsinden zama aşımı.STREAM_OPTION_WRITE_BUFFER
: Tamponlama kipi (STREAM_BUFFER_NONE
veya STREAM_BUFFER_FULL
).arg2
seçenek
değerine göre:
STREAM_OPTION_BLOCKING
: Bu seçenek atanmaz.STREAM_OPTION_READ_TIMEOUT
: Mikrosaniye cinsinden zaman aşımı.STREAM_OPTION_WRITE_BUFFER
: İstenen tampon boyutu. Başarı durumunda true
, başarısızlık durumunda false
döner. seçenek
gerçeklenmezse false
dönmelidir.