2002-12-19 06:54:34 +08:00
|
|
|
--TEST--
|
|
|
|
Bug #20539 (PHP CLI Segmentation Fault)
|
2008-09-10 19:12:25 +08:00
|
|
|
--SKIPIF--
|
|
|
|
<?php if (!extension_loaded("session")) die("skip session extension not available"); ?>
|
2019-09-29 03:29:54 +08:00
|
|
|
<?php if (file_exists(__DIR__. '/sess_' .session_id())) unlink(__DIR__. '/sess_' .session_id()); ?>
|
2002-12-19 06:54:34 +08:00
|
|
|
--INI--
|
|
|
|
session.auto_start=1
|
2005-07-08 15:48:57 +08:00
|
|
|
session.save_handler=files
|
2008-08-15 05:54:01 +08:00
|
|
|
session.save_path=./tests/basic/
|
2002-12-19 06:54:34 +08:00
|
|
|
--FILE--
|
|
|
|
<?php
|
2002-12-19 23:29:09 +08:00
|
|
|
print "good :)\n";
|
2008-10-27 22:25:33 +08:00
|
|
|
$filename = __DIR__ . '/sess_' . session_id();
|
2012-04-16 20:38:16 +08:00
|
|
|
var_dump(file_exists($filename));
|
|
|
|
@unlink($filename);
|
2002-12-19 06:54:34 +08:00
|
|
|
?>
|
|
|
|
--EXPECT--
|
|
|
|
good :)
|
2008-10-27 22:25:33 +08:00
|
|
|
bool(true)
|