php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51171 curl_setopt doesn't output any errors or warnings when the types are wrong
Submitted: 2010-02-27 19:20 UTC Modified: 2010-03-02 13:54 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: sefrot0 at gmail dot com Assigned: iliaa (profile)
Status: Closed Package: cURL related
PHP Version: 5.3.1 OS: Ubuntu 9.10
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: sefrot0 at gmail dot com
New email:
PHP Version: OS:

 

 [2010-02-27 19:20 UTC] sefrot0 at gmail dot com
Description:
------------
curl_setopt doesn't output any errors or warnings when the types are wrong or the CURLOPT_XXX option doesn't exist.

Reproduce code:
---------------
$session = curl_init();
$out = curl_setopt($session, CURLPT_HTPET, 7);
var_dump( $out );
$out = curl_setopt_array($session, array(CURLPT_HTPET => 7));
var_dump( $out );
curl_close($session);

Expected result:
----------------
bool(false)
bool(false)

Actual result:
--------------
bool(true)
bool(false)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-03-02 13:54 UTC] iliaa@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 11:01:29 2024 UTC