restore_include_path

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

restore_include_pathRestaura el valor de la directiva de configuración include_path

Advertencia

Esta función ha sido declarada OBSOLETA a partir de PHP 7.4.0, y será ELIMINADA a partir de PHP 8.0.0. Su uso está totalmente desaconsejado.

Descripción

restore_include_path(): void

Restaura el valor de la directiva de configuración include_path a su valor original al inicio del script, tal como se indica en el php.ini.

Parámetros

Esta función no tiene parámetros.

Valores devueltos

No devuelve ningún valor.

Historial de cambios

Versión Descripción
8.0.0 Removed this function.
7.4.0 Deprecated this function.

Ejemplos

Ejemplo #1 Ejemplo con restore_include_path()

<?php

echo get_include_path(); // .:/usr/local/lib/php

set_include_path('/inc');

echo
get_include_path(); // /inc

restore_include_path();

// O usar ini_restore()
ini_restore('include_path');

echo
get_include_path(); // .:/usr/local/lib/php

?>

Ver también

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top