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:
@@ -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);
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user