Annotation of embedaddon/php/tests/func/005a.phpt, revision 1.1.1.1

1.1       misho       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>