diff options
author | Mark Spruiell <mes@zeroc.com> | 2012-12-26 15:16:24 -0800 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2012-12-26 15:16:24 -0800 |
commit | 899c375da6787c33073997eb3722342a0cc971f3 (patch) | |
tree | 9f369f06baa9634c88f6c646e9f399ab44d49657 /php/src/IcePHP/Communicator.cpp | |
parent | OS X installer updates (diff) | |
download | ice-899c375da6787c33073997eb3722342a0cc971f3.tar.bz2 ice-899c375da6787c33073997eb3722342a0cc971f3.tar.xz ice-899c375da6787c33073997eb3722342a0cc971f3.zip |
compact ID support for scripting languages
Diffstat (limited to 'php/src/IcePHP/Communicator.cpp')
-rw-r--r-- | php/src/IcePHP/Communicator.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/php/src/IcePHP/Communicator.cpp b/php/src/IcePHP/Communicator.cpp index d03801ade74..5b782c81ed0 100644 --- a/php/src/IcePHP/Communicator.cpp +++ b/php/src/IcePHP/Communicator.cpp @@ -11,6 +11,7 @@ #include <Logger.h> #include <Properties.h> #include <Proxy.h> +#include <Types.h> #include <Util.h> #include <IceUtil/Options.h> #include <IceUtil/MutexPtrLock.h> @@ -916,6 +917,8 @@ ZEND_FUNCTION(Ice_initialize) } } + initData.compactIdResolver = new IdResolver; + CommunicatorInfoIPtr info = initializeCommunicator(return_value, seq, hasArgs, initData TSRMLS_CC); if(!info) { @@ -1316,6 +1319,11 @@ parseProfiles(const string& file TSRMLS_DC) return true; } +// +// Necessary to suppress warnings from calls to INI_STR macro. +// +#pragma GCC diagnostic ignored "-Wwrite-strings" + bool IcePHP::communicatorInit(TSRMLS_D) { @@ -1349,12 +1357,12 @@ IcePHP::communicatorInit(TSRMLS_D) // Create the profiles from configuration settings. // const char* empty = ""; - const char* config = INI_STR("ice.config"); + const char* config = INI_STR("ice.config"); // Needs to be a string literal! if(!config) { config = empty; } - const char* options = INI_STR("ice.options"); + const char* options = INI_STR("ice.options"); // Needs to be a string literal! if(!options) { options = empty; @@ -1364,7 +1372,7 @@ IcePHP::communicatorInit(TSRMLS_D) return false; } - const char* profiles = INI_STR("ice.profiles"); + const char* profiles = INI_STR("ice.profiles"); // Needs to be a string literal! if(!profiles) { profiles = empty; |