Bug 139343 - lang/php5: sockets are broken in php 5.2.11
Summary: lang/php5: sockets are broken in php 5.2.11
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Alex Dupre
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-03 21:10 UTC by lytboris
Modified: 2009-10-12 14:20 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lytboris 2009-10-03 21:10:01 UTC
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

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
How-To-Repeat: try to communicate with some socket-listening server using php's fread() to fetch data from socket
Comment 1 Martin Wilke freebsd_committer freebsd_triage 2009-10-03 23:02:19 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer.
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2009-10-12 14:07:47 UTC
State Changed
From-To: open->closed

Committed, thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2009-10-12 14:14:40 UTC
ale         2009-10-12 13:14:26 UTC

  FreeBSD ports repository

  Modified files:
    lang/php5            Makefile 
  Added files:
    lang/php5/files      patch-main_streams_xp_socket.c 
  Log:
  Fix sockets.
  
  PR:             ports/139343
  Submitted by:   Boris <lytboris@gmail.com>
  
  Revision  Changes    Path
  1.140     +1 -1      ports/lang/php5/Makefile
  1.1       +11 -0     ports/lang/php5/files/patch-main_streams_xp_socket.c (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"