php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7331 imap no workie
Submitted: 2000-10-19 03:33 UTC Modified: 2000-10-19 17:00 UTC
From: mpeters at abriasoft dot com Assigned:
Status: Closed Package: IMAP related
PHP Version: 4.0.3pl1 OS: linux (Red Hat 6.x and 7)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mpeters at abriasoft dot com
New email:
PHP Version: OS:

 

 [2000-10-19 03:33 UTC] mpeters at abriasoft dot com
When building imap as a dynamic module, it fails to work.

The module loads, but pages that make use of imap php functions fail.

For example, after entering the login data for basilix (php imap client) browser returns "page contained no data")

imap.so with php-4.0.2 works beautifully, built in identical fashion.

Here's the code that builds the module:

# Build PHP modules.
build_ext() {
gcc -fPIC -shared $RPM_OPT_FLAGS -DHAVE_CONFIG_H -I.\
        -I. -I`/usr/sbin/apxs -q INCLUDEDIR` -I./Zend \
        -I/usr/include/freetype -I/usr/include/$1 \
        -I./ext/$1 -I./ext/$1/lib$1 -I./main\
        -I./TSRM\
        -I./ext/xml/expat/xmltok -I./ext/xml/expat/xmlparse \
        -DHAVE_CONFIG_H `grep ^CPPFLAGS Zend/Makefile | cut -f2- -d=` \
        $4 $2 -o $1.so $3 -lc
}

build_ext imap ext/imap/php_imap.c "/usr/lib/c-client.a" "-DCOMPILE_DL_IMAP"


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-19 04:38 UTC] mpeters at abriasoft dot com
note-

When the phpinfo() function is called, it don't show any sign of imap.

I know 4.0.3pl1 is properly loading modules- 'cause I build gd.so as a module. When php.ini is told not to load gd.so, gd.so don't load and no gd. When php.ini is told to load gd.so (uncomment) gd works. Same with mysql.so. It's the imap one thats not loading properly (or something)- and phpinfo knows nada about it.
 [2000-10-19 09:28 UTC] chagenbu@php.net
If phpinfo() doesn't mention IMAP, then it isn't loading properly. Have you checked your webservers error log, or tried to get a backtrace of what happens when you try basilix?
 [2000-10-19 16:54 UTC] mpeters at abriasoft dot com
PHP Warning: Unable to load dynamic library 'blah/imap.so' - undefined symbol: gss_mech_krb5 in Unknown on line 0

(from apache error log)
 [2000-10-19 17:00 UTC] chagenbu@php.net
This is a duplicate of bug #4424 (and possibly others)
 [2000-10-19 17:00 UTC] rasmus@php.net
This was fixed a couple of versions ago.  Simply configure PHP using --with-kerberos and this problem will go away.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 20:01:29 2024 UTC