summaryrefslogtreecommitdiff
path: root/zend/streams.cpp
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-04-06 21:53:24 +0200
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-04-06 21:53:24 +0200
commit35fd3ccbeb4def71b4d8a59dfbb5c31201b099b9 (patch)
tree915223360aed4743aa6127fde4836aa413a260e5 /zend/streams.cpp
parentda4710512865e6816585ac4ab8edab2fa125e2d8 (diff)
renamed src directory to zend directory, disabled TSRM debug code
Diffstat (limited to 'zend/streams.cpp')
-rw-r--r--zend/streams.cpp40
1 files changed, 40 insertions, 0 deletions
diff --git a/zend/streams.cpp b/zend/streams.cpp
new file mode 100644
index 0000000..ba6d916
--- /dev/null
+++ b/zend/streams.cpp
@@ -0,0 +1,40 @@
+/**
+ * Streams.cpp
+ *
+ * Implementation of the streams
+ *
+ * @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
+ * @copyright 2014 Copernica BV
+ */
+#include "includes.h"
+
+/**
+ * Set up namespace
+ */
+namespace Php {
+
+/**
+ * Some static buffers for writing data
+ * @var StreamBuf
+ */
+static StreamBuf bufOut (0);
+static StreamBuf bufError (E_ERROR);
+static StreamBuf bufWarning (E_WARNING);
+static StreamBuf bufNotice (E_NOTICE);
+static StreamBuf bufDeprecated (E_DEPRECATED);
+
+/**
+ * Create the actual steams
+ * @var std::ostream
+ */
+std::ostream out (&bufOut);
+std::ostream error (&bufError);
+std::ostream warning (&bufWarning);
+std::ostream notice (&bufNotice);
+std::ostream deprecated (&bufDeprecated);
+
+/**
+ * End namespace
+ */
+}
+