diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-23 21:11:57 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-23 21:11:57 +0100 |
commit | 68441d448e377f9a61af5c29c793922fff0d9328 (patch) | |
tree | 6fc34379b4fc010751c4cd38ea0722f37f1cf085 /documentation/calling-functions-and-methods.html | |
parent | d8b25fe2e585634567483124a33c3b779d2516f5 (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.html | 6 |
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 &params) for (auto &key : keys) { // output key - std::cout << "key: " << key << std::endl; + Php::out << "key: " << key << std::endl; } // call a function from user space @@ -46,7 +46,7 @@ void example_function(Php::Parameters &params) Php::Object time("DateTime", "now"); // call a method on the datetime object - std::cout << time.call("format", "Y-m-d H:i:s") << std::endl; + Php::out << time.call("format", "Y-m-d H:i:s") << std::endl; // second parameter is a callback function Php::Value callback = params[1]; @@ -60,7 +60,7 @@ void example_function(Php::Parameters &params) Php::Array time_format({time, "format"}); // call the method that is stored in the array - std::cout << time_format("Y-m-d H:i:s") << std::endl; + Php::out << time_format("Y-m-d H:i:s") << std::endl; } /** |