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
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 03 20:10:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Boris
>Release:        7.2-STABLE
>Organization:
JSC Yandex
>Environment:
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

>Description:
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:
http://recoursive.com/blog/archives/208 
>How-To-Repeat:
try to communicate with some socket-listening server using php's fread() to fetch data from socket
>Fix:
Apply patch from r288604 commit and rebuld php5 port:
http://svn.php.net/viewvc/php/php-src/branches/PHP_5_2/main/streams/xp_socket.c?r1=288034&r2=288604&pathrev=288604

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list