iliaa Tue Mar 4 16:46:33 2003 EDT
Modified files:
/php4 README.STREAMS
Log:
Added notes about locking functions.
Index: php4/README.STREAMS
diff -u php4/README.STREAMS:1.10 php4/README.STREAMS:1.11
--- php4/README.STREAMS:1.10 Mon Nov 11 13:05:22 2002
+++ php4/README.STREAMS Tue Mar 4 16:46:33 2003
@@ -1,6 +1,6 @@
An Overview of the PHP Streams abstraction
==========================================
-$Id: README.STREAMS,v 1.10 2002/11/11 18:05:22 helly Exp $
+$Id: README.STREAMS,v 1.11 2003/03/04 21:46:33 iliaa Exp $
WARNING: some prototypes in this file are out of date.
The information contained here is being integrated into
@@ -37,9 +37,10 @@
PHPAPI int php_stream_flush(php_stream * stream);
PHPAPI int php_stream_seek(php_stream * stream, off_t offset, int whence);
PHPAPI off_t php_stream_tell(php_stream * stream);
+PHPAPI int php_stream_lock(php_stream * stream, int mode);
These (should) behave in the same way as the ANSI stdio functions with similar
-names: fread, fwrite, fprintf, feof, fgetc, fgets, fclose, fflush, fseek, ftell.
+names: fread, fwrite, fprintf, feof, fgetc, fgets, fclose, fflush, fseek, ftell,
flock.
Opening Streams
===============
@@ -156,6 +157,11 @@
NOTE: If you are opening a stream and need it to be seekable, use the
STREAM_MUST_SEEK option to php_stream_open_wrapper();
+
+PHPAPI int php_stream_supports_lock(php_stream * stream);
+
+This function will return either 1 (success) or 0 (failure) indicating whether or
+not a lock can be set on this stream. Typically you can only set locks on stdio
streams.
Casting Streams
===============
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php