forked from xdebug/xdebug
-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
bug00693.phpt
22 lines (22 loc) · 812 Bytes
/
bug00693.phpt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
Test for bug #693: Cachegrind files not written when filename is very long
--SKIPIF--
<?php if (substr(PHP_OS, 0, 3) == "WIN") die("skip Not for Windows"); ?>
--INI--
xdebug.profiler_enable=1
xdebug.profiler_output_name=cachegrind.01-%r.02-%r.03-%r.04-%r.05-%r.06-%r.07-%r.08-%r.09-%r.10-%r.11-%r.12-%r.13-%r.14-%r.15-%r.16-%r.17-%r.18-%r.19-%r.20-%r.21-%r.22-%r.23-%r.24-%r.25-%r.26-%r.27-%r.28-%r.29-%r.30
xdebug.overload_var_dump=0
--FILE--
<?php
$file = xdebug_get_profiler_filename();
var_dump($file === false);
var_dump(file_exists($file));
var_dump($file);
if ($file) {
unlink($file);
}
?>
--EXPECTF--
bool(false)
bool(true)
string(%d) "%scachegrind.01-%s.02-%s.03-%s.04-%s.05-%s.06-%s.07-%s.08-%s.09-%s.10-%s.11-%s.12-%s.13-%s.14-%s.15-%s.16-%s.17-%s.18-%s.19-%s.20-%s.21-%s.22-%s.23-%s.24-%s"