php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #39933 Curl extension is missing CURLOPT_TCP_NODELAY
Submitted: 2006-12-22 19:36 UTC Modified: 2009-05-04 12:15 UTC
Votes:3
Avg. Score:3.7 ± 0.9
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:1 (50.0%)
From: gopalv@php.net Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 5CVS-2006-12-22 (CVS) OS: linux-i686
Private report: No CVE-ID: None
 [2006-12-22 19:36 UTC] gopalv@php.net
Description:
------------
ext/curl is missing the constant CURLOPT_TCP_NODELAY (121)

Reproduce code:
---------------
<?php
     $ch = curl_init('http://localhost');
     curl_setopt($ch, CURLOPT_TCP_NODELAY, 1);
?>


Expected result:
----------------
the curl tcpnodelay() function is called and socket optiosn set.

Actual result:
--------------
PHP Notice:  Use of undefined constant CURLOPT_TCP_NODELAY

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-22 19:39 UTC] gopalv@php.net
For a more decent test case 

http://phpfi.com/187148

$curlopts is derieved from the enum CURLOption in curl/curl.h
 [2009-05-04 12:15 UTC] pajoye@php.net
added already.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 15 13:01:35 2024 UTC