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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: gopalv@php.net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue Sep 09 03:00:01 2025 UTC