summaryrefslogtreecommitdiff
path: root/Zend/zend_istdiostream.h
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-12-26 22:15:13 +0000
committerZeev Suraski <zeev@php.net>2000-12-26 22:15:13 +0000
commitdc2f1d9db78d835bdf0bd5b25e18ac834b7c22c6 (patch)
treebda0972a253e9f7dd52b130e4df4e261a3ef2363 /Zend/zend_istdiostream.h
parentf4a53d0665c1ad8b71df8b82a074e10256d3d223 (diff)
downloadphp-git-dc2f1d9db78d835bdf0bd5b25e18ac834b7c22c6.tar.gz
- Use supplied istdiostream definition for the INI scanner too
- Add Release_TSDbg configuration
Diffstat (limited to 'Zend/zend_istdiostream.h')
-rw-r--r--Zend/zend_istdiostream.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/Zend/zend_istdiostream.h b/Zend/zend_istdiostream.h
new file mode 100644
index 0000000000..1796abf15f
--- /dev/null
+++ b/Zend/zend_istdiostream.h
@@ -0,0 +1,15 @@
+#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
+
+#endif \ No newline at end of file