Allow $num=0 in array_fill()

Implemented request #49824.