]> granicus.if.org Git - php/commitdiff
Allow NULL, too
authorMarcus Boerger <helly@php.net>
Sun, 24 Aug 2003 16:13:23 +0000 (16:13 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 24 Aug 2003 16:13:23 +0000 (16:13 +0000)
Zend/zend_API.c

index 3451f0ff5a81dbf812ff6bca2f944fff9a45c756..9e9643f9f48ad117f321a856e1daba022fb19bc4 100644 (file)
@@ -1736,6 +1736,9 @@ ZEND_API void zend_update_property_string(zend_class_entry *scope, zval *object,
        ALLOC_ZVAL(tmp);
        tmp->is_ref = 0;
        tmp->refcount = 0;
+       if (!value) {
+               value = "";
+       }
        ZVAL_STRING(tmp, value, 1);
        zend_update_property(scope, object, name, name_length, tmp TSRMLS_CC);
 }