mirror of
https://github.com/php/php-src.git
synced 2024-12-27 02:39:39 +08:00
21 lines
460 B
PHP
21 lines
460 B
PHP
--TEST--
|
|
Bug #20539 (PHP CLI Segmentation Fault)
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("session")) die("skip session extension not available"); ?>
|
|
<?php unlink(__DIR__. '/sess_' .session_id()); ?>
|
|
--INI--
|
|
session.auto_start=1
|
|
session.save_handler=files
|
|
session.save_path=./tests/basic/
|
|
--FILE--
|
|
<?php
|
|
print "good :)\n";
|
|
$filename = __DIR__ . '/sess_' . session_id();
|
|
var_dump(file_exists($filename));
|
|
@unlink($filename);
|
|
?>
|
|
--EXPECT--
|
|
good :)
|
|
bool(true)
|
|
|