1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 06:21:12 +02:00

substr() fix for PHP4 as well

This commit is contained in:
Rasmus Lerdorf
1999-05-12 12:43:03 +00:00
parent 6bc6dacf5c
commit 43d93b6533

View File

@@ -829,7 +829,7 @@ void php3_substr(INTERNAL_FUNCTION_PARAMETERS)
if ((f + l) < (int)string->value.str.len) {
string->value.str.val[f + l] = '\0';
}
RETVAL_STRING(string->value.str.val + f,1);
RETVAL_STRINGL(string->value.str.val + f, l, 1);
}
/* }}} */