PHP 8.6.0 Beta 1 is available for testing

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 está OBSOLETA a partir de PHP 7.4.0, y ha sido ELIMINADA a partir de PHP 8.0.0. Depender de esta función está altamente desaconsejado.

Descripción

function 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 contiene ningún parámetro.

Valores devueltos

No se retorna ningún valor.

Historial de cambios

Versión Descripción
8.0.0 Esta función ha sido eliminada.
7.4.0 Esta función está obsoleta.

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
?>

Véase también

Found A Problem?

Learn How To Improve This PageSubmit a Pull RequestReport a Bug
+add a note

User Contributed Notes

There are no user contributed notes for this page.

AltStyle によって変換されたページ (->オリジナル) /