PHP 4.0 Bug #5644: imap_header function is broken

From: Date: Mon, 17 Jul 2000 18:09:32 +0000
Subject: PHP 4.0 Bug #5644: imap_header function is broken
Groups: php.dev 
Request: Send a blank email to php-dev+get-24817@lists.php.net to get a copy of this message
From: jeff@devrs.com Operating system: FreeBSD 4.0 PHP version: 4.0 Release Candidate 2 PHP Bug Type: IMAP related Bug description: imap_header function is broken This example code works fine on PHP 3.0.16... $num=1; $link = imap_open($MAILSERVER,$PHP_AUTH_USER,$PHP_AUTH_PW); $header = imap_header($link,$num); echo "From: $header[fromaddress]<br>"; echo "To: $header[toaddress]<br>"; echo "Date: $header[Date]<br>"; echo "Subject: $header[Subject]<br><br>"; echo nl2br(imap_body($link,$num)); ...but on 4.0.1r2 the "imap_header" function returns only zero length strings. ./configure '--with-apxs=/opt/Apache/bin/apxs' '--with-mysql=/opt/Mysql' '--with-pgsql=/opt/Postgres' '--with-ldap=/opt/Ldap' '--with-imap=../../mail/imap-4.7c/c-client' '--with-config-file-path=/opt/Apache/conf' '--enable-track-vars' '--enable-magic-quotes' Thanks, Jeff

« previous php.dev (#24817) next »