mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-01 10:50:21 +02:00
Add license header and move @author to phpdoc
This commit is contained in:
@@ -1,6 +1,12 @@
|
|||||||
<?php
|
<?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;
|
namespace Monolog\Handler\SocketHandler\Exception;
|
||||||
|
@@ -1,8 +1,13 @@
|
|||||||
<?php
|
<?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;
|
namespace Monolog\Handler\SocketHandler\Exception;
|
||||||
|
|
||||||
|
@@ -1,8 +1,13 @@
|
|||||||
<?php
|
<?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;
|
namespace Monolog\Handler\SocketHandler;
|
||||||
|
|
||||||
|
@@ -1,6 +1,12 @@
|
|||||||
<?php
|
<?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;
|
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.
|
* 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
|
* @see http://php.net/manual/en/function.pfsockopen.php
|
||||||
|
* @author Pablo de Leon Belloc <pablolb@gmail.com>
|
||||||
*/
|
*/
|
||||||
class PersistentSocket extends Socket
|
class PersistentSocket extends Socket
|
||||||
{
|
{
|
||||||
protected function createSocketResource() {
|
protected function createSocketResource()
|
||||||
|
{
|
||||||
@$resource = pfsockopen($this->connectionString, -1, $errno, $errstr, $this->connectionTimeout);
|
@$resource = pfsockopen($this->connectionString, -1, $errno, $errstr, $this->connectionTimeout);
|
||||||
if (!$resource) {
|
if (!$resource) {
|
||||||
throw new ConnectionException("Failed connecting to $this->connectionString ($errno: $errstr)");
|
throw new ConnectionException("Failed connecting to $this->connectionString ($errno: $errstr)");
|
||||||
|
@@ -1,6 +1,12 @@
|
|||||||
<?php
|
<?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;
|
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.
|
* Timeout settings must be set before first write to have any effect.
|
||||||
*
|
*
|
||||||
* @see http://php.net/manual/en/function.fsockopen.php
|
* @see http://php.net/manual/en/function.fsockopen.php
|
||||||
|
* @author Pablo de Leon Belloc <pablolb@gmail.com>
|
||||||
*/
|
*/
|
||||||
class Socket
|
class Socket
|
||||||
{
|
{
|
||||||
|
@@ -1,5 +1,15 @@
|
|||||||
<?php
|
<?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;
|
namespace Monolog\Handler\SocketHandler;
|
||||||
|
|
||||||
class SocketTest extends \PHPUnit_Framework_TestCase
|
class SocketTest extends \PHPUnit_Framework_TestCase
|
||||||
|
@@ -1,8 +1,13 @@
|
|||||||
<?php
|
<?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;
|
namespace Monolog\Handler;
|
||||||
|
|
||||||
@@ -13,6 +18,11 @@ use Monolog\Handler\SocketHandler\PersistentSocket;
|
|||||||
use Monolog\TestCase;
|
use Monolog\TestCase;
|
||||||
use Monolog\Logger;
|
use Monolog\Logger;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Pablo de Leon Belloc <pablolb@gmail.com>
|
||||||
|
*/
|
||||||
class SocketHandlerTest extends TestCase
|
class SocketHandlerTest extends TestCase
|
||||||
{
|
{
|
||||||
public function testWrite()
|
public function testWrite()
|
||||||
|
Reference in New Issue
Block a user