PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Networking » Net_Curl » Bug #3567

Using property progress results in a notice

Details

Submitted2005-02-24 00:44 UTC
Fromcmoehrke at netviser dot de
StatusWont fix
PackageNet_Curl
PHP Version5.0.3
OSLinux
Roadmaps(Not assigned)

Comments

[2005-02-24 00:44 UTC] cmoehrke at netviser dot de

Description:
------------
Trying to get a progress bar results in a notice

Reproduce code:
---------------
$curl = new Net_Curl('http://www.heise.de/newsticker/');
$curl->progress=true;
$res=$curl->execute();
$curl->close();

Expected result:
----------------
No Notice

Actual result:
--------------
Notice: Use of undefined constant CURLOPT_PROGRESS - assumed 'CURLOPT_PROGRESS' in /usr/local/php/pear/Net/Curl.php on line 379

[2005-07-13 21:10 UTC] joe at joestump dot net

Your example code works fine for me on PHP 5.0.4. Though, I've
also applied a number of my own patches. See the patches here:

http://zebulon.miester.org/~jstump/pear/Net_Curl/

Apply them in numerical order. If all goes well I'll be
releasing a new version of Net_Curl (if they hand the package
over to me) soon.