php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14969 IMAP_POPEN() not implemented !?!
Submitted: 2002-01-10 10:40 UTC Modified: 2002-01-10 12:27 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: kalle at ok dot ee Assigned:
Status: Not a bug Package: IMAP related
PHP Version: 4.1.0 OS: linux-2.2.18
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: kalle at ok dot ee
New email:
PHP Version: OS:

 

 [2002-01-10 10:40 UTC] kalle at ok dot ee
--- test.php ---
<?
IMAP_POPEN("myserver.com", "MyName", "MyPassword");
?>
--- /// ---

Fatal error: Call to undefined function: imap_popen() in /home/kalle/public_html/imap.php on line 2

Still, there is entry in manual:
http://ee.php.net/manual/en/function.imap-popen.php
---
(3.0.12 - 3.0.18 only, PHP 4 >= 4.0.0)
imap_popen --  Open a persistant IMAP stream to a mailbox 
---

so, who is fooling who ;) AND, there has NEVER been (well, in my extensive use of PHP staring from PHP/FI ending with latest CVS versions) function like that...

Pitty, i REALLY could use persistent connections to IMAP servers ;) really...

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-10 11:27 UTC] hholzgra@php.net
popen is implemented but disabled in the code
as it isn't working well

but you should get "Persistent IMAP connections are not yet supported." if you had the imap extension compiled in or loaded, "Call to undefined function" indicates that you have no imap support at all in your build

PS: persistant connections in php might not be
    what you tink they are ...
 [2002-01-10 12:08 UTC] kalle at ok dot ee
Sorry, the machine from where i copied the error message was without IMAP support, but after adding i got the message you pasted.

And about persistent connections, if it's something like *SQL persistent connects then i think i have an idea. It should work simething like "keep the connection open for some time and when same user/password combination comes use the old connection", right? 

Connecting to 5000+ mail mailbox takes some time (and server load) with authentication, if i could skip the authentication step on next connects then i'd be on a win ;)

thanks for the answer anyway ;)
 [2002-01-10 12:27 UTC] hholzgra@php.net
with database connections you usualy take advantage 
of the fact that a whole application uses the same
username and password internaly

with imap you have different username and password
for every session instead of one application-wide
entry

so it's not very likely you'll be able to re-use
an already existing persistant connection 


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 17:01:30 2024 UTC