summaryrefslogtreecommitdiff
path: root/php/src/IcePHP/Properties.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'php/src/IcePHP/Properties.cpp')
-rw-r--r--php/src/IcePHP/Properties.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/php/src/IcePHP/Properties.cpp b/php/src/IcePHP/Properties.cpp
index 66c49f8569d..df83ef4517c 100644
--- a/php/src/IcePHP/Properties.cpp
+++ b/php/src/IcePHP/Properties.cpp
@@ -555,7 +555,16 @@ ZEND_FUNCTION(Ice_createProperties)
try
{
- Ice::PropertiesPtr props = Ice::createProperties(seq, defaults);
+ Ice::PropertiesPtr props;
+ if(arglist || defaults)
+ {
+ props = Ice::createProperties(seq, defaults);
+ }
+ else
+ {
+ props = Ice::createProperties();
+ }
+
if(!createProperties(return_value, props TSRMLS_CC))
{
RETURN_NULL();