php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67953 fopen works only one time if php it's configure with ccurlwrappers
Submitted: 2014-09-02 22:54 UTC Modified: 2014-09-02 23:53 UTC
From: damien at mailbox dot org Assigned:
Status: Wont fix Package: cURL related
PHP Version: Irrelevant OS: Ubuntu 14.04 64bits
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: damien at mailbox dot org
New email:
PHP Version: OS:

 

 [2014-09-02 22:54 UTC] damien at mailbox dot org
Description:
------------
I do not know if it's a BUG my problem or normal behavior of PHP.
Maybe you can tell me how to give this problem to the developers.

Symptom:
--------
fopen works only once after a server restart.

Cause:
------
I can reproduce the error when compiling PHP with the option "--with-curlwrappers".

Version affected:
-----------------
5.2.17 and 5.3.29 and 5.4.32
Note: no troubles with 5.5.16

Complete Information:
---------------------
When compiling PHP on a Ubuntu 14.04 64-bit server with "--with-curlwrappers" in my configure arguments, my script with "fopen" only one time.
The second time it returns nothing, "strace" shows me that he not call the remote server.

If I compile my php without "--with-curlwrappers" my script works every time.

I have this BUG with versions 5.2.x, 5.3.x and 5.4.x 
No problem with the 5.5.x release.

Test script:
---------------
$ufurl = "http://www.google.fr";
$fp = fopen($ufurl, 'r');
while (!feof($fp)) {
	echo(fread($fp, 8192));
}


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-09-02 23:53 UTC] johannes@php.net
-Status: Open +Status: Wont fix
 [2014-09-02 23:53 UTC] johannes@php.net
curlwrappers were marked experimental (see configure --help) and have been removed in 5.5.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 04:01:31 2024 UTC