From 435d275e2b9de8d6100fe38d07e229452d41a832 Mon Sep 17 00:00:00 2001 From: Rico Antonio Felix Date: Sat, 8 Aug 2015 12:22:22 -0400 Subject: Corrected syntax error in documentation code fragment... --- documentation/lambda-functions.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/lambda-functions.html b/documentation/lambda-functions.html index 9278234..288c97b 100644 --- a/documentation/lambda-functions.html +++ b/documentation/lambda-functions.html @@ -57,7 +57,7 @@ other_function(function() { void other_function(Php::Parameters &params) { // make sure the function was really called with at least one parameter - if (params.size() == 0) return nullptr; + if (params.size() == 0) return; // this function is called from PHP user space, and it is called // with a anonymous function as its first parameter -- cgit v1.2.3 From 6d4d44249dc12cad3a179dd7277e1072c7a5b958 Mon Sep 17 00:00:00 2001 From: Rico Antonio Felix Date: Sat, 8 Aug 2015 12:33:09 -0400 Subject: Corrected typographical error... --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ec6254e..2fdcdc4 100644 --- a/README.md +++ b/README.md @@ -56,8 +56,8 @@ The method call to export the above C++ function: ```c extension.add("my_plus", my_plus, { - Php::ByVal("a", Php::numericType), - Php::ByVal("b", Php::numericType) + Php::ByVal("a", Php::numericType), + Php::ByVal("b", Php::numericType) }); ``` @@ -71,7 +71,7 @@ features from the C++11 language. It does not matter if your functions accept st integers, booleans or other native parameters: PHP-CPP takes care of the conversion. The return value of your function is also transformed by PHP-CPP into PHP. -More complicated structured can be handled by PHP-CPP as well. If you would like to return +More complicated structures can be handled by PHP-CPP as well. If you would like to return a nested associative array from your function, you can do so too: ```c -- cgit v1.2.3