Skip to content

Commit fb2ed4f

Browse files
committed
calling storage early
1 parent 4a031d0 commit fb2ed4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/class-wp-php-console.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ public function __construct() {
6565
// By default PHP Console uses PhpConsole\Storage\Session for postponed responses,
6666
// so all temporary data will be stored in $_SESSION.
6767
// But there is some problem with frameworks like WordPress that override PHP session handler.
68-
PhpConsole\Connector::setPostponeStorage( new PhpConsole\Storage\File( '/tmp/pc.data' ) );
68+
// So we need to call the Storage session very early.
69+
PhpConsole\Connector::setPostponeStorage( new PhpConsole\Storage\Session() );
6970

7071
// Perform PHP Console initialisation required asap for other code to be able to output to the JavaScript console
7172
$connector = PhpConsole\Connector::getInstance();

0 commit comments

Comments
 (0)