[pLog-svn] r5044 - plog/branches/lifetype-1.2/class/mail/phpmailer

Jon Daley plogworld at jon.limedaley.com
Mon Mar 12 09:05:35 EDT 2007


 	Are you saying the path we are giving include_once is incorrect, 
but PHP discovers that it is wrong, and then looks in the current 
directory instead?

On Sun, 11 Mar 2007, Reto Hugi wrote:

> short story:
> using the built in smtp functionality wouldn't work
>
> long story:
> The phpmailer classes aren't modified much and don't make use of
> lifetype constants. ($this->PluginDir is actually pointing to the wrong
> place). As class.phpmailer.php and class.smtp.php are in the same
> directory it doesn't matter as long as php can include the files and not
> the lt_include function (which is not in this directory, obviously).
>
> On 03/11/2007 02:58 PM, Jon Daley wrote:
>>  	Why is this?  Does it get called from some place that doesn't have
>> the bootstrap included?
>>  	When I switched all these I couldn't think of a reason why
>> lt_include shouldn't be used everywhere, so I am curious as to what
>> reason(s) include_once is still needed.
>>
>> On Sat, 10 Mar 2007, reto at devel.lifetype.net wrote:
>>> Author: reto
>>> Date: 2007-03-10 19:22:45 -0500 (Sat, 10 Mar 2007)
>>> New Revision: 5044
>>>
>>> Modified:
>>>   plog/branches/lifetype-1.2/class/mail/phpmailer/class.phpmailer.php
>>> Log:
>>> we need include_once here.
>>>
>>>
>>>
>>> Modified: plog/branches/lifetype-1.2/class/mail/phpmailer/class.phpmailer.php
>>> ===================================================================
>>> --- plog/branches/lifetype-1.2/class/mail/phpmailer/class.phpmailer.php	2007-03-11 00:21:11 UTC (rev 5043)
>>> +++ plog/branches/lifetype-1.2/class/mail/phpmailer/class.phpmailer.php	2007-03-11 00:22:45 UTC (rev 5044)
>>> @@ -457,7 +457,7 @@
>>>      * @return bool
>>>      */
>>>     function SmtpSend($header, $body) {
>>> -        lt_include($this->PluginDir . "class.smtp.php");
>>> +        include_once($this->PluginDir . "class.smtp.php");
>>>         $error = "";
>>>         $bad_rcpt = array();
>>>
>>> @@ -1496,4 +1496,4 @@
>>>     }
>>> }
>>>
>>> -?>
>>> \ No newline at end of file
>>> +?>
>>>
>>> _______________________________________________
>>> pLog-svn mailing list
>>> pLog-svn at devel.lifetype.net
>>> http://limedaley.com/mailman/listinfo/plog-svn
>>>
>>
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
>

-- 
Jon Daley
http://jon.limedaley.com/

Don't tell people how to do things.
Tell them what to do and let them surprise you with their results.
-- George Patton


More information about the pLog-svn mailing list