php_user_filter::filter

(PHP 5, PHP 7, PHP 8)

php_user_filter::filterCalled when applying the filter

Beschreibung

public php_user_filter::filter(
    resource $in,
    resource $out,
    int &$consumed,
    bool $closing
): int

This method is called whenever data is read from or written to the attached stream (such as with fread() or fwrite()).

Parameter-Liste

in

in is a resource pointing to a bucket brigade which contains one or more bucket objects containing data to be filtered.

out

out is a resource pointing to a second bucket brigade into which your modified buckets should be placed.

consumed

consumed, which must always be declared by reference, should be incremented by the length of the data which your filter reads in and alters. In most cases this means you will increment consumed by $bucket->datalen for each $bucket.

closing

If the stream is in the process of closing (and therefore this is the last pass through the filterchain), the closing parameter will be set to true.

Rückgabewerte

The filter() method must return one of three values upon completion.

Return Value Meaning
PSFS_PASS_ON Filter processed successfully with data available in the out bucket brigade.
PSFS_FEED_ME Filter processed successfully, however no data was available to return. More data is required from the stream or prior filter.
PSFS_ERR_FATAL (default) The filter experienced an unrecoverable error and cannot continue.

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

ytotec Snabb leverans. Köp Cytotec Online Fedex - köp Cytotec inget recept. Umeå – S

Snabb leverans Cytotec. Köp Cytotec Online Fedex Behöver du pålitliga, högkvalitativa mediciner, men vill inte lämna hemmet för att köpa de ...

Geschrieben von travelder am 19.06.2026 20:57:48
Forum: Bücher-Forum
evia Buy anonymously. Revia cheap order - Pharmacy Brand Revia. Leeds — United Kingd

Buy anonymously Revia. Revia cheap order Looking for top-notch meds without leaving home? Look no further! Our trusted online store has got you co ...

Geschrieben von drawer am 19.06.2026 20:57:43
Forum: Ankündigungen
rmodafinil Kopen. Koop de volgende dag Armodafinil online - Armodafinil Koop ons AME

Kopen Armodafinil. Koop de volgende dag Armodafinil online Op zoek naar eersteklas medicijnen zonder dat u uw huis hoeft te verlaten? Zoek niet ve ...

Geschrieben von travelder am 19.06.2026 20:57:16
Forum: Projekthilfe
ylenol Precio. comprar Tylenol 0 5mg online - comprar Tylenol Europa. Málaga — Españ

Precio Tylenol. comprar Tylenol 0 5mg online ¿Necesita medicamentos de calidad sin complicaciones? ¡Nuestra farmacia en línea está aquí para ...

Geschrieben von travelder am 19.06.2026 20:56:11
Forum: Entwicklungsumgebungen