Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Oct 2009 20:06:32 GMT
From:      Boris <lytboris@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/139343: sockets are broken in php 5.2.11
Message-ID:  <200910032006.n93K6WlK063042@www.freebsd.org>
Resent-Message-ID: <200910032010.n93KA2Ms038535@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910032006.n93K6WlK063042>