PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Web Services » SOAP » Bug #2945

curl_setopt generates notices on old version

Details

Submitted2004-12-10 21:27 UTC
Fromajb732 at comcast dot net
Assignedchagenbu
StatusClosed
PackageSOAP
PHP Version4.2.2
OSLinux
Roadmaps(Not assigned)

Comments

[2004-12-10 21:27 UTC] ajb732 at comcast dot net

Description:
------------
Using PEAR SOAP 0.8.1 on php4.2.2 generates a notice in /usr/share/pear/SOAP/Transport/HTTP.php line 591

Reproduce code:
---------------
On line 591,

curl_setopt($ch, CURLOPT_HTTP_VERSION, 1);

Generates a notice for undefined constant for CURLOPT_HTTP_VERSION.

Placing a @ at the beginning of this line fixes this.

Expected result:
----------------
Should not generate any notices.

Actual result:
--------------
Generates a Notice.