mirror of
https://github.com/php/php-src.git
synced 2024-12-22 16:30:02 +08:00
20 lines
509 B
PHP
20 lines
509 B
PHP
--TEST--
|
|
Bug #20539 (PHP CLI Segmentation Fault)
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("session")) die("skip session extension not available"); ?>
|
|
<?php if (file_exists(__DIR__. '/sess_' .session_id())) 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)
|