[Bug 232592] New: Imap_open Suse 10.2 Warning: imap_open(): Couldn't open stream host.com:110/pop3
https://bugzilla.novell.com/show_bug.cgi?id=232592 Summary: Imap_open Suse 10.2 Warning: imap_open(): Couldn't open stream host.com:110/pop3 Product: openSUSE 10.2 Version: Final Platform: 32bit OS/Version: SuSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: frank7@teleespoir.org QAContact: qa@suse.de That function is working in SuSE 10.0 After a lot of internet search, ini setup and code verification, i think that it is a SuSE 10.2 bug. Here is my code: $mbox = imap_open ("{host:110/pop3}INBOX", "user_id", "password"); It is as if i unplug the ethernet wire of the computer. In fact, is did a test and i get the same thing with the wire unplug. That got me thinking and i try the same thing with the SuSE 10.0 computer and Firefox is telling me that it is waiting for the localhost. I think that my problem is that the php server is not accessing the internet to get the mail of the server. On the SuSE 10.2 there is no wait at all, the error message show up immediately. Frank -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232592 judas_iscariote@shorewall.net changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |frank7@teleespoir.org ------- Comment #1 from judas_iscariote@shorewall.net 2007-01-08 11:19 MST ------- what happends if you disable SUSEfirewall ? Is there any other information ? what says the apache log about it ? if imap_open were broken...(unlikely) buzgilla would be certainly full of reports.. :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232592 ------- Comment #2 from frank7@teleespoir.org 2007-01-08 12:46 MST ------- 1) what happends if you disable SUSEfirewall ? Same still do not work 2) what says the apache log about it ? [Mon Jan 08 14:49:32 2007] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] [Mon Jan 08 14:49:32 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec2) PHP Warning: PHP Startup: U\x89\xe5VS\xe8K\xfe\xff\xff\x81\xc3\x8e\x8f: Unable to initialize module\nModule compiled with module API=20020429, debug=0, thread-safety=0\nPHP compiled with module API=20060613, debug=0, thread-safety=0\nThese options need to match\n in Unknown on line 0 [Mon Jan 08 14:49:34 2007] [notice] Apache/2.2.3 (Linux/SUSE) configured -- resuming normal operations When i execute the script, the apache error log file do not change. 3) Is there any other information ? not that i can think of. I still am trying to get it to work Frank -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232592 ------- Comment #3 from judas_iscariote@shorewall.net 2007-01-08 12:53 MST ------- yes, you have outdated modules... did you updated your system from 10.0 to 10.2 ??? please atttach: 1.- the output of php -m 2. the output of rpm -qa | grep php5 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232592 ------- Comment #4 from frank7@teleespoir.org 2007-01-08 13:00 MST ------- did you updated your system from 10.0 to 10.2 -> No I made a new partition and did a fresh install from DVD. 1.- the output of php -m ---------------------------------- aespoir:/e/10.2/Frank # php -m PHP Warning: PHP Startup: U�S�Î: Unable to initialize module Module compiled with module API=20020429, debug=0, thread-safety=0 PHP compiled with module API=20060613, debug=0, thread-safety=0 These options need to match in Unknown on line 0 [PHP Modules] bcmath bz2 calendar ctype curl date dba dbase dom exif filter ftp gd gettext gmp hash iconv imap json ldap libxml mbstring mcrypt mhash mysql mysqli ncurses odbc openssl pcntl pcre PDO pdo_mysql PDO_ODBC pdo_pgsql pdo_sqlite pgsql posix pspell readline Reflection session shmop SimpleXML snmp soap sockets SPL SQLite standard suhosin sysvmsg sysvsem sysvshm tidy tokenizer wddx xml xmlreader xmlrpc xmlwriter xsl zip zlib [Zend Modules] Suhosin ----------------------- 2. the output of rpm -qa | grep php5 ----------------------- php5-5.2.0-10 php5-bz2-5.2.0-10 php5-ldap-5.2.0-10 php5-tokenizer-5.2.0-10 php5-iconv-5.2.0-10 php5-sysvmsg-5.2.0-10 php5-dba-5.2.0-10 php5-devel-5.2.0-10 php5-pcntl-5.2.0-10 php5-pear-5.2.0-10 php5-tidy-5.2.0-10 php5-ctype-5.2.0-10 php5-mhash-5.2.0-10 php5-zip-5.2.0-10 php5-xsl-5.2.0-10 php5-pear-mail_mime-1.3.1-43 php5-curl-5.2.0-10 php5-gmp-5.2.0-10 php5-ncurses-5.2.0-10 php5-sockets-5.2.0-10 php5-zlib-5.2.0-10 php5-sqlite-5.2.0-10 php5-pear-log-1.9.8-29 php5-xmlwriter-5.2.0-10 php5-pear-auth_sasl-1.0.2-29 php5-bcmath-5.2.0-10 php5-fastcgi-5.2.0-10 php5-mbstring-5.2.0-10 php5-pspell-5.2.0-10 php5-wddx-5.2.0-10 php5-ftp-5.2.0-10 php5-snmp-5.2.0-10 php5-pear-file-1.2.2-42 php5-calendar-5.2.0-10 php5-gd-5.2.0-10 php5-mcrypt-5.2.0-10 php5-shmop-5.2.0-10 php5-xmlrpc-5.2.0-10 apache2-mod_php5-5.2.0-10 php5-pear-date-1.4.6-42 php5-dom-5.2.0-10 php5-json-5.2.0-10 php5-pdo-5.2.0-10 php5-sysvshm-5.2.0-10 php5-odbc-5.2.0-10 php5-suhosin-5.2.0-10 php5-exif-5.2.0-10 php5-posix-5.2.0-10 php5-mysql-5.2.0-10 php5-pear-mail-1.1.14-8 php5-imap-5.2.0-10 php5-dbase-5.2.0-10 php5-openssl-5.2.0-10 php5-pgsql-5.2.0-10 php5-xmlreader-5.2.0-10 php5-sysvsem-5.2.0-10 php5-hash-5.2.0-10 php5-gettext-5.2.0-10 php5-soap-5.2.0-10 php5-pear-db-1.7.6-42 ------------------------------- -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232592 ------- Comment #5 from judas_iscariote@shorewall.net 2007-01-08 13:06 MST ------- (In reply to comment #4)
did you updated your system from 10.0 to 10.2 -> No I made a new partition and did a fresh install from DVD.
1.- the output of php -m ---------------------------------- aespoir:/e/10.2/Frank # php -m PHP Warning: PHP Startup: U�S�Î: Unable to initialize module Module compiled with module API=20020429, debug=0, thread-safety=0 PHP compiled with module API=20060613, debug=0, thread-safety=0 These options need to match
a module with API=20020429 does not make **any** sense.. do you have any third party php module installed ?? examples or third party modules, are Zend_Optimizer, IonCube, Xdebug, and opcodecache like APC, xcache, Eaccelerator... etc.. ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232592 ------- Comment #6 from frank7@teleespoir.org 2007-01-08 13:13 MST ------- Do you have any third party php module installed ? No, i did try to get the mcal to work and copy it from SuSE 10.0 and try to install it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232592 ------- Comment #7 from frank7@teleespoir.org 2007-01-08 13:16 MST ------- When i remove the mcal.so from the php extension, the 2 warnings desapears. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232592 ------- Comment #8 from frank7@teleespoir.org 2007-01-08 13:30 MST ------- I have install the "imap-2004g_suse-36.i586.rpm" and afterword i uninstalled it. It might have something to do with it ??? Maybe that package has inturupted the rooting of the php imap from the internet to internal for it is a serever and that could explain my problem. If that is the case, how do i reroot the php imap to the internet ??? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232592 judas_iscariote@shorewall.net changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|frank7@teleespoir.org | Resolution| |INVALID ------- Comment #9 from judas_iscariote@shorewall.net 2007-01-08 13:44 MST ------- Ok, keep in mind that bugzilla aint a place to ask for support, but to report real bugs, you messed you php configuration , such way that php is attempting to load a module from the stoneage that of course wont work. do this: 1. remove all php5 packages with yast 2. reinstall them again. Although I analised your problem..and this bug is INVALID..I assume you are coming migrating from PHP4 or older php5 versions... the imap_open() behaviuor changed at some point in the stoneage, imap_open() nowdats attempts to perform a tls connection by default.. so..to open a a plain uncrypted pop3 connection to a server you MUST use. $mbox = imap_open ("{host:optionalport/pop3/notls}INBOX", "user", "pass"); note the /notls flag. have a nice day. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232592 frank7@teleespoir.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | ------- Comment #10 from frank7@teleespoir.org 2007-01-08 15:31 MST ------- I did remove all php packages and reinstall them and still not working. I did know about the php5 diffrence and it was the frist thing that i did even before i reported the bug. I still beleave it is a bug. Ether a installation bug or config bug as the system is installing. I have a second hard drive that i use for test and format a partition and install 10.2 on it and configure every things as they should and it dose not work on it ether. Frank -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232592 judas_iscariote@shorewall.net changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |INVALID ------- Comment #11 from judas_iscariote@shorewall.net 2007-01-08 16:11 MST ------- there is no bug, there is a programming problem on your side. do what I told and it will work. remember "/notls" is the key. I have done a clean suse install on a VM to reproduce what problem you may be hitting, and there is any, probably a network problem on your side stopped the installtion or you dont have the proper installation sources configured. Unless you have proof this is a bug, please do not reopen this bug, ask for support on the opensuse mailing lists, and I will help you, bugzilla is no place for support. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232592 ------- Comment #12 from judas_iscariote@shorewall.net 2007-01-09 01:36 MST ------- in case you or somebody else hit this USER error. 1.make sure you have the **oss network install source** from a reliable mirror.[1] 2. rpm -e `rpm -qa | grep php5` 3. zypper install php5-imap apache2-mod_php5 php5-mbstring this will pull required and the reccommended packages, and remember DO NOT blindly install all php modules you see in yast if you dont need them. This DOES work, if not ohh..well.. all the horde users will be in your very same situation... [1] http://ftp-1.gwdg.de/pub/opensuse/distribution/10.2/repo/oss hth. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232592 ------- Comment #13 from frank7@teleespoir.org 2007-01-12 09:39 MST ------- I found the bug: In SuSE 10.0 the line: $mbox = imap_open ("{$MailServer}INBOX", "UserID", "Password"); work but in SuSE 10.2 that dose not work. You have to use: $mbox = imap_open("{".$MailServer."}INBOX", "UserID", "Password"); It is the content of the variable $MailServer that is not past on to the function. You have to use '.' to seperate. Good programming to all of you. Frank -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232592 ------- Comment #14 from judas_iscariote@shorewall.net 2007-01-12 11:58 MST ------- (In reply to comment #13)
I found the bug:
There is no bug.
but in SuSE 10.2 that dose not work. You have to use: $mbox = imap_open("{".$MailServer."}INBOX", "UserID", "Password");
both of your examples are identical in results, unless the $MailServer variable contains strange caracters or you are hitting a curly brace behaviuor change a simple PHP parser change, that exists since php 5.1.2 and is not a bug, but a change that makes that kind of syntax consistent. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com