File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
tests /
func /
005a.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:48:06 2012 UTC (12 years, 4 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
1: --TEST--
2: Testing register_shutdown_function() with timeout. (Bug: #21513)
3: --SKIPIF--
4: <?php
5: if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
6: ?>
7: --FILE--
8: <?php
9:
10: ini_set('display_errors', 0);
11:
12: echo "Start\n";
13:
14: function boo()
15: {
16: echo "Shutdown\n";
17: }
18:
19: register_shutdown_function("boo");
20:
21: /* not necessary, just to show the error sooner */
22: set_time_limit(1);
23:
24: /* infinite loop to simulate long processing */
25: for (;;) {}
26:
27: echo "End\n";
28:
29: ?>
30: --EXPECT--
31: Start
32: Shutdown
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>