From ea36fc4143188228eb31c54b746e9d5884db5cd6 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Sun, 24 Aug 2003 16:27:01 +0000 Subject: [PATCH] Use ""'s if you want empty strings. We want to crash on errors. --- Zend/zend_API.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 9e9643f9f4..3451f0ff5a 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -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); } -- 2.40.0