stream_set_blocking

(PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8)

stream_set_blockingSet blocking/non-blocking mode on a stream

Beschreibung

stream_set_blocking(resource $stream, bool $enable): bool

Sets blocking or non-blocking mode on a stream.

This function works for any stream that supports non-blocking mode (currently, regular files and socket streams).

Parameter-Liste

stream

The stream.

enable

If enable is false, the given stream will be switched to non-blocking mode, and if true, it will be switched to blocking mode. This affects calls like fgets() and fread() that read from the stream. In non-blocking mode an fgets() call will always return right away while in blocking mode it will wait for data to become available on the stream.

Rückgabewerte

Gibt bei Erfolg true zurück. Bei einem Fehler wird false zurückgegeben.

Anmerkungen

Hinweis:

On Windows, this has no affect on local files. Non-blocking IO for local files is not supported on Windows.

Siehe auch

  • stream_select() - Runs the equivalent of the select() system call on the given arrays of streams with a timeout specified by seconds and microseconds

Hier Kannst Du einen Kommentar verfassen


Bitte gib mindestens 10 Zeichen ein.
Wird geladen... Bitte warte.
* Pflichtangabe
Es sind noch keine Kommentare vorhanden.

Was genau bedeutet "Vibe Coding"? Ein tiefgehender Blick für Entwickler

In der Welt der Softwareentwicklung gibt es unzählige Wege, wie man an ein Projekt herangeht. Manche schwören auf strikte Planung, andere auf bewährte Algorithmen und wieder andere lassen sich von etwas ganz anderem leiten: ihrem Gefühl. ...

admin

Autor : admin
Kategorie: Software & Web-Development

PHP cURL-Tutorial: Verwendung von cURL zum Durchführen von HTTP-Anfragen

cURL ist eine leistungsstarke PHP-Erweiterung, die es Ihnen ermöglicht, mit verschiedenen Servern über verschiedene Protokolle wie HTTP, HTTPS, FTP und mehr zu kommunizieren. ...

TheMax

Autor : TheMax
Kategorie: PHP-Tutorials

Midjourney Tutorial - Anleitung für Anfänger

Über Midjourney, dem Tool zur Erstellung digitaler Bilder mithilfe von künstlicher Intelligenz, gibt es ein informatives Video mit dem Titel "Midjourney Tutorial auf Deutsch - Anleitung für Anfänger" ...

Mike94

Autor : Mike94
Kategorie: KI Tutorials

Tutorial veröffentlichen

Tutorial veröffentlichen

Teile Dein Wissen mit anderen Entwicklern weltweit

Du bist Profi in deinem Bereich und möchtest dein Wissen teilen, dann melde dich jetzt an und teile es mit unserer PHP-Community

mehr erfahren

Tutorial veröffentlichen

FULLLZ.ASIA ✅ sells Cloned card including Pin Verify Code Cashout From ATM

FULLLZ.ASIA ✅ Sells ATM Skimmer POS/x2 EMV/DUMPS PIN/OMIKEY/Track+1/2_Zip_state+TX+NJ+CA+NY FULLLZ.ASIA ✅ Verify Seller Dumps Pin track1&2,Pay ...

Geschrieben von dumpstop10 am 13.06.2026 02:36:46
Forum: SEO - Suchmaschinen Tricks und Tipps
FULLLZ.ASIA ✅ includes full info ssn,dob,ssn,dl/social security number/date

FULLLZ.ASIA ✅ Sells ATM Skimmer POS/x2 EMV/DUMPS PIN/OMIKEY/Track+1/2_Zip_state+TX+NJ+CA+NY FULLLZ.ASIA ✅ Verify Seller Dumps Pin track1&2,Pay ...

Geschrieben von dumpstop10 am 13.06.2026 02:34:57
Forum: Provider / Domains
FULLLZ.ASIA ✅ purchase Cashapp/Paypal DUMPS with PINs, EBTs with PINs,

FULLLZ.ASIA ✅ Sells ATM Skimmer POS/x2 EMV/DUMPS PIN/OMIKEY/Track+1/2_Zip_state+TX+NJ+CA+NY FULLLZ.ASIA ✅ Verify Seller Dumps Pin track1&2,Pay ...

Geschrieben von dumpstop10 am 13.06.2026 02:34:24
Forum: Entwicklungsumgebungen
FULLLZ.ASIA ✅ DUMPS WITH PIN SHOP ONLINE+TRACK 1&2 MIX 101

FULLLZ.ASIA ✅ Sells UK SQL Data NIN/National Insurance Number/DOB/Sortcode/BankNum FULLLZ.ASIA ✅ worldwide Dumps With Pin Track 1&2 track1 %B4 ...

Geschrieben von dumpstop10 am 12.06.2026 15:06:22
Forum: Jobgesuche