#40735 [Fbk->Opn]: stream_select returns 0 for php > 5.1.6
| From: | rodricg at sellingsource dot com | Date: | Tue, 13 Mar 2007 16:26:41 +0000 |
| Subject: | #40735 [Fbk->Opn]: stream_select returns 0 for php > 5.1.6 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-110300@lists.php.net to get a copy of this message | ||
ID: 40735
User updated by: rodricg at sellingsource dot com
Reported By: rodricg at sellingsource dot com
-Status: Feedback
+Status: Open
Bug Type: Streams related
Operating System: x86_64 GNU/Linux
PHP Version: 5CVS-2007-03-05 (snap)
New Comment:
The following script reproduces the behavior (for me):
http://11434.com/stream_select.sh
Changing -O2 to -O1 or removing --with-openssl fixes the problem.
gcc version 4.1.2
openssl version 0.9.8d
Previous Comments:
------------------------------------------------------------------------
[2007-03-13 11:05:36] tony2001@php.net
I still have no idea how to replicate it.
------------------------------------------------------------------------
[2007-03-12 16:54:41] rodricg at sellingsource dot com
Same behavior with gcc 4.1.2. I'm chalking this up to gcc
optimization and will compile with -O1 for now.
------------------------------------------------------------------------
[2007-03-06 21:14:57] tony2001@php.net
Try with GCC 4.1.2.
GCC 4.1.1 is known to have some problems.
------------------------------------------------------------------------
[2007-03-06 21:08:57] rodricg at sellingsource dot com
After further testing it seems that --with-curlwrappers is not the
culprit but gcc optimization is. Using gcc version 4.1.1 (Gentoo
4.1.1-r3) I get the expected behavior when compiling with
CFLAGS="-pipe" but the erroneous behavior when compiling with
CFLAGS="-pipe -O2". This is regardless of the curlwrappers setting.
Sorry about the initial misinformation. Forgetting a make clean
between several of my tests led me to the wrong conclusion. Just
tried -O1 and it seems to be ok, will try with a different version
of gcc.
------------------------------------------------------------------------
[2007-03-06 11:24:13] tony2001@php.net
I still get the expected result even with --with-curlwrappers.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/40735
--
Edit this bug report at http://bugs.php.net/?id=40735&edit=1