1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-07-31 10:20:14 +02:00

Add license header and move @author to phpdoc

This commit is contained in:
Pablo Belloc
2012-02-25 23:36:07 -03:00
parent d75e0b73f3
commit 423cfebf94
7 changed files with 67 additions and 16 deletions

View File

@@ -1,6 +1,12 @@
<?php
/**
* @author Pablo de Leon Belloc <pablolb@gmail.com>
/*
* This file is part of the Monolog package.
*
* (c) Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Monolog\Handler\SocketHandler\Exception;

View File

@@ -1,8 +1,13 @@
<?php
/**
* @author Pablo de Leon Belloc <pablolb@gmail.com>
*/
/*
* This file is part of the Monolog package.
*
* (c) Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Monolog\Handler\SocketHandler\Exception;

View File

@@ -1,8 +1,13 @@
<?php
/**
* @author Pablo de Leon Belloc <pablolb@gmail.com>
*/
/*
* This file is part of the Monolog package.
*
* (c) Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Monolog\Handler\SocketHandler;

View File

@@ -1,6 +1,12 @@
<?php
/**
* @author Pablo de Leon Belloc <pablolb@gmail.com>
/*
* This file is part of the Monolog package.
*
* (c) Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Monolog\Handler\SocketHandler;
@@ -11,10 +17,12 @@ use Monolog\Handler\SocketHandler\Exception\ConnectionException;
* Same as Socket but uses pfsockopen() instead allowing the connection to be reused in other requests.
*
* @see http://php.net/manual/en/function.pfsockopen.php
* @author Pablo de Leon Belloc <pablolb@gmail.com>
*/
class PersistentSocket extends Socket
{
protected function createSocketResource() {
protected function createSocketResource()
{
@$resource = pfsockopen($this->connectionString, -1, $errno, $errstr, $this->connectionTimeout);
if (!$resource) {
throw new ConnectionException("Failed connecting to $this->connectionString ($errno: $errstr)");

View File

@@ -1,6 +1,12 @@
<?php
/**
* @author Pablo de Leon Belloc <pablolb@gmail.com>
/*
* This file is part of the Monolog package.
*
* (c) Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Monolog\Handler\SocketHandler;
@@ -13,6 +19,7 @@ use Monolog\Handler\SocketHandler\Exception\WriteToSocketException;
* Timeout settings must be set before first write to have any effect.
*
* @see http://php.net/manual/en/function.fsockopen.php
* @author Pablo de Leon Belloc <pablolb@gmail.com>
*/
class Socket
{

View File

@@ -1,5 +1,15 @@
<?php
/*
* This file is part of the Monolog package.
*
* (c) Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Monolog\Handler\SocketHandler;
class SocketTest extends \PHPUnit_Framework_TestCase

View File

@@ -1,8 +1,13 @@
<?php
/**
* @author Pablo de Leon Belloc <pablolb@gmail.com>
*/
/*
* This file is part of the Monolog package.
*
* (c) Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Monolog\Handler;
@@ -13,6 +18,11 @@ use Monolog\Handler\SocketHandler\PersistentSocket;
use Monolog\TestCase;
use Monolog\Logger;
/**
* @author Pablo de Leon Belloc <pablolb@gmail.com>
*/
class SocketHandlerTest extends TestCase
{
public function testWrite()