CakeFest 2024: The Official CakePHP Conference

svn_cleanup

(PECL svn >= 0.1.0)

svn_cleanupRecursively cleanup a working copy directory, finishing incomplete operations and removing locks

Beschreibung

svn_cleanup(string $workingdir): bool

Recursively cleanup working copy directory workingdir, finishing any incomplete operations and removing working copy locks. Use when a working copy is in limbo and needs to be usable again.

Parameter-Liste

workingdir

String path to local working directory to cleanup

Hinweis: Relative Pfade werden so aufgelöst, als ob das aktuelle Verzeichnis das wäre, in dem sich das PHP-Binary befindet. Um stattdessen das aktuelle Verzeichnis des aufrufenden Skripts zu nutzen, muss die Funktion realpath() oder dirname(__FILE__) verwendet werden.

Rückgabewerte

Gibt bei Erfolg true zurück. Bei einem Fehler wird false zurückgegeben.

Beispiele

Beispiel #1 Basic example

This example demonstrates clean up of a working copy in a directory named help-me:

<?php
svn_cleanup
(realpath('help-me'));
?>

The realpath() call is necessary due to SVN's quirky handling of relative paths.

Anmerkungen

Warnung

Diese Funktion ist EXPERIMENTELL. Das Verhalten, der Funktionsname und die zugehörige Dokumentation können sich in zukünftigen PHP-Versionen ohne Ankündigung ändern. Die Verwendung dieser Funktion erfolgt auf eigene Gefahr.

add a note

User Contributed Notes

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