http_persistent_handles_ident
(PECL pecl_http >= 1.5.0)
http_persistent_handles_ident — Obtener/modificar el identificador del control de persistencia
Descripción
string http_persistent_handles_ident
([ string
$ident
] )Consultar o definir el identificador del control de persistencia.
Parámetros
-
ident -
string identificador
Valores devueltos
en caso de éxito, devuelve el identificador anterior en forma de string o FALSE en caso de error.
Ejemplos
Ejemplo #1 A http_persistent_handles_ident() example
<?php
echo http_persistent_handles_ident("CUSTOM"), "\n";
echo http_persistent_handles_ident("MyApp1"), "\n";
http_get("http://www.example.com/");
print_r(http_persistent_handles_count());
?>
El resultado del ejemplo sería:
GLOBAL
CUSTOM
stdClass Object
(
[http_request] => Array
(
[MyApp1] => Array
(
[used] => 0
[free] => 1
)
)
[http_request_datashare] => Array
(
[GLOBAL] => Array
(
[used] => 1
[free] => 0
)
)
[http_request_pool] => Array
(
)
)
Ver también
- http_persistent_handles_count() - Estadísticas del control del persistencias
- http_persistent_handles_clean() - Cierra el control de persistencia
There are no user contributed notes for this page.
