Home
last modified time | relevance | path

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

12345678910>>...12

/PHP-5.5/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: exception 'RuntimeException' with message 'throw' in %s:%d
28 Fatal error: Uncaught exception 'LogicException' with message 'new throw' in %s:%d
31 #1 %s(%d): Generator->throw(Object(RuntimeException))
H A Dthrow_not_an_exception.phpt2 Generator::throw() with something that's not an exception
11 $gen->throw(new stdClass);
/PHP-5.5/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.phpt9 throw new Exception("not catch");
13 throw new Exception("catched");
30 throw new Exception("catched");
34 throw new Exception("catched");
47 throw new Exception("not catched");
51 throw new NotExists();
H A Dbug33318.phpt2 Bug #33318 (throw 1; results in Invalid opcode 108/1/8)
5 throw 1;
8 Fatal error: Can only throw objects in %sbug33318.php on line 2
H A Dexception_006.phpt2 Trying to throw a non-object
6 throw 1;
10 Fatal error: Can only throw objects in %s on line %d
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 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 in %sbug60909_2.php on line 0
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 Dexception_005.phpt2 Trying to throw exception of an interface
8 throw new a();
H A Danonymous_func_003.phpt2 Using throw $var with anonymous function return
8 throw $a();
H A Dbug31102.phpt16 eval("class $class { function __construct(){throw new Exception('$class::__construct');}}");
19 eval("class $class { function __construct(){throw new Exception('$class::__construct');}}");
20 throw new Exception(__METHOD__);
H A Dbug34065.phpt2 Bug #34065 (throw in foreach causes memory leaks)
8 throw new Exception("error");
H A Dclosure_021.phpt8 throw new Exception('test!');
10 throw $e;
H A Dbug33802.phpt2 Bug #33802 (throw Exception in error handler causes crash)
17 throw new Exception();
H A Dindirect_call_array_004.phpt8 throw new Exception('foo');
12 throw new Exception($a);
16 throw new Exception($a);
H A Dbug32226.phpt12 throw new Exception();
19 throw new Exception();
/PHP-5.5/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-5.5/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');
H A Dspldoublylinkedlist.inc49 * @throw RuntimeException If the datastructure is empty.
54 throw new RuntimeException("Can't pop from an empty datastructure");
60 * @throw RuntimeException If the datastructure is empty.
65 throw new RuntimeException("Can't shift from an empty datastructure");
196 * @throw OutOfRangeException If the offset is either invalid or out of
202 throw new OutOfRangeException("Offset invalid or out of range");
211 * @throw OutOfRangeException If the offset is either invalid or out of
223 throw new OutOfRangeException("Offset invalid or out of range");
233 * @throw OutOfRangeException If the offset is either invalid or out of
249 throw new OutOfRangeException("Offset invalid or out of range");
[all …]
/PHP-5.5/ext/spl/tests/
H A Drecursive_tree_iterator_setprefixpart.phpt16 $it->setPrefixPart(1); // Should throw a warning as setPrefixPart expects 2 arguments
19 $it->setPrefixPart($a, 1); // Should throw a warning as setPrefixPart expects argument 1 to be long…
21 $it->setPrefixPart(1, $a); // Should throw a warning as setPrefixPart expects argument 2 to be a st…
/PHP-5.5/ext/opcache/tests/
H A Dbug65665.phpt30 throw new Exception('aaa');
68 throw new Exception('aaa');
94 throw new Exception('aaa');

Completed in 21 milliseconds

12345678910>>...12