chagenbu                Wed Feb 14 13:24:47 2001 EDT

  Modified files:              
    /php4/pear/Mail     RFC822.php 
  Log:
  current php4 cvs doesn't like having a limit of 0 specified in preg_split;
  it seems to take it as meaning no matches at all.
  
  
Index: php4/pear/Mail/RFC822.php
diff -u php4/pear/Mail/RFC822.php:1.1 php4/pear/Mail/RFC822.php:1.2
--- php4/pear/Mail/RFC822.php:1.1       Wed Feb  7 12:22:59 2001
+++ php4/pear/Mail/RFC822.php   Wed Feb 14 13:24:47 2001
@@ -22,7 +22,7 @@
  *
  * @author  Richard Heyes <[EMAIL PROTECTED]>
  * @author  Chuck Hagenbuch <[EMAIL PROTECTED]>
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
  */
 class Mail_RFC822 {
 
@@ -383,7 +383,8 @@
     function validatePhrase($phrase)
     {
         // Splits on one or more Tab or space.
-        $parts = preg_split('/[ \\x09]+/', $phrase, 0, PREG_SPLIT_NO_EMPTY);
+        // $parts = preg_split('/[ \\x09]+/', $phrase, 0, PREG_SPLIT_NO_EMPTY);
+        $parts = preg_split('/[ \\x09]+/', $phrase);
         
         $phrase_parts = array();
         while (count($parts) > 0){



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to