if ( count( $this->to ) + count( $this->cc ) + count( $this->bcc ) < 1 )
{
( $this->Lang( "provide_address" ), self::STOP_CRITICAL );
throw new phpmailerException( );
}
上面代码运行报错:Parse error: syntax error, unexpected ',' in E:\PHPnow-1.5.6\htdocs\source\core\util\class.phpmailer.php on line 272
272行代码是: ( $this->Lang( "provide_address" ), self::STOP_CRITICAL );

解决方案 »

  1.   

    ( $this->Lang( "provide_address" ), self::STOP_CRITICAL );
    这个是什么东西?确定前面没有代码了,这个应该是调用一个函数吧?
      

  2.   

    ( $this->Lang( "provide_address" ), self::STOP_CRITICAL );这里是怎么定义的?
      

  3.   

    下面是错误行上下几行代码
    protected function PreSend( )
    {
    try
    {
    $mailHeader = "";
    if ( count( $this->to ) + count( $this->cc ) + count( $this->bcc ) < 1 )
    {
    ( $this->Lang( "provide_address" ), self::STOP_CRITICAL );
    throw new phpmailerException( );
    }
    if ( !empty( $this->AltBody ) )
    {
    $this->ContentType = "multipart/alternative";
    }
      

  4.   

    代码写的有问题,
    [code=php]protected function PreSend( )
    {
    try
    {
    $mailHeader = "";
    if ( count( $this->to ) + count( $this->cc ) + count( $this->bcc ) < 1 )
    {
    //你这里想要做什么?语法肯定过不了的
    ( $this->Lang( "provide_address" ), self::STOP_CRITICAL);
    throw new phpmailerException( );
    }
      

  5.   

    ( $this->Lang( "provide_address" ), self::STOP_CRITICAL );
    请问你这个是啥子
      

  6.   

    ( $this->Lang( "provide_address" ), self::STOP_CRITICAL );还是这句话