summaryrefslogtreecommitdiff
path: root/documentation/calling-functions-and-methods.html
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-23 21:11:57 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-23 21:11:57 +0100
commit68441d448e377f9a61af5c29c793922fff0d9328 (patch)
tree6fc34379b4fc010751c4cd38ea0722f37f1cf085 /documentation/calling-functions-and-methods.html
parentd8b25fe2e585634567483124a33c3b779d2516f5 (diff)
errors have a limited buffer, and discard any overflow data, replaced std::cout calls with Php::out calls in the documentation
Diffstat (limited to 'documentation/calling-functions-and-methods.html')
-rw-r--r--documentation/calling-functions-and-methods.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/documentation/calling-functions-and-methods.html b/documentation/calling-functions-and-methods.html
index d3bc3e2..00f166a 100644
--- a/documentation/calling-functions-and-methods.html
+++ b/documentation/calling-functions-and-methods.html
@@ -36,7 +36,7 @@ void example_function(Php::Parameters &amp;params)
for (auto &key : keys)
{
// output key
- std::cout &lt;&lt; "key: " &lt;&lt; key &lt;&lt; std::endl;
+ Php::out &lt;&lt; "key: " &lt;&lt; key &lt;&lt; std::endl;
}
// call a function from user space
@@ -46,7 +46,7 @@ void example_function(Php::Parameters &amp;params)
Php::Object time("DateTime", "now");
// call a method on the datetime object
- std::cout &lt;&lt; time.call("format", "Y-m-d H:i:s") &lt;&lt; std::endl;
+ Php::out &lt;&lt; time.call("format", "Y-m-d H:i:s") &lt;&lt; std::endl;
// second parameter is a callback function
Php::Value callback = params[1];
@@ -60,7 +60,7 @@ void example_function(Php::Parameters &amp;params)
Php::Array time_format({time, "format"});
// call the method that is stored in the array
- std::cout &lt;&lt; time_format("Y-m-d H:i:s") &lt;&lt; std::endl;
+ Php::out &lt;&lt; time_format("Y-m-d H:i:s") &lt;&lt; std::endl;
}
/**