summaryrefslogtreecommitdiff
path: root/ext/intl/formatter/formatter_format.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/intl/formatter/formatter_format.c')
-rw-r--r--ext/intl/formatter/formatter_format.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/intl/formatter/formatter_format.c b/ext/intl/formatter/formatter_format.c
index 7d2d593228..aa9c5915ad 100644
--- a/ext/intl/formatter/formatter_format.c
+++ b/ext/intl/formatter/formatter_format.c
@@ -105,9 +105,8 @@ PHP_FUNCTION( numfmt_format )
break;
default:
- php_error_docref(NULL, E_WARNING, "Unsupported format type " ZEND_LONG_FMT, type);
- RETURN_FALSE;
- break;
+ zend_argument_value_error(3, "must be a NumberFormatter::TYPE_* constant");
+ RETURN_THROWS();
}
INTL_METHOD_RETVAL_UTF8( nfo, formatted, formatted_len, ( formatted != format_buf ) );