PHP5 mit IMAP unter Mac OS X
Original post provide by php-BloggerAls kleine Merkhilfe für mich zum o.g. Thema. Kürzlich wollte ich meiner lokalen PHP Installation unter Mac OS X 10.4.11 IMAP support hinzufügen. Meine Konfiguration dafür sah folgendermassen aus:
'./configure' '--prefix=/opt/php5' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-curl' '--without-gdbm' '--with-gettext=/opt' '--with-iconv' '--with-openssl' '--with-regex=system' '--with-xml' '--with-zlib' '--enable-exif' '--enable-sockets' '--enable-track-vars' '--enable-trans-sid' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--enable-memory-limit' '--enable-fastcgi' '--enable-memcache' '--enable-zip' '--enable-http' '--without-pdo-sqlite' '--without-sqlite' '--enable-mbstring' '--with-imap'
… und resultierte in folgender Fehlermeldung:
...
checking for IMAP support… yes
checking for IMAP Kerberos support… no
checking for IMAP SSL support… no
checking for utf8_mime2text signature… new
checking for U8T_CANONICAL… no
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.
Ein Blick in die config.log zeigt, dass das Include-File c-client.h nicht gefunden wird, und in der tat scheint c-client unter OSX nicht vorhanden zu sein:
conftest.c:240:22: error: c-client.h: No such file or directory
C-client ist Bestandteil des IMAP Paketes der University of Washington. Das komplette IMAP Paket kann über deren FTP Server gezogen werden: ftp://ftp.cac.washington.edu/imap/. Dort habe ich mir das Paket imap-2006k.tar.Z heruntergeladen. Nach dem Entpacken des Paketes wird dieses zunächst per:
$ make oxp
für Mac OS X gebaut. Das IMAP Paket enthält eine komplette IMAP Umgebung und die Installation dafür wäre deshalb auch dementsprechend umfangreich. Für PHP wird jedoch lediglich c-client benötigt, deshalb wird auch nur dieses “installiert”, z.b.:
$ mkdir -p /usr/local/imap-2006k/include /usr/local/imap-2006k/lib
$ cp c-client/*.h /usr/local/imap-2006k/include
$ cp c-client/*.c /usr/local/imap-2006k/lib
$ cp c-client/c-client.a /usr/local/imap-2006k/lib/libc-client.a
Anschliessend kann man PHP mit folgenden Parametern neu configurieren und bauen:
'./configure' '--prefix=/opt/php5' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-curl' '--without-gdbm' '--with-gettext=/opt' '--with-iconv' '--with-openssl' '--with-regex=system' '--with-xml' '--with-zlib' '--enable-exif' '--enable-sockets' '--enable-track-vars' '--enable-trans-sid' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--enable-memory-limit' '--enable-fastcgi' '--enable-memcache' '--enable-zip' '--enable-http' '--without-pdo-sqlite' '--without-sqlite' '--enable-mbstring' '--with-imap=/usr/local/imap-2006k' '--with-kerberos'
PayPal Groks Security?
Their guidelines include some subjective language, so I'm not sure how much protection this policy actually offers. (Any lawyers want to clarify?) Here they are: Share the security issue with us before making it public on message boards, mailing lists, and other forums.
Solar 1.0.0alpha1 Released
From the Solar site,Solar is a PHP 5 framework for rapid application development. It is fully name-spaced and uses enterprise application design patterns, with built-in support for localization and configuration at all levels.The site goes on to say, It uses concepts derived from the Savant template system, the DB_Table object-relation management package, the Yawp foundation for PHP applications, and the organizational structure of PEAR.You can learn more about the Solar Framework at the Solar site, read the release notes on Paul's blog, or simply jump in and download your own copy.
Drupal, EZ Systems Make EContent Top 100
and eZ Systems have been listed among the top 100 companies according to EContent Magazine. This list was chosen for “the companies that matter most in the digital content industry.” They join the ranks of Google, Microsoft, Adobe, and Apple.
Google’s Paid Search Vs. Organic Results - A Rickety Wall Of Separation
Rather, it almost certainly stemmed from the sense of entitlement that those spending large sums on paid search felt and the fact that technical help with their organic search engine placement is what they demanded. Unfortunately, this reality leaves an advertiser with a small budget for paid search at a disadvantage.
Web Writing Rules
Put the most important ideas up front as few people read the entire article and you want to get them to walk away with something valuable. While I aim to keep length at no more than 600 words in a blog posting, many long online articles succeed because they’re well-written and provide value through the entire article.
More Articles:
Announcing November Issue Of Php|architect
Some are adopted by one or two languages, but deemed unsuitable by others. Find out more about the concept of fluent interfaces in PHP.Fuzzing Your Way to Security by Ilia Alshanetsky If you’ve been reading the security publications in the past year or so, you’ve probably noticed authors referring to “fuzzing” or “fuzzers”.
Php|architect Has A New Site!
The php|a Team writes: As you have probably noticed, the php|architect website has undergone a complete head-to-toe redesign and sports a brand-new look. It also features a new engine refactored to work exclusively with PHP 5.Come pay us a visit—and get free shipping!
Three Days Left For Our IPod Promo!
The php|a Team writes: Like all good things, our hugely popular iPod training promotion is rapidly coming to an end—in fact, there are only three days left!You can still get a free iPod in time for the holidays! With our promo, you get great live training from the convenience of your home or office and up to two free iPod Touch players!For more information, visit our iPod training promo page.
PHP Advent Calendar Day 1
Name Sean Coates Blog blog.phpdoc.info Biography Sean Coates a PHP developer who works primarily on keeping things together over at php|a by developing their software and organizing their conferences. He was formerly the Editor-in-Chief of php|architect Magazine, is the co-host of the Pro::PHP Podcast and contributes to the PHP documentation team.
PHP 5.2.1 And PHP 4.4.5 Released
Details about the PHP 4.4.5 release can be found in the release announcement for 4.4.5, the full list of changes is available in the ChangeLog for PHP 4. Security Enhancements and Fixes in PHP 5.2.1 and PHP 4.4.5:Fixed possible safe_mode & open_basedir bypasses inside the session extension.Fixed unserialize() abuse on 64 bit systems with certain input strings.Fixed possible overflows and stack corruptions in the session extension.Fixed an underflow inside the internal sapi_header_op() function.Fixed non-validated resource destruction inside the shmop extension.Fixed a possible overflow in the str_replace() function.Fixed possible clobbering of super-globals in several code paths.Fixed a possible information disclosure inside the wddx extension.Fixed a possible string format vulnerability in print() functions on 64 bit systems.Fixed a possible buffer overflow inside ibase_{delete,add,modify}_user() functions.Fixed a string format vulnerability inside the odbc_result_all() function.Security Enhancements and Fixes in PHP 5.2.1 only:Prevent search engines from indexing the phpinfo() page.Fixed a number of input processing bugs inside the filter extension.Fixed allocation bugs caused by attempts to allocate negative values in some code paths.Fixed possible stack/buffer overflows inside zip, imap & sqlite extensions.Fixed several possible buffer overflows inside the stream filters.Memory limit is now enabled by default.Added internal heap protection.Extended filter extension support for $_SERVER in CGI and apache2 SAPIs.Security Enhancements and Fixes in PHP 4.4.5 only:Fixed possible overflows inside zip & imap extensions.Fixed a possible buffer overflow inside mail() function on Windows.Unbundled the ovrimos extension.