Mailinglisten-Archive |
Christoph Leske wrote:
> Aber warum finde ich die genaue Beschreibung des Befehls nicht im 3.0.6
> PDF Handbuch von PHP?
flock gibt es seit:
kk_(at)_poe ~/php3/functions $ cvs annotate file.c | less
[ del del del ]
1.197 (sas 31-Jan-99): PHP_FE(flock, NULL)
[ del del del ]
1.197 (sas 31-Jan-99): /* {{{ proto bool flock(int fp, int operation
)
1.197 (sas 31-Jan-99): portable file locking */
1.197 (sas 31-Jan-99): PHP_FUNCTION(flock)
1.197 (sas 31-Jan-99): {
1.197 (sas 31-Jan-99): pval *arg1, *arg2;
[ del del del ]
Das übersetzt sich zu
kk_(at)_poe ~/php3/functions $ cvs status -v file.c
php_3_0_7pre (revision: 1.199)
php_3_0_6 (revision: 1.191)
oder im Klartext: Die Funktion ist nach dem Release von php_3_0_6
und vor dem Release von php_3_0_7pre eingefügt worden.
> Eine weitere Frage ist: wie hebt man das File-Locking hinterher wieder
> auf?
http://www.php.net/manual/function.flock.php3
Dort ist alles haarklein erläutert, auch die Rückgabewerte.
kristian
--
Kristian Köhntopp, NetUSE Kommunikationstechnologie GmbH
Siemenswall, D-24107 Kiel, Germany, +49 431 386 436 00
Using PHP3? See our web development library at
http://phplib.shonline.de/ (GPL)
php::bar PHP Wiki - Listenarchive