]> granicus.if.org Git - php/commitdiff
restore old behaviour when casting objects to strings and NULL
authorAntony Dovgal <tony2001@php.net>
Wed, 27 Dec 2006 17:22:22 +0000 (17:22 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 27 Dec 2006 17:22:22 +0000 (17:22 +0000)
Zend/zend_operators.c

index df93a4827a5340a212a3cd6d749608e5a1ce6dc4..f1f4456837e4a46278a1f0f177cb534551ab995e 100644 (file)
@@ -513,7 +513,6 @@ ZEND_API int convert_to_null(zval *op)
                        }
                        *op = *org;
                        FREE_ZVAL(org);
-                       return FAILURE;
                }
        }
 
@@ -902,7 +901,6 @@ ZEND_API int _convert_to_unicode_with_converter(zval *op, UConverter *conv TSRML
                                        zend_error(E_RECOVERABLE_ERROR,
                                                           "Object of class %v could not be converted to %s", Z_OBJCE_P(op)->name,
                                                           zend_get_type_by_const(IS_UNICODE));
-                                       return FAILURE;
                                } else {
                                        zval_dtor(op);
                                        Z_TYPE_P(op) = IS_UNICODE;
@@ -1013,7 +1011,6 @@ ZEND_API int _convert_to_string_with_converter(zval *op, UConverter *conv TSRMLS
                                        zend_error(E_RECOVERABLE_ERROR,
                                                           "Object of class %v could not be converted to %s", Z_OBJCE_P(op)->name,
                                                           zend_get_type_by_const(IS_STRING));
-                                       return FAILURE;
                                } else {
                                        zval_dtor(op);
                                        Z_TYPE_P(op) = IS_STRING;