Bug #53841 [Opn->Fbk]: occasionally dead loop in php_stream_url_wrap_http_ex/_php_stream_get_line
| From: | pajoye@php.net | Date: | Tue, 15 Feb 2011 08:56:25 +0000 |
| Subject: | Bug #53841 [Opn->Fbk]: occasionally dead loop in php_stream_url_wrap_http_ex/_php_stream_get_line | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-158779@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53841&edit=1
ID: 53841
Updated by: pajoye@php.net
Reported by: wxiaoguang at gmail dot com
Summary: occasionally dead loop in
php_stream_url_wrap_http_ex/_php_stream_get_line
-Status: Open
+Status: Feedback
Type: Bug
Package: HTTP related
Operating System: Linux
PHP Version: 5.3.5
Block user comment: N
Private report: N
New Comment:
Please try using this snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Previous Comments:
------------------------------------------------------------------------
[2011-02-15 09:50:38] wxiaoguang at gmail dot com
reopen?
------------------------------------------------------------------------
[2011-02-15 09:49:45] wxiaoguang at gmail dot com
It happens in php-5.3.5 again
0x083a4c49 in _php_stream_get_line (stream=0x88d5f28, buf=0x8c31948
"http://www.xxxxxxxxxxx.net/xxxxx.php",
maxlen=<error type>, returned_len=0x4) at
/usr/src/php5.3/source/php5-5.3.5/main/streams/streams.c:862
862 /usr/src/php5.3/source/php5-5.3.5/main/streams/streams.c: No
such file or directory.
in /usr/src/php5.3/source/php5-5.3.5/main/streams/streams.c
(gdb) bt
#0 0x083a4c49 in _php_stream_get_line (stream=0x88d5f28, buf=0x8c31948
"http://www.xxxxxxxxxxx.net/xxxx.php",
maxlen=<error type>, returned_len=0x4) at
/usr/src/php5.3/source/php5-5.3.5/main/streams/streams.c:862
#1 0x0833b034 in php_stream_url_wrap_http (wrapper=0x88d5f28,
path=0x8c31948 "http://www.xxxxxxxxxx.net/xxxxxx.php",
mode=0x84c48d5 "rb", options=4, opened_path=0x0, context=0xba8c5cc)
at
/usr/src/php5.3/source/php5-5.3.5/ext/standard/http_fopen_wrapper.c:825
#2 0x083a4056 in _php_stream_open_wrapper_ex (path=0x8c31948
"http://www.xxxxxxxxxxx.net/xxxxxxx.php",
mode=0x84c48d5 "rb", options=12, opened_path=0x0,
context=0xba8c5cc)
at /usr/src/php5.3/source/php5-5.3.5/main/streams/streams.c:1864
#3 0x082fa6c6 in zif_file_get_contents (ht=3, return_value=0xa8baf84,
return_value_ptr=0x0, this_ptr=0x0,
return_value_used=1) at
/usr/src/php5.3/source/php5-5.3.5/ext/standard/file.c:557
#4 0x0822b180 in phar_file_get_contents (ht=3, return_value=0xa8baf84,
return_value_ptr=0x0, this_ptr=0x0,
return_value_used=1) at
/usr/src/php5.3/source/php5-5.3.5/ext/phar/func_interceptors.c:225
#5 0x0840d8f1 in execute_internal (execute_data_ptr=0x8a937b0,
return_value_used=1)
at /usr/src/php5.3/source/php5-5.3.5/Zend/zend_execute.c:1261
#6 0xb5c3f8fb in ?? () from /usr/lib/php5/20090626+lfs/suhosin.so
------------------------------------------------------------------------
[2011-02-03 07:17:52] wxiaoguang at gmail dot com
It seems no problem in 5.3
------------------------------------------------------------------------
[2011-01-26 06:39:03] aharvey@php.net
PHP 5.2 is no longer supported.
Does the same problem occur in PHP 5.3.5?
------------------------------------------------------------------------
[2011-01-26 04:16:17] wxiaoguang at gmail dot com
My script uses file_get_contents to read other sites' pages. The number
of pages to read is larger, this problem occurs more frequently.
I didn't notice this problem when the number of pages to read is smaller
than 100 (now I have more than 1000 pages to read, and meet this problem
almost everyday)
------------------------------------------------------------------------
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/bug.php?id=53841
--
Edit this bug report at http://bugs.php.net/bug.php?id=53841&edit=1