summaryrefslogtreecommitdiff
path: root/php/src
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2016-02-09 15:19:03 -0800
committerMark Spruiell <mes@zeroc.com>2016-02-09 15:19:03 -0800
commit2fa55f190efe5a0409be24c5107ddac79b2a3a6b (patch)
treed931db935809d9614b970e68b1574bb55fa9918d /php/src
parentUpdated Objective-C mapping to use new stream classes (diff)
downloadice-2fa55f190efe5a0409be24c5107ddac79b2a3a6b.tar.bz2
ice-2fa55f190efe5a0409be24c5107ddac79b2a3a6b.tar.xz
ice-2fa55f190efe5a0409be24c5107ddac79b2a3a6b.zip
minor fixes to stream classes; restoring test/Ice/stream
Diffstat (limited to 'php/src')
-rw-r--r--php/src/IcePHP/Operation.cpp4
-rw-r--r--php/src/IcePHP/Types.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/php/src/IcePHP/Operation.cpp b/php/src/IcePHP/Operation.cpp
index a6bb7e4d7ed..283f61ddd82 100644
--- a/php/src/IcePHP/Operation.cpp
+++ b/php/src/IcePHP/Operation.cpp
@@ -528,7 +528,7 @@ IcePHP::TypedInvocation::prepareRequest(int argc, zval** args, Ice::OutputStream
{
ParamInfoPtr info = *p;
zval* arg = args[info->pos];
- if(!isUnset(arg TSRMLS_CC) && os->writeOpt(info->tag, info->type->optionalFormat()))
+ if(!isUnset(arg TSRMLS_CC) && os->writeOptional(info->tag, info->type->optionalFormat()))
{
info->type->marshal(arg, os, &objectMap, true TSRMLS_CC);
}
@@ -623,7 +623,7 @@ IcePHP::TypedInvocation::unmarshalResults(int argc, zval** args, zval* ret,
outParamCallbacks[info->pos] = cb;
}
- if(is.readOpt(info->tag, info->type->optionalFormat()))
+ if(is.readOptional(info->tag, info->type->optionalFormat()))
{
info->type->unmarshal(&is, cb, _communicator, 0, 0, true TSRMLS_CC);
}
diff --git a/php/src/IcePHP/Types.cpp b/php/src/IcePHP/Types.cpp
index 0aa78e4791b..c98e51e7b2a 100644
--- a/php/src/IcePHP/Types.cpp
+++ b/php/src/IcePHP/Types.cpp
@@ -3018,7 +3018,7 @@ IcePHP::ObjectWriter::writeMembers(Ice::OutputStream* os, const DataMemberList&
zval** val = reinterpret_cast<zval**>(data);
if(member->optional && (isUnset(*val TSRMLS_CC) ||
- !os->writeOpt(member->tag, member->type->optionalFormat())))
+ !os->writeOptional(member->tag, member->type->optionalFormat())))
{
continue;
}
@@ -3102,7 +3102,7 @@ IcePHP::ObjectReader::__read(Ice::InputStream* is)
for(p = info->optionalMembers.begin(); p != info->optionalMembers.end(); ++p)
{
DataMemberPtr member = *p;
- if(is->readOpt(member->tag, member->type->optionalFormat()))
+ if(is->readOptional(member->tag, member->type->optionalFormat()))
{
member->type->unmarshal(is, member, _communicator, _object, 0, true TSRMLS_CC);
}
@@ -3265,7 +3265,7 @@ IcePHP::ExceptionInfo::unmarshal(Ice::InputStream* is, const CommunicatorInfoPtr
for(q = info->optionalMembers.begin(); q != info->optionalMembers.end(); ++q)
{
DataMemberPtr member = *q;
- if(is->readOpt(member->tag, member->type->optionalFormat()))
+ if(is->readOptional(member->tag, member->type->optionalFormat()))
{
member->type->unmarshal(is, member, comm, zv, 0, true TSRMLS_CC);
}