~clint-fewbar/ubuntu/precise/php5/php5-5.4-merge

« back to all changes in this revision

Viewing changes to main/php_streams.h

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2011-02-22 09:46:37 UTC
  • mfrom: (1.1.20) (0.3.18 sid)
  • Revision ID: package-import@ubuntu.com-20110222094637-nlu2tvb7oqgaarl0
Tags: 5.3.5-1ubuntu1
* Merge from debian/unstable. Remaining changes:
 - debian/control:
    * Dropped firebird2.1-dev, libc-client-dev, libmcrypt-dev as it is in universe.
    * Dropped libmysqlclient15-dev, build against mysql 5.1.
    * Dropped libcurl-dev not in the archive.
    * Suggest php5-suhosin rather than recommends.
    * Dropped php5-imap, php5-interbase, php5-mcrypt since we have versions 
      already in universe.
    * Dropped libonig-dev and libqgdbm since its in universe. (will be re-added in lucid+1)
    * Dropped locales-all.
  - modulelist: Drop imap, interbase, sybase, and mcrypt.
  - debian/rules:
    * Dropped building of mcrypt, imap, and interbase.
    * Install apport hook for php5.
    * stop mysql instance on clean just in case we failed in tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
   +----------------------------------------------------------------------+
17
17
 */
18
18
 
19
 
/* $Id: php_streams.h 293036 2010-01-03 09:23:27Z sebastian $ */
 
19
/* $Id: php_streams.h 305108 2010-11-05 18:53:48Z cataphract $ */
20
20
 
21
21
#ifndef PHP_STREAMS_H
22
22
#define PHP_STREAMS_H
416
416
#define PHP_STREAM_OPTION_RETURN_ERR            -1 /* problem setting option */
417
417
#define PHP_STREAM_OPTION_RETURN_NOTIMPL        -2 /* underlying stream does not implement; streams can handle it instead */
418
418
 
419
 
/* copy up to maxlen bytes from src to dest.  If maxlen is PHP_STREAM_COPY_ALL, copy until eof(src).
420
 
 * Uses mmap if the src is a plain file and at offset 0 */
 
419
/* copy up to maxlen bytes from src to dest.  If maxlen is PHP_STREAM_COPY_ALL,
 
420
 * copy until eof(src). */
421
421
#define PHP_STREAM_COPY_ALL             ((size_t)-1)
422
422
 
423
423
BEGIN_EXTERN_C()
428
428
#define php_stream_copy_to_stream_ex(src, dest, maxlen, len)    _php_stream_copy_to_stream_ex((src), (dest), (maxlen), (len) STREAMS_CC TSRMLS_CC)
429
429
 
430
430
 
431
 
/* read all data from stream and put into a buffer. Caller must free buffer when done.
432
 
 * The copy will use mmap if available. */
 
431
/* read all data from stream and put into a buffer. Caller must free buffer
 
432
 * when done. */
433
433
PHPAPI size_t _php_stream_copy_to_mem(php_stream *src, char **buf, size_t maxlen,
434
434
                int persistent STREAMS_DC TSRMLS_DC);
435
435
#define php_stream_copy_to_mem(src, buf, maxlen, persistent) _php_stream_copy_to_mem((src), (buf), (maxlen), (persistent) STREAMS_CC TSRMLS_CC)