mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
7485978339
This is an automated migration of most SKIPIF extension_loaded checks.
21 lines
456 B
PHP
21 lines
456 B
PHP
--TEST--
|
|
Bug #20539 (PHP CLI Segmentation Fault)
|
|
--EXTENSIONS--
|
|
session
|
|
--SKIPIF--
|
|
<?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)
|