summaryrefslogtreecommitdiff
path: root/src/callable.cpp
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2013-08-29 16:01:04 -0700
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2013-08-29 16:01:04 -0700
commita2b81c7e8642da249acbfa1ca4fe0362a900f0e2 (patch)
tree875785f2e9a1533ae22552f5856e854f3d7d0cd8 /src/callable.cpp
parentb8d747580db76bc3e51bae6c3cdae49b5b44e20b (diff)
More progress on implementing nested arrays
Diffstat (limited to 'src/callable.cpp')
-rw-r--r--src/callable.cpp43
1 files changed, 16 insertions, 27 deletions
diff --git a/src/callable.cpp b/src/callable.cpp
index 7cba919..b9f67d0 100644
--- a/src/callable.cpp
+++ b/src/callable.cpp
@@ -136,43 +136,32 @@ int Callable::invoke(INTERNAL_FUNCTION_PARAMETERS)
// number of arguments on the stack
int arg_count = (int)(zend_uintptr_t) *(zend_vm_stack_top(TSRMLS_C) - 1);
- // loop through the arguments
- Arguments args(ZEND_NUM_ARGS());
-
- for (auto iter = args.begin(); iter != args.end(); iter++)
- {
- Value val = *iter;
-
- val = 1234;
-
- std::cout << "argument: " << iter->stringValue() << std::endl;
- }
-
- int result = do_test(args[1], args[2]);
-
+// // loop through the arguments
+// Arguments args(ZEND_NUM_ARGS());
+//
+// for (auto iter = args.begin(); iter != args.end(); iter++)
+// {
+// Value val = *iter;
+//
+// val = 1234;
+// }
+//
+// int result = do_test(args[1], args[2]);
+//
Value ret(return_value, true);
std::cout << "set property 1" << std::endl;
- ret["a"] = 1;
-
- std::cout << "set property 2" << std::endl;
-
- ret["2"] = 3;
-
-// ret["hmm"]["s"] = 456;
-
- Value sub;
- sub["something"] = "yes";
-
- ret["b"] = sub;
+// ret["b"] = "hallo";
+ ret["x"]["c"]["d"] = "test 123";
+
std::cout << "done setting properties" << std::endl;
//
// // done
-// return SUCCESS;
+ return SUCCESS;
}