mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
MFH: Initialize with length instead of 0
This commit is contained in:
parent
779769563c
commit
572adc05e4
1 changed files with 1 additions and 1 deletions
|
@ -2111,7 +2111,7 @@ PHP_FUNCTION(array_splice)
|
|||
/* Don't create the array of removed elements if it's not going
|
||||
* to be used; e.g. only removing and/or replacing elements */
|
||||
if (return_value_used) {
|
||||
int size = 0;
|
||||
int size = length;
|
||||
|
||||
/* Clamp the offset.. */
|
||||
if (offset > num_in) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue