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
Status: Closed Package: cURL related
PHP Version: 5.3.1 OS: Ubuntu 9.10
Private report: No CVE-ID:
 [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

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-03-02 13:54 UTC] iliaa@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Wed Apr 16 22:02:05 2014 UTC