Home
last modified time | relevance | path

Searched refs:throw (Results 1 – 25 of 423) sorted by relevance

12345678910>>...17

/PHP-7.1/Zend/tests/generators/
H A Dthrow_rethrow.phpt2 Generator::throw() where the generator throws a different exception
13 throw new LogicException('new throw');
18 var_dump($gen->throw(new RuntimeException('throw')));
23 Caught: RuntimeException: throw in %s:%d
28 Fatal error: Uncaught LogicException: new throw in %s:%d
31 #1 %s(%d): Generator->throw(Object(RuntimeException))
H A Dget_return_errors.phpt21 throw new Exception("gen2() throw");
40 throw new Exception("gen3() throw");
60 $gen->throw(new Exception("gen4() throw"));
66 // that was injected using throw()
75 gen2() throw
77 gen3() throw
78 gen4() throw
H A Dget_return_and_finally.phpt8 throw new Exception("gen1() throw");
23 throw new Exception("gen2() throw");
30 // This will throw an exception (from the finally)
46 gen2() throw
H A Dthrow_not_an_exception.phpt2 Generator::throw() with something that's not an exception
11 $gen->throw(new stdClass);
15 Fatal error: Uncaught Error: Cannot throw objects that do not implement Throwable in %s:%d
18 #1 %s(%d): Generator->throw(Object(stdClass))
/PHP-7.1/Zend/tests/
H A Dexception_001.phpt10 throw new Exception(NULL);
13 throw $e;
17 throw $e;
21 throw $e;
25 throw $e;
H A Dbug65784.phpt7 throw new Exception("not catch");
11 throw new Exception("catched");
28 throw new Exception("catched");
32 throw new Exception("catched");
45 throw new Exception("not catched");
49 throw new NotExists();
H A Dbug33318.phpt2 Bug #33318 (throw 1; results in Invalid opcode 108/1/8)
5 throw 1;
8 Fatal error: Uncaught Error: Can only throw objects in %sbug33318.php:2
H A Dexception_006.phpt2 Trying to throw a non-object
6 throw 1;
10 Fatal error: Uncaught Error: Can only throw objects in %s:%d
H A Dbug70944.phpt8 throw new Exception("Bar", 0, $e);
10 throw $e;
19 throw new Exception("Bar", 0, $e);
21 throw new Exception("Dummy", 0, $e);
H A Dbug60909_2.phpt6 set_error_handler(function($errno, $errstr, $errfile, $errline){throw new Exception("Foo");});
10 throw new Exception('Oops, I cannot do this');
17 Fatal error: Method Bad::__toString() must not throw an exception, caught Exception: Oops, I cannot…
H A Dbug73338.phpt6 try { call_user_func(new class { function __destruct () { throw new Error; } }); } catch (Error $e)…
8 set_error_handler(function() { throw new Error; });
14 try { [new class { static function foo() {} function __destruct () { throw new Error; } }, "foo"]()…
H A Dexception_007.phpt8 throw new Exception("First", 1, new Exception("Another", 0, NULL));
11 throw new Exception("Second", 2, $e);
15 throw new Exception("Third", 3, $e);
H A Dtemporary_cleaning_010.phpt2 Live range & throw from finally
10 throw new Exception;
H A Danonymous_func_003.phpt2 Using throw $var with anonymous function return
8 throw $a();
/PHP-7.1/tests/classes/
H A Diterators_007.phpt10 …public function rewind() { if ($this->x == 0) throw new Exception(__METHOD__); reset($this->arr…
11 …public function current() { if ($this->x == 1) throw new Exception(__METHOD__); return current($…
12 …public function key() { if ($this->x == 2) throw new Exception(__METHOD__); return key($this…
13 …public function next() { if ($this->x == 3) throw new Exception(__METHOD__); next($this->arr)…
14 …public function valid() { if ($this->x == 4) throw new Exception(__METHOD__); return (key($thi…
H A Darray_access_013.phpt8 … public function offsetExists($offset) { throw new Exception(__METHOD__); return false; }
9 … public function offsetGet($offset) { throw new Exception(__METHOD__); return $offset; }
10 public function offsetSet($offset, $data ) { throw new Exception(__METHOD__); }
11 public function offsetUnset($offset) { throw new Exception(__METHOD__); }
/PHP-7.1/Zend/tests/try/
H A Dtry_finally_002.phpt2 Try finally (re-throw exception in finally block)
7 throw new Exception("try");
9 throw new Exception("finally");
H A Dcatch_finally_001.phpt5 function foo ($throw = FALSE) {
8 if ($throw) {
9 throw new Exception("ex");
H A Dcatch_finally_006.phpt2 Try catch finally (re-throw exception in catch block)
7 throw new Exception("ex");
10 throw $e;
H A Dtry_finally_026.phpt8 throw new Exception(1);
11 throw new Exception(2);
15 throw new Exception(3);
H A Dtry_finally_027.phpt2 Return in try with throw in finally, inside other finally
8 throw new Exception(1);
13 throw new Exception(2);
H A Dtry_finally_024.phpt8 throw new Exception(1);
13 throw new Exception(2);
18 throw new Exception(3);
H A Dbug70228_2.phpt7 throw new Exception(1);
10 throw new Exception(2);
/PHP-7.1/ext/spl/internal/
H A Demptyiterator.inc36 * @throw Exception
41 throw new Exception('Accessing the value of an EmptyIterator');
45 * @throw Exception
50 throw new Exception('Accessing the key of an EmptyIterator');
/PHP-7.1/Zend/tests/arg_unpack/
H A Dtraversable_throwing_exception.phpt2 Traversables that throw exceptions are properly handled during argument unpack
12 throw new Exception('getIterator');
19 throw new Exception('gen');

Completed in 26 milliseconds

12345678910>>...17