(PECL ps >= 1.1.0)
ps_closepath — Closes path
$psdoc
   )Connects the last point with the first point of a path. The resulting path can be used for stroking, filling, clipping, etc..
   Возвращает TRUE в случае успешного завершения  или FALSE в случае возникновения ошибки.