summaryrefslogtreecommitdiff
path: root/src/function.cpp
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2013-09-11 08:00:28 -0700
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2013-09-11 08:00:28 -0700
commit68fd128d82819db1022137a45ca3224cee8ef029 (patch)
tree6f01d5456d830de9d24150ec56e5c1ee4d464faa /src/function.cpp
parentf08f5850fa39c42974e12e42fa101ffe51eef594 (diff)
The environment object that is passed to functions now always is the same environment object, added move operator= to Value class to make moving zvals faster, and added request startup and request closedown methods
Diffstat (limited to 'src/function.cpp')
-rw-r--r--src/function.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/function.cpp b/src/function.cpp
index 10b47b9..2afc1be 100644
--- a/src/function.cpp
+++ b/src/function.cpp
@@ -37,11 +37,8 @@ void invoke_function(INTERNAL_FUNCTION_PARAMETERS)
// construct parameters
Parameters params(ZEND_NUM_ARGS());
- // @todo get the appropriate request (or environment)
- Environment environment(NULL);
-
// get the result
- result = function->invoke(environment, params);
+ result = function->invoke(*PHPCPP_G(environment), params);
}
/**