From:             jotta at mailbox dot hu
Operating system: -
PHP version:      Irrelevant
PHP Bug Type:     Documentation problem
Bug description:  imap_search and imap_open documentation is incomplete: missing 
charset option

Description:
------------
I was looking for a solution to specify a charset option for
imap_search(). After a day long research, I've found, that this is
supported in imap_search() and imap_open() for more than a year (patch was
posted here: http://bugs.php.net/bug.php?id=22505 ), but it's still not
documented.

The documentation should read:

array imap_sort ( resource stream, int criteria, int reverse [, int
options [, string search_criteria [, string charset ]]])

and

array imap_search ( resource imap_stream, string criteria, int options,
string charset)

The documentation might help users by telling which charsets are supported
by the IMAP library:
http://www.washington.edu/imap/IMAP-FAQs/index.html#1.12

It's tested and working under Linux and PHP 4.3.7 with an IMAP library
version 2004 (that's imap-2004.tar.Z)


-- 
Edit bug report at http://bugs.php.net/?id=29677&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29677&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29677&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=29677&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=29677&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=29677&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=29677&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=29677&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=29677&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=29677&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=29677&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=29677&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=29677&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29677&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=29677&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=29677&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=29677&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29677&r=float

Reply via email to