|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-09-02 01:47 UTC] rasmus@php.net
-Status: Open
+Status: Wont fix
[2012-09-02 01:47 UTC] rasmus@php.net
[2012-09-02 01:47 UTC] dicetrash at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 15:00:01 2025 UTC |
Description: ------------ cURL like most of the php lib should be built with objects this could be created by stdClass in php but feel as though it should be core. Expected result: ---------------- Expected Interface $result = cURL::createNew($url) ->setOpt(CURLOPT_RETURNTRANSFER, TRUE) ->setOpt(CURLOPT_HEADER, TRUE) ->exec(); unset($ch); Actual result: -------------- an implementation of curl looks like this $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); $result = curl_exec($ch); curl_close($ch);