Home » Networking » Net_Sieve » Bug #9110
connect problem
Details
| Submitted | 2006-10-20 15:49 UTC |
|---|---|
| From | andre at hudat dot com |
| Assigned | amistry |
| Status | Closed |
| Package | Net_Sieve |
| PHP Version | 5.0.5 |
| OS | RHEL 4 |
| Roadmaps | (Not assigned) |
Comments
[2006-10-20 15:49 UTC] andre at hudat dot com
Description:
------------
Kept getting stream_context_create() expects parameter 1 to be array, boolean given in /opt/lib/php/Net/Socket.php on line 132 when using INGO.
Turns out the order of the paramenters to the Net_Sieve->connect method does not match where its called in Net_Sieve->_handleConnectAndLogin
I dont know if thats propper patch format below, but hey its a patch.
--
Andre
Test script:
---------------
--- Sieve.php.orig 2006-10-20 09:11:53.000000000 -0400
+++ Sieve.php 2006-10-20 09:12:28.000000000 -0400
@@ -335,7 +335,7 @@
* @param boolean $useTLS Use TLS if available
* @return mixed True on success, PEAR_Error otherwise
*/
- function connect($host, $port, $options = null, $useTLS = true)
+ function connect($host, $port, $useTLS = true, $options = null)
{
if (NET_SIEVE_STATE_DISCONNECTED != $this->_state) {
$msg='Not currently in DISCONNECTED state';
[2006-10-25 01:39 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.