[Bug 331278] [NEW] php5-cli + PHP bug 42682: stream_select() indicates bad number of readable descriptors

Ken kcm at stumbleupon.com
Wed Feb 18 22:21:50 GMT 2009


Public bug reported:

Binary package hint: php5-cli

$ lsb_release -rd
Description:    Ubuntu 8.04.2
Release:        8.04

$ uname -srvmpio
Linux 2.6.24-21-server #1 SMP Mon Aug 25 17:28:54 UTC 2008 x86_64 unknown unknown GNU/Linux

$ apt-cache policy php5-cli
php5-cli:
  Installed: 5.2.4-2ubuntu5.5
  Candidate: 5.2.4-2ubuntu5.5
  Version table:
 *** 5.2.4-2ubuntu5.5 0
        500 http://hardy-repo hardy-updates/main Packages
        100 /var/lib/dpkg/status
     5.2.4-2ubuntu5 0
        500 http://hardy-repo hardy/main Packages


Similar to:

  php5-cli + openssl bug on edgy 64bit (amd)
  https://bugs.launchpad.net/ubuntu/+source/php5/+bug/80852

I'm running into the problem where stream_select() indicates bad number
of readable descriptors as in PHP bug #42682:

  http://bugs.php.net/bug.php?id=42682

Steps to reproduce:

- Run code as in PHP bug 42682 link
- Output is: "select : 0, r=1, w=0, e=0"
- Output should be as in PHP bug 42682

Intrepid is OK:

$ lsb_release -rd
Description:    Ubuntu 8.10
Release:        8.10

$ apt-cache policy php5-cli
php5-cli:
  Installed: 5.2.6-2ubuntu4.1
  Candidate: 5.2.6-2ubuntu4.1
  Version table:
 *** 5.2.6-2ubuntu4.1 0
        500 http://mirrors.easynews.com intrepid-updates/main Packages
        500 http://mirrors.easynews.com intrepid-security/main Packages
        100 /var/lib/dpkg/status
     5.2.6-2ubuntu4 0
        500 http://mirrors.easynews.com intrepid/main Packages

$ php test.php
select : 1, r=1, w=0,
e=0
Reading...
Contents: [220 ***********************************
]
select : 0, r=0, w=0,
e=0
^C

** Affects: php5 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
php5-cli + PHP bug 42682: stream_select() indicates bad number of readable descriptors
https://bugs.launchpad.net/bugs/331278
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.



More information about the Ubuntu-server-bugs mailing list