php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13179 Cannot open two concurrent IMAP connections?
Submitted: 2001-09-06 12:16 UTC Modified: 2002-06-24 23:13 UTC
From: mot at mediaweb dot gr Assigned:
Status: Not a bug Package: IMAP related
PHP Version: 4.0.6 OS: RedHat Linux 7.1
Private report: No CVE-ID: None
 [2001-09-06 12:16 UTC] mot at mediaweb dot gr
Consider this:

class foo
{
  var $con;

  function foo //constructor
  {
    $this->con = imap_open (...);
  }

  function bar
  {
    $other = imap_open (...);
    imap_do_something ($other, ....);
    imap_close ($other);
  }

  function destroy
  {
    imap_do_something($this->con, ....);
    imap_close ($this->con);
  }

$test = new foo();
$test->bar();
$test->destroy();

well, when I open the second IMAP connection ($other), everything works OK. After that, though, if I call some function with the first connection ($this->con) nothing works. Any ideas?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-24 23:13 UTC] kalowsky@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately your version of PHP is too old -- the problem
might already be fixed. Please download a new PHP
version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Oct 19 16:03:35 2021 UTC