Fix #48358 add() method for SplDoublyLinkedList
Don't cast index to an int, leave it as a long