summaryrefslogtreecommitdiff
path: root/php/src/IcePHP/Profile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'php/src/IcePHP/Profile.cpp')
-rw-r--r--php/src/IcePHP/Profile.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/php/src/IcePHP/Profile.cpp b/php/src/IcePHP/Profile.cpp
index f2ba707aa70..b1d7cf87a38 100644
--- a/php/src/IcePHP/Profile.cpp
+++ b/php/src/IcePHP/Profile.cpp
@@ -835,7 +835,7 @@ do_load(const string& name, const Ice::StringSeq& args TSRMLS_DC)
return true;
}
-ZEND_FUNCTION(Ice_version)
+ZEND_FUNCTION(Ice_stringVersion)
{
if(ZEND_NUM_ARGS() != 0)
{
@@ -846,6 +846,16 @@ ZEND_FUNCTION(Ice_version)
RETURN_STRINGL(const_cast<char*>(s.c_str()), s.length(), 1);
}
+ZEND_FUNCTION(Ice_intVersion)
+{
+ if(ZEND_NUM_ARGS() != 0)
+ {
+ WRONG_PARAM_COUNT;
+ }
+
+ RETURN_LONG(ICE_INT_VERSION);
+}
+
ZEND_FUNCTION(Ice_loadProfile)
{
if(ZEND_NUM_ARGS() > 1)