summaryrefslogtreecommitdiff
path: root/src/parameters.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parameters.cpp')
-rw-r--r--src/parameters.cpp46
1 files changed, 0 insertions, 46 deletions
diff --git a/src/parameters.cpp b/src/parameters.cpp
deleted file mode 100644
index c7b61a0..0000000
--- a/src/parameters.cpp
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * Parameters.cpp
- *
- * @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
- * @copyright 2013 Copernica BV
- */
-#include "includes.h"
-
-/**
- * Set up namespace
- */
-namespace Php {
-
-/**
- * Parameters
- * @param this_ptr Pointer to the object
- * @param argc Number of arguments
- * @param tsrm_ls
- */
-Parameters::Parameters(zval *this_ptr, int argc TSRMLS_DC)
-{
- // reserve plenty of space
- reserve(argc);
-
- // loop through the arguments
- for (int i=0; i<argc; i++)
- {
- // get the argument
- zval **arg = (zval **) (zend_vm_stack_top(TSRMLS_C) - 1 - (argc-i));
-
- // append value
- push_back(Value(*arg));
- }
-
- // skip if there is no this_ptr
- if (!this_ptr) return;
-
- // store the CPP object
- _object = ObjectImpl::find(this_ptr TSRMLS_CC)->object();
-}
-
-/**
- * End of namespace
- */
-}
-