diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-04-06 21:53:24 +0200 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-04-06 21:53:24 +0200 |
commit | 35fd3ccbeb4def71b4d8a59dfbb5c31201b099b9 (patch) | |
tree | 915223360aed4743aa6127fde4836aa413a260e5 /src/global.cpp | |
parent | da4710512865e6816585ac4ab8edab2fa125e2d8 (diff) |
renamed src directory to zend directory, disabled TSRM debug code
Diffstat (limited to 'src/global.cpp')
-rw-r--r-- | src/global.cpp | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/global.cpp b/src/global.cpp deleted file mode 100644 index 7eea8e7..0000000 --- a/src/global.cpp +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Global.cpp - * - * Implementation for the global variable - * - * @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com> - * @copyright 2013 Copernica BV - */ -#include "includes.h" - -/** - * Namespace - */ -namespace Php { - -/** - * Function that is called when the value is updated - * @return Value - */ -Global &Global::update() -{ - // skip if the variable already exists - if (_exists) return *this; - - // we need the TSRMLS variable - TSRMLS_FETCH(); - - // add the variable to the globals - zend_hash_add(EG(active_symbol_table), _name.c_str(), _name.size()+1, &_val, sizeof(zval*), NULL); - - // add one extra reference because the variable now is a global var too - Z_ADDREF_P(_val); - - // remember that the variable now exists - _exists = true; - - // done - return *this; -} - -/** - * End of namespace - */ -} - |