From df56c39bdaaf5c9251b7125a807c9b525a4ba01a Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Thu, 10 Mar 2005 23:52:43 +0000 Subject: [PATCH] - Cosmetics --- ext/standard/string.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ext/standard/string.c b/ext/standard/string.c index 04b31595c4..43ac7822af 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -1343,7 +1343,7 @@ PHP_FUNCTION(pathinfo) } if (opt == PHP_PATHINFO_ALL) { - RETVAL_ZVAL(tmp, 1, 0); + RETURN_ZVAL(tmp, 0, 1); } else { zval **element; if (zend_hash_get_current_data(Z_ARRVAL_P(tmp), (void **) &element) == SUCCESS) { @@ -4486,8 +4486,7 @@ PHP_FUNCTION(str_pad) /* If resulting string turns out to be shorter than input string, we simply copy the input and return. */ if (num_pad_chars < 0) { - RETVAL_ZVAL(*input, 1, 0); - return; + RETURN_ZVAL(*input, 1, 0); } /* Setup the padding string values if specified. */ -- 2.50.1