From: Stanislav Malyshev Date: Thu, 24 Dec 2009 00:27:11 +0000 (+0000) Subject: fix interruption problem with array_pad X-Git-Tag: php-5.2.13RC1~80 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb99d265abf5f390839488c787f68ac358d8203a;p=php fix interruption problem with array_pad --- diff --git a/ext/standard/array.c b/ext/standard/array.c index e89833da5f..0ffc40a2b8 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -2749,12 +2749,12 @@ PHP_FUNCTION(array_pad) WRONG_PARAM_COUNT; } + convert_to_long_ex(pad_size); /* Make sure arguments are of the proper type */ if (Z_TYPE_PP(input) != IS_ARRAY) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "The argument should be an array"); return; } - convert_to_long_ex(pad_size); /* Do some initial calculations */ input_size = zend_hash_num_elements(Z_ARRVAL_PP(input));