summaryrefslogtreecommitdiff
path: root/php/src/php7/Communicator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'php/src/php7/Communicator.cpp')
-rw-r--r--php/src/php7/Communicator.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/php/src/php7/Communicator.cpp b/php/src/php7/Communicator.cpp
index e9c00aa4c28..e6c34e4b5ac 100644
--- a/php/src/php7/Communicator.cpp
+++ b/php/src/php7/Communicator.cpp
@@ -18,6 +18,7 @@
#include <IceUtil/MutexPtrLock.h>
#include <IceUtil/StringUtil.h>
#include <IceUtil/Timer.h>
+#include <fstream>
#ifdef getcwd
#undef getcwd
@@ -1531,7 +1532,7 @@ parseProfiles(const string& file)
// ice.config = config-file
// ice.options = args
//
- IceUtilInternal::ifstream in(file);
+ ifstream in(IceUtilInternal::streamFilename(file));
if(!in)
{
php_error_docref(0, E_WARNING, "unable to open Ice profiles in %s", file.c_str());