php-src/tests/basic/bug20539.phpt

20 lines
459 B
Plaintext
Raw Normal View History

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"); ?>
2008-10-27 22:25:33 +08:00
<?php unlink(__DIR__. '/sess_' .session_id()); ?>
2002-12-19 06:54:34 +08:00
--INI--
session.auto_start=1
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();
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)