2015-01-03 17:22:58 +08:00
|
|
|
/*
|
2003-02-01 09:49:15 +08:00
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| Zend Engine |
|
|
|
|
+----------------------------------------------------------------------+
|
2019-01-30 17:23:29 +08:00
|
|
|
| Copyright (c) Zend Technologies Ltd. (http://www.zend.com) |
|
2003-02-01 09:49:15 +08:00
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| This source file is subject to version 2.00 of the Zend license, |
|
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
2003-06-11 04:04:29 +08:00
|
|
|
| available through the world-wide-web at the following url: |
|
2003-02-01 09:49:15 +08:00
|
|
|
| http://www.zend.com/license/2_00.txt. |
|
|
|
|
| If you did not receive a copy of the Zend license and are unable to |
|
|
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
|
|
| license@zend.com so we can mail you a copy immediately. |
|
|
|
|
+----------------------------------------------------------------------+
|
2018-11-01 23:20:07 +08:00
|
|
|
| Authors: Andi Gutmans <andi@php.net> |
|
|
|
|
| Zeev Suraski <zeev@php.net> |
|
2003-02-01 09:49:15 +08:00
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
*/
|
|
|
|
|
2000-12-27 06:15:13 +08:00
|
|
|
#ifndef _ZEND_STDIOSTREAM
|
|
|
|
#define _ZEND_STDIOSTREAM
|
|
|
|
|
|
|
|
#if defined(ZTS) && !defined(HAVE_CLASS_ISTDIOSTREAM)
|
|
|
|
class istdiostream : public istream
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
stdiobuf _file;
|
|
|
|
public:
|
|
|
|
istdiostream (FILE* __f) : istream(), _file(__f) { init(&_file); }
|
|
|
|
stdiobuf* rdbuf()/* const */ { return &_file; }
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
2001-01-12 19:14:46 +08:00
|
|
|
#endif
|