Home
last modified time | relevance | path

Searched refs:finally (Results 1 – 25 of 161) sorted by relevance

1234567

/php-src/Zend/tests/
H A Dbug70012.phpt2 Bug #70012 (Exception lost with nested finally block)
10 } finally {
11 echo " Middle finally\n";
14 } finally {
15 echo " Inner finally\n";
21 } finally {
22 echo "Outer finally\n";
28 Middle finally
30 Inner finally
32 Outer finally
H A Dbug66608.phpt2 Bug #66608 (Incorrect behavior with nested "finally" blocks)
9 } finally {
11 } finally {
15 } finally {
20 } finally {
22 } finally {
25 } finally {
32 } finally {
37 } finally {
49 } finally {
H A Dgh15866.phpt20 } finally {
21 print "Generator finally\n";
30 } finally {
31 print "Fiber finally\n";
51 Generator finally
52 Fiber finally
/php-src/Zend/tests/generators/finally/
H A Dfinally_ran_on_close.phpt2 finally is run even if a generator is closed mid-execution
12 } finally {
13 echo "finally run\n";
15 echo "code after finally\n";
16 } finally {
17 echo "second finally run\n";
19 echo "code after second finally\n";
29 finally run
30 second finally run
H A Dreturn_return.phpt2 try { return } finally { return } in generator
12 } finally {
13 echo "before return in inner finally\n";
15 echo "after return in inner finally\n";
17 } finally {
18 echo "outer finally run\n";
21 echo "code after finally\n";
32 before return in inner finally
33 outer finally run
/php-src/Zend/tests/try/
H A Dtry_catch_finally_005.phpt2 Try catch finally (break / cont in try block)
10 } finally {
19 } finally {
28 } finally {
36 } finally {
37 var_dump("finally");
47 string(7) "finally"
50 string(7) "finally"
52 string(7) "finally"
H A Dcatch_finally_003.phpt2 Try catch finally (with multi-returns)
15 } finally {
16 dummy("finally");
17 return "finally";
27 } finally {
37 string(7) "finally"
38 string(7) "finally"
H A Dcatch_finally_004.phpt2 Try catch finally (nesting try-catch-finally)
19 } finally {
21 throw_exception("finally");
26 } finally {
40 string(7) "finally"
H A Dtry_finally_024.phpt2 Exception in finally inside finally following try/catch containing throwing try/finally
9 } finally {
12 } finally {
17 } finally {
H A Dtry_finally_002.phpt2 Try finally (re-throw exception in finally block)
8 } finally {
9 throw new Exception("finally");
22 string(7) "finally"
H A Dtry_finally_001.phpt2 Try finally (basic test)
8 } finally {
13 foo("finally");
16 string(7) "finally"
20 #0 %stry_finally_001.php(%d): foo('finally')
H A Dcatch_finally_001.phpt2 Try catch finally (basic test)
13 } finally {
14 echo "finally\n";
26 finally
31 finally
H A Dtry_catch_finally_004.phpt2 Try catch finally (re-throw exception in catch block)
17 } finally {
18 dummy("finally");
22 } finally {
29 string(7) "finally"
H A Dtry_catch_finally_002.phpt2 Try catch finally catch(multi catch blocks)
18 } finally {
21 } finally {
26 } finally {
33 } finally {
H A Dcatch_finally_002.phpt2 Try catch finally (basic test with return)
10 } finally {
11 echo "finally\n";
20 finally
H A Dtry_finally_013.phpt2 Return in try and finally inside loop
12 } finally {
13 echo "finally\n";
23 finally
H A Dtry_finally_014.phpt2 Break 2 in try and return in finally inside nested loop
13 } finally {
14 echo "finally\n";
25 finally
/php-src/Zend/tests/fibers/
H A Dunfinished-fiber-with-throw-in-finally.phpt2 Test unfinished fiber with suspend in finally
18 } finally {
19 echo "inner finally\n";
20 throw new \Exception("finally exception");
24 } finally {
25 echo "outer finally\n";
37 unset($fiber); // Destroy fiber object, executing finally block.
44 inner finally
45 finally exception
46 outer finally
H A Dunfinished-fiber-with-suspend-in-finally.phpt2 Test unfinished fiber with suspend in finally
11 } finally {
12 echo "inner finally\n";
18 } finally {
19 echo "outer finally\n";
27 unset($fiber); // Destroy fiber object, executing finally block.
34 inner finally
35 outer finally
H A Dunfinished-fiber-with-nested-try-catch.phpt18 } finally {
19 echo "inner finally\n";
21 } finally {
22 echo "outer finally\n";
29 } finally {
38 unset($fiber); // Destroy fiber object, executing finally block.
45 inner finally
46 outer finally
H A Dunfinished-fiber-with-finally.phpt2 Test unfinished fiber with finally block
13 } finally {
14 echo "finally\n";
22 unset($fiber); // Destroy fiber object, executing finally block.
29 finally
/php-src/Zend/tests/generators/
H A Dyield_in_finally_cleanup.phpt2 Free pending exceptions / return values on clone on yield in finally
8 } finally {
16 } finally {
23 } finally {
27 } finally {
37 } finally {
40 } finally {
H A Dexception_during_shutdown.phpt11 } finally {
12 echo "before yield in finally\n";
14 echo "after yield in finally\n";
16 echo "after finally\n";
25 before yield in finally
27 Fatal error: Uncaught Error: Cannot yield from finally in a force-closed generator in %s:%d
H A Dbug71601.phpt2 Bug #71601 (finally block not executed after yield from)
11 } finally {
12 echo "Inner finally\n";
20 } finally {
37 Inner finally
/php-src/Zend/tests/generators/errors/
H A Dyield_in_force_closed_finally_error.phpt2 yield cannot be used in a finally block when the generator is force-closed
11 } finally {
12 echo "before yield in finally\n";
14 echo "after yield in finally\n";
17 echo "after finally\n";
27 before yield in finally
29 Fatal error: Uncaught Error: Cannot yield from finally in a force-closed generator in %s:%d

Completed in 27 milliseconds

1234567