Hi Keith, thanks for your reply, now I solved this problem :-). But now I have a new problem:
I can´t convert german special-chars with UTF-8: Example: <? $nachricht = ' Das für <>'; echo trim(htmlspecialchars($nachricht, ENT_QUOTES, "UTF-8")); ?> The result is on my server empty :-( (Because of the special-char "ü"). I tried this code on another PHP5-Server and I got a result: Das für <> So why converts my PHP5 it to a empty value? My Configure Command: ./configure --prefix=/usr --datadir=/usr/share/php5 --mandir=/usr/share/man --bindir=/usr/bin --includedir=/usr/include --sysconfdir=/etc/php5/apache2 --with-config-file-path=/etc/php5/apache2 --with-config-file-scan-dir=/etc/php5/conf.d --with-imap --with-imap-ssl --enable-session --disable-debug --enable-zend-multibyte --with-apxs2=/usr/sbin/apxs2 --disable-cli --with-jpeg-dir --with-ldap --with-openssl --with-mcrypt --with-mysql --with-ndbm --with-png-dir --with-t1lib --with-ttf --with-freetype-dir --with-xpm-dir=/usr/X11R6 --with-zlib --with-gd --with-curl --with-iconv --with-pear --enable-zip --enable-zend-multibyte --enable-shared=all --with-readline --enable-bcmath --enable-calendar --enable-ctype --enable-dbase --enable-discard-path --enable-exif --enable-force-cgi-redirect --enable-ftp --enable-gd-native-ttf --enable-magic-quotes --enable-mbstring --enable-safe-mode --enable-shmop --enable-sigchild --enable-sysvsem --enable-sysvshm --enable-suhosin --with-openssl --with-pcre-regex=yes --enable-libxml --enable-simplexml --enable-spl --with-mm --enable-libxml --with-bz2 --with-dom --enable-filter --with-gettext --enable-hash=shared --enable-json=shared Thanks! Regards Patrick Keith Roberts schrieb: > Hi Patrick. I'm not running SuSE now and don't know what your error with > configure is, but do you really need to state all those package options > with the configure command? > > This is what my configure command looks like: > > './configure' \ > '--with-apxs2=/usr/local/apache-2.2.6/bin/apxs' \ > '--prefix=/usr/local/php-5.2.4' \ > '--bindir=/usr/local/bin' \ > '--enable-shared=all' \ > '--without-pear' \ > '--with-mysql=shared,/usr/local/mysql-5.0.45' \ > '--with-mysql-sock=/var/lib/databases/mysql/mysql.sock' \ > '--with-mysqli=shared,/usr/local/mysql-5.0.45/bin/mysql_config' \ > '--with-pgsql=/usr/local/postgresql-8.2.5/bin' \ > '--with-xsl' \ > '--with-zlib-dir=/usr/include' \ > '--with-readline' \ > "$@" > > The --enable-shared=all covers alot of standard options for compiling > PHP extensions. > > What about trying a minimal configure line with a dummy prefix, just to > test you can get past the configure stage - something like: > > ./configure --with-apxs2=/usr/local/apache-2.2.6/bin/apxs > --prefix=/usr/php-5.2.5-test > --enable-shared=all > --with-readline > > If that works, then add the options for IMAP, and run configure again. > > ./configure --with-apxs2=/usr/local/apache-2.2.6/bin/apxs > --prefix=/usr/php-5.2.5-test > --enable-shared=all > --with-readline > --with-imap > --with-imap-ssl > > You configure commands look a bit suspect to me Patrick. > > Firstly you are using 2 dots in front of your configure command, not 1: > > ../configure --prefix=/usr > > Is that intentional? > > In the above configure command, you are stating that you want to install > PHP in the /usr/ directory. > > Further down in your configure command, you are telling configure to > look for libraries in /usr/ to build various PHP extensions, such as: > > --with-imap=/usr --with-jpeg-dir=/usr/ --with-mcal=/usr > --with-mysql=/usr/ --with-png-dir=/usr with-tiff-dir=/usr > --with-gd=/usr > > It doesn't make sense to me that you are trying to install PHP into the > same directory that you are telling configure to look into for the > required libraries to build certain extensions?? > > Once you have a minimal configure that works, then just keep adding to > it, untill you have the configuration you want, without all the errors :). > > Kind Regards, > > Keith Roberts > > > On Fri, 21 Dec 2007, Patrick S. wrote: > >> To: php-install@lists.php.net >> From: Patrick S. <[EMAIL PROTECTED]> >> Subject: [PHP-INSTALL] Problem with PHP Upgrade >> >> Hello, >> I want to upgrade from PHP 4.4.7 to 5.2.5. >> >> System: openSuse 10.1 >> >> The packages: >> imap 2004g_suse-14 >> imap-devel 2004g_suse-14 >> imap-lib 2004g_suse-14 >> are installed! >> >> My Configure Command: >> ../configure --prefix=/usr --datadir=/usr/share/php5 >> --mandir=/usr/share/man --bindir=/usr/bin --includedir=/usr/include >> --sysconfdir=/etc/php5/apache2 --with-config-file-path=/etc/php5/apache2 >> --with-config-file-scan-dir=/etc/php5/conf.d --enable-libxml >> --enable-filter --enable-session --with-mm --with-pcre-regex >> --enable-xml --enable-simplexml --enable-spl --disable-debug >> --enable-inline-optimization --enable-zend-multibyte --disable-rpath >> --with-apxs2=/usr/sbin/apxs2 --enable-suhosin --disable-all >> --disable-cli --enable-bcmath --enable-calendar --enable-ctype >> --enable-dbase --enable-discard-path --enable-exif --enable-filepro >> --enable-force-cgi-redirect --enable-ftp --enable-gd-imgstrttf >> --enable-gd-native-ttf --enable-magic-quotes --enable-mbstr-enc-trans >> --enable-mbstring --enable-memory-limit --enable-safe-mode >> --enable-shmop --enable-sigchild --enable-sysvsem --enable-sysvshm >> --enable-track-vars --enable-trans-sid --enable-versioning --enable-wddx >> --with-bz2 --with-dom --with-ftp --with-gdbm --with-gettext --with-gmp >> --with-imap=/usr --with-jpeg-dir=/usr/ --with-ldap --with-mcal=/usr >> --with-openssl --with-mcrypt --enable-yp --with-mysql=/usr/ --with-ndbm >> --with-png-dir=/usr --with-t1lib --with-tiff-dir=/usr --with-ttf >> --with-freetype-dir --with-xml --with-swf --with-xpm-dir=/usr/X11R6 >> --with-zlib --with-gd=/usr --with-curl --with-imap-ssl --with-iconv >> --with-pear --enable-zip --enable-zend-multibyte >> >> But I always get this error: >> [...] >> checking if your cpp allows macro usage in include lines... yes >> checking for IMAP support... yes >> checking for IMAP Kerberos support... no >> checking for IMAP SSL support... yes >> checking for utf8_mime2text signature... old >> checking for U8T_CANONICAL... no >> checking for pam_start in -lpam... yes >> checking for crypt in -lcrypt... (cached) yes >> checking for OpenSSL version... >= 0.9.6 >> checking for CRYPTO_free in -lcrypto... (cached) yes >> checking for SSL_CTX_set_ssl_version in -lssl... (cached) yes >> checking whether build with IMAP works... no >> configure: error: build test failed. Please check the config.log for >> details. >> >> Here my config.log: >> [...] >> configure:48675: checking for OpenSSL version >> configure:48832: checking for CRYPTO_free in -lcrypto >> configure:49008: checking for SSL_CTX_set_ssl_version in -lssl >> configure:49204: gcc -o conftest -I/usr/include -g -O2 -L/usr/lib >> -L/usr//lib -L/usr/X11R6/lib -L/usr/local/lib conftest.c -lc-client >> -lssl -lcrypto -lcrypt -lpam -lgmp -lgd -lt1 -lfreetype -lX11 -lXpm >> -lpng -lz -ljpeg -lssl -lcrypto -lndbm -lgdbm -lcurl -lbz2 -lz -lssl >> -lcrypto -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lcurl -lidn -lssl >> -lcrypto -ldl -lz 1>&5 >> /tmp/ccklxJu8.o: In function `main': >> /home/pas/php-5.2.5/configure:49198: undefined reference to >> `auth_gssapi_valid' >> collect2: ld returned 1 exit status >> configure: failed program was: >> #line 49177 "configure" >> #include "confdefs.h" >> >> >> void mm_log(void){} >> void mm_dlog(void){} >> void mm_flags(void){} >> void mm_fatal(void){} >> void mm_critical(void){} >> void mm_nocritical(void){} >> void mm_notify(void){} >> void mm_login(void){} >> void mm_diskerror(void){} >> void mm_status(void){} >> void mm_lsub(void){} >> void mm_list(void){} >> void mm_exists(void){} >> void mm_searched(void){} >> void mm_expunged(void){} >> >> char auth_gssapi_valid(); >> int main() { >> auth_gssapi_valid(); >> return 0; >> } >> >> configure:49231: checking whether build with IMAP works >> configure:49269: gcc -o conftest -I/usr/include -g -O2 -L/usr/lib >> -L/usr//lib -L/usr/X11R6/lib -L/usr/local/lib conftest.c -lc-client >> -lssl -lcrypto -lcrypt -lpam -lgmp -lgd -lt1 -lfreetype -lX11 -lXpm >> -lpng -lz -ljpeg -lssl -lcrypto -lndbm -lgdbm -lcurl -lbz2 -lz -lssl >> -lcrypto -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lcurl -lidn -lssl >> -lcrypto -ldl -lz 1>&5 >> configure: failed program was: >> #line 49242 "configure" >> #include "confdefs.h" >> >> >> void mm_log(void){} >> void mm_dlog(void){} >> void mm_flags(void){} >> void mm_fatal(void){} >> void mm_critical(void){} >> void mm_nocritical(void){} > void mm_notify(void){} >> void mm_login(void){} >> void mm_diskerror(void){} >> void mm_status(void){} >> void mm_lsub(void){} >> void mm_list(void){} >> void mm_exists(void){} >> void mm_searched(void){} >> void mm_expunged(void){} >> >> char mail_newbody(); >> int main() { >> mail_newbody(); >> return 0; >> } >> >> >> So what made I wrong? >> >> Thanks! >> >> Regards Patrick > > ----------------------------------------------------------------- > Websites: > http://www.karsites.net > http://www.raised-from-the-dead.org.uk > > All email addresses are challenge-response protected with > TMDA [http://tmda.net] > -----------------------------------------------------------------