File indexing completed on 2024-05-12 06:03:06

0001 <?php
0002 /**
0003  * Zend Framework
0004  *
0005  * LICENSE
0006  *
0007  * This source file is subject to the new BSD license that is bundled
0008  * with this package in the file LICENSE.txt.
0009  * It is also available through the world-wide-web at this URL:
0010  * http://framework.zend.com/license/new-bsd
0011  * If you did not receive a copy of the license and are unable to
0012  * obtain it through the world-wide-web, please send an email
0013  * to license@zend.com so we can send you a copy immediately.
0014  *
0015  * @category   Zend
0016  * @package    Zend_Session
0017  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0018  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0019  * @version    $Id$
0020  * @since      Preview Release 0.2
0021  */
0022 
0023 
0024 /**
0025  * @see Zend_Exception
0026  */
0027 // require_once 'Zend/Exception.php';
0028 
0029 
0030 /**
0031  * Zend_Session_Exception
0032  *
0033  * @category   Zend
0034  * @package    Zend_Session
0035  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0036  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0037  */
0038 class Zend_Session_Exception extends Zend_Exception
0039 {
0040     /**
0041      * sessionStartError
0042      *
0043      * @see http://framework.zend.com/issues/browse/ZF-1325
0044      * @var string PHP Error Message
0045      */
0046     static public $sessionStartError = null;
0047 
0048     /**
0049      * handleSessionStartError() - interface for set_error_handler()
0050      *
0051      * @see    http://framework.zend.com/issues/browse/ZF-1325
0052      * @param  int    $errno
0053      * @param  string $errstr
0054      * @return void
0055      */
0056     static public function handleSessionStartError($errno, $errstr, $errfile, $errline, $errcontext)
0057     {
0058         self::$sessionStartError = $errfile . '(Line:' . $errline . '): Error #' . $errno . ' ' . $errstr;
0059     }
0060 
0061     /**
0062      * handleSilentWriteClose() - interface for set_error_handler()
0063      *
0064      * @see    http://framework.zend.com/issues/browse/ZF-1325
0065      * @param  int    $errno
0066      * @param  string $errstr
0067      * @return void
0068      */
0069     static public function handleSilentWriteClose($errno, $errstr, $errfile, $errline, $errcontext)
0070     {
0071         self::$sessionStartError .= PHP_EOL . $errfile . '(Line:' . $errline . '): Error #' . $errno . ' ' . $errstr;
0072     }
0073 }
0074