]> granicus.if.org Git - php/commitdiff
Use ""'s if you want empty strings. We want to crash on errors.
authorZeev Suraski <zeev@php.net>
Sun, 24 Aug 2003 16:27:01 +0000 (16:27 +0000)
committerZeev Suraski <zeev@php.net>
Sun, 24 Aug 2003 16:27:01 +0000 (16:27 +0000)
Zend/zend_API.c

index 9e9643f9f48ad117f321a856e1daba022fb19bc4..3451f0ff5a81dbf812ff6bca2f944fff9a45c756 100644 (file)
@@ -1736,9 +1736,6 @@ 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);
 }