(PECL ps >= 1.1.0)
ps_closepath_stroke — Closes and strokes path
$psdoc
   )Connects the last point with first point of a path and draws the resulting closed line.
   Возвращает TRUE в случае успешного завершения  или FALSE в случае возникновения ошибки.