downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

imap_get_quota> <imap_fetchtext
[edit] Last updated: Fri, 24 May 2013

view this page in

imap_gc

(PHP 5 >= 5.3.0)

imap_gcEfface le cache IMAP

Description

bool imap_gc ( resource $imap_stream , int $caches )

Supprime toutes les entrées d'un type donné dans le cache IMAP.

Liste de paramètres

imap_stream

Un flux IMAP retourné par la fonction imap_open().

caches

Indique le type de cache à purger. Cela peut être la combinaison des constantes suivantes : IMAP_GC_ELT (cache des éléments de message), IMAP_GC_ENV (enveloppe et corps), IMAP_GC_TEXTS (textes).

Valeurs de retour

Returns TRUE.

Exemples

Exemple #1 Exemple avec imap_gc()

<?php

$mbox 
imap_open("{imap.example.org:143}""username""password");

imap_gc($mboxIMAP_GC_ELT);

?>



add a note add a note User Contributed Notes imap_gc - [1 notes]
up
0
Anonymous
3 years ago
If you notice that you're program's memory usage is increasing (as observed using ps) while calling the imap functions, calling this function should free that memory.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites