diff options
author | Mark Spruiell <mes@zeroc.com> | 2008-02-11 06:39:48 -0800 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2008-02-11 06:39:48 -0800 |
commit | da8abd52c9777e7679af1aa83f52f15114ed8ad7 (patch) | |
tree | 18c647296902d235046a51c3f3b6f8cd650840d9 /php/src/IcePHP/Util.cpp | |
parent | Fixed bug 2658 (diff) | |
download | ice-da8abd52c9777e7679af1aa83f52f15114ed8ad7.tar.bz2 ice-da8abd52c9777e7679af1aa83f52f15114ed8ad7.tar.xz ice-da8abd52c9777e7679af1aa83f52f15114ed8ad7.zip |
bug 2686 - php still using Ice::stringToIdentity
Diffstat (limited to 'php/src/IcePHP/Util.cpp')
-rw-r--r-- | php/src/IcePHP/Util.cpp | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/php/src/IcePHP/Util.cpp b/php/src/IcePHP/Util.cpp index ae5c93d6e79..b3f7051f4b8 100644 --- a/php/src/IcePHP/Util.cpp +++ b/php/src/IcePHP/Util.cpp @@ -9,7 +9,6 @@ #include <Util.h> #include <IceUtil/DisableWarnings.h> -#include <Ice/IdentityUtil.h> #include <algorithm> #include <ctype.h> @@ -74,57 +73,6 @@ splitScopedName(const string& scoped) return ids; } -ZEND_FUNCTION(Ice_stringToIdentity) -{ - if(ZEND_NUM_ARGS() != 1) - { - WRONG_PARAM_COUNT; - } - - char* str; - int len; - - if(zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &len) == FAILURE) - { - RETURN_NULL(); - } - - try - { - Ice::Identity id = Ice::stringToIdentity(str); - createIdentity(return_value, id TSRMLS_CC); - } - catch(const IceUtil::Exception& ex) - { - throwException(ex TSRMLS_CC); - } -} - -ZEND_FUNCTION(Ice_identityToString) -{ - if(ZEND_NUM_ARGS() != 1) - { - WRONG_PARAM_COUNT; - } - - zend_class_entry* cls = findClass("Ice_Identity" TSRMLS_CC); - assert(cls); - - zval *zid; - - if(zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O", &zid, cls) == FAILURE) - { - RETURN_NULL(); - } - - Ice::Identity id; - if(extractIdentity(zid, id TSRMLS_CC)) - { - string s = Ice::identityToString(id); - RETURN_STRINGL(const_cast<char*>(s.c_str()), s.length(), 1); - } -} - bool IcePHP::createIdentity(zval* zv, const Ice::Identity& id TSRMLS_DC) { |