#45705 [NEW]: imap_rfc822_parse_adrlist() adding NUL byte to argument

From: Date: Mon, 04 Aug 2008 09:48:47 +0000
Subject: #45705 [NEW]: imap_rfc822_parse_adrlist() adding NUL byte to argument
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-127566@lists.php.net to get a copy of this message
From: jan at horde dot org Operating system: Linux PHP version: 5.3.0alpha1 PHP Bug Type: IMAP related Bug description: imap_rfc822_parse_adrlist() adding NUL byte to argument Description: ------------ imap_rfc822_parse_adrlist() adds a NUL byte (actually replace a space with one) in the passed string argument. Reproduce code: --------------- --TEST-- imap_rfc822_parse_adrlist() adding NUL byte to argument. --SKIPIF-- <?php if (!extension_exists('imap')) echo 'skip IMAP extension not installed'; ?> --FILE-- <?php $address = 'John Doe <john@example.com>'; imap_rfc822_parse_adrlist($address, null); echo $address; ?> --EXPECT-- John Doe <john@example.com> -- Edit bug report at http://bugs.php.net/?id=45705&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45705&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45705&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45705&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45705&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45705&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45705&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45705&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45705&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45705&r=support Expected behavior: http://bugs.php.net/fix.php?id=45705&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45705&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45705&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45705&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45705&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45705&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45705&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45705&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45705&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45705&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45705&r=mysqlcfg

« previous php.bugs (#127566) next »