summaryrefslogtreecommitdiff
path: root/zend/hashmember.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/hashmember.cpp
parentda4710512865e6816585ac4ab8edab2fa125e2d8 (diff)
renamed src directory to zend directory, disabled TSRM debug code
Diffstat (limited to 'zend/hashmember.cpp')
-rw-r--r--zend/hashmember.cpp40
1 files changed, 40 insertions, 0 deletions
diff --git a/zend/hashmember.cpp b/zend/hashmember.cpp
new file mode 100644
index 0000000..f6f8483
--- /dev/null
+++ b/zend/hashmember.cpp
@@ -0,0 +1,40 @@
+/**
+ * HashMember.cpp
+ *
+ * @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
+ * @copyright 2013 Copernica BV
+ */
+#include "includes.h"
+
+/**
+ * Set up namespace
+ */
+namespace Php {
+
+/**
+ * Custom output stream operator
+ * @param stream
+ * @param value
+ * @return ostream
+ */
+std::ostream &operator<<(std::ostream &stream, const HashMember<int> &value)
+{
+ return stream << value.value();
+}
+
+/**
+ * Custom output stream operator
+ * @param stream
+ * @param value
+ * @return ostream
+ */
+std::ostream &operator<<(std::ostream &stream, const HashMember<std::string> &value)
+{
+ return stream << value.value();
+}
+
+/**
+ * End of namespace
+ */
+}
+