ports/139343: sockets are broken in php 5.2.11

Boris lytboris at gmail.com
Sat Oct 3 20:10:02 UTC 2009

>Number:         139343
>Category:       ports
>Synopsis:       sockets are broken in php 5.2.11
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 03 20:10:01 UTC 2009
>Originator:     Boris
>Release:        7.2-STABLE
JSC Yandex
FreeBSD nas.home 7.2-STABLE FreeBSD 7.2-STABLE #2: Wed Sep 16 11:00:33 MSD 2009     root at nas.home:/opt/obj/usr/src/sys/NASv1  i386

PHP's SVN commit r288034 by Sriram Natarajan intoduces leakage of data reading from socket: feof() reports EOF while not all data sent into socket by server (ktrace confirmed) is read.

More info:
try to communicate with some socket-listening server using php's fread() to fetch data from socket
Apply patch from r288604 commit and rebuld php5 port:


More information about the freebsd-ports-bugs mailing list