-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v3.1 Release with more stable client-server protocol
Fixed: headers problem if flush() or ob_end_clean() is called before script shutdown Fixed: problem with frameworks that overrides $_SESSION handler see https://github.com/barbushin/php-console#troubleshooting-with-_session-handler-overridden-in-some-frameworks Migration: Update PHP Console extension to last version >= 3.0.20 [Fixes #34] [Relative #36]
- Loading branch information
Showing
26 changed files
with
574 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
namespace PhpConsole; | ||
|
||
/** | ||
* Storage for postponed response data | ||
* | ||
* @package PhpConsole | ||
* @version 3.1 | ||
* @link http://php-console.com | ||
* @author Sergey Barbushin http://linkedin.com/in/barbushin | ||
* @copyright © Sergey Barbushin, 2011-2013. All rights reserved. | ||
* @license http://www.opensource.org/licenses/BSD-3-Clause "The BSD 3-Clause License" | ||
*/ | ||
abstract class Storage { | ||
|
||
protected $keyLifetime = 60; | ||
|
||
/** | ||
* Get postponed data from storage and delete | ||
* @param string $key | ||
* @return string | ||
*/ | ||
abstract public function pop($key); | ||
|
||
/** | ||
* Save postponed data to storage | ||
* @param string $key | ||
* @param string $data | ||
*/ | ||
abstract public function push($key, $data); | ||
|
||
/** | ||
* Set maximum key lifetime in seconds | ||
* @param int $seconds | ||
*/ | ||
public function setKeyLifetime($seconds) { | ||
$this->keyLifetime = $seconds; | ||
} | ||
} |
Oops, something went wrong.