Skip to content

Commit

Permalink
added test for #1517
Browse files Browse the repository at this point in the history
  • Loading branch information
hiciu committed Sep 20, 2017
1 parent 7cf140a commit 076f1ed
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
10 changes: 10 additions & 0 deletions t/php/config.ini
@@ -0,0 +1,10 @@
[uwsgi]
http-socket = :8080
http-socket-modifier1 = 14

cache2 = name=session,items=1000,store=/tmp/uwsgi-session-cache,bitmap=1

php-set = session.save_handler=uwsgi
php-set = session.save_path=session

php-docroot = t/php/
23 changes: 23 additions & 0 deletions t/php/test.php
@@ -0,0 +1,23 @@
<?php

# execute with:
# uwsgi --ini t/php/config.ini &
# curl http://localhost:8080/test.php

set_error_handler(function() {
var_export(func_get_args());
echo 'FAIL';
die;
});

session_start();
$_SESSION['t'] = 't';
session_commit();

session_start();
session_regenerate_id();
session_commit();

session_start();
session_destroy();
echo 'PASS';

0 comments on commit 076f1ed

Please sign in to comment.