PEAR is archived and read-only

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

Home » Networking » Net_Sieve » Bug #8782

stream_context_create() expects parameter array

Details

Submitted2006-09-25 11:48 UTC
Fromvilius at lnk dot lt
Assignedamistry
StatusClosed
PackageNet_Sieve
PHP Version5.1.4
OSFedora Core 5
Roadmaps(Not assigned)

Comments

[2006-09-25 11:48 UTC] vilius at lnk dot lt

Description:
------------
When using Net_Sieve 1.1.4 with Net_Socket 1.0.6 I get:

PHP Warning: stream_context_create() expects parameter 1 to be array, boolean given in /usr/share/pear/Net/Socket.php on line 132

I tried to downgrade to 1.1.3 and it works.

[2006-10-02 22:04 UTC] andre at abtime dot de

To fix this bug, add another parameter in line 219 like this:

- if (PEAR::isError($res = $this->connect($this->_data['host'] , $this->_data['port'], $this->_useTLS ))) {
+ if (PEAR::isError($res = $this->connect($this->_data['host'] , $this->_data['port'], array(), $this->_useTLS ))) {

[2006-10-04 18:30 UTC] amistry at php dot net

This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.