[wp-trac] [WordPress Trac] #14710: PHPMailer class can cause an already declared error if including wp-config in an external script

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 27 10:36:29 UTC 2010


#14710: PHPMailer class can cause an already declared error if including wp-config
in an external script
-----------------------------+----------------------------------------------
 Reporter:  teamplaylotto    |       Owner:                  
     Type:  feature request  |      Status:  new             
 Priority:  normal           |   Milestone:  Awaiting Review 
Component:  Mail             |     Version:  3.0.1           
 Severity:  normal           |    Keywords:  phpmailer, class
-----------------------------+----------------------------------------------

Comment(by hakre):

 I suggest to close this ticket as wontfix. When WP is PHP 5.2 it can be
 more properly dealed with such issues by using
 [http://www.php.net/manual/en/function.spl-autoload-register.php
 spl_autoload_register()] and doing wordpress class loading with it or
 something similar.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14710#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list