Searched refs:throw (Results 1 – 25 of 278) sorted by relevance
12345678910>>...12
/PHP-5.5/Zend/tests/generators/ |
H A D | throw_rethrow.phpt | 2 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 D | throw_not_an_exception.phpt | 2 Generator::throw() with something that's not an exception 11 $gen->throw(new stdClass);
|
/PHP-5.5/Zend/tests/ |
H A D | exception_001.phpt | 10 throw new Exception(NULL); 13 throw $e; 17 throw $e; 21 throw $e; 25 throw $e;
|
H A D | bug65784.phpt | 9 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 D | bug33318.phpt | 2 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 D | exception_006.phpt | 2 Trying to throw a non-object 6 throw 1; 10 Fatal error: Can only throw objects in %s on line %d
|
H A D | try_finally_002.phpt | 2 Try finally (re-throw exception in finally block) 7 throw new Exception("try"); 9 throw new Exception("finally");
|
H A D | catch_finally_001.phpt | 5 function foo ($throw = FALSE) { 8 if ($throw) { 9 throw new Exception("ex");
|
H A D | catch_finally_006.phpt | 2 Try catch finally (re-throw exception in catch block) 7 throw new Exception("ex"); 10 throw $e;
|
H A D | bug60909_2.phpt | 6 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 D | exception_007.phpt | 8 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 D | exception_005.phpt | 2 Trying to throw exception of an interface 8 throw new a();
|
H A D | anonymous_func_003.phpt | 2 Using throw $var with anonymous function return 8 throw $a();
|
H A D | bug31102.phpt | 16 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 D | bug34065.phpt | 2 Bug #34065 (throw in foreach causes memory leaks) 8 throw new Exception("error");
|
H A D | closure_021.phpt | 8 throw new Exception('test!'); 10 throw $e;
|
H A D | bug33802.phpt | 2 Bug #33802 (throw Exception in error handler causes crash) 17 throw new Exception();
|
H A D | indirect_call_array_004.phpt | 8 throw new Exception('foo'); 12 throw new Exception($a); 16 throw new Exception($a);
|
H A D | bug32226.phpt | 12 throw new Exception(); 19 throw new Exception();
|
/PHP-5.5/tests/classes/ |
H A D | iterators_007.phpt | 10 …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 D | array_access_013.phpt | 8 … 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 D | emptyiterator.inc | 36 * @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 D | spldoublylinkedlist.inc | 49 * @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 D | recursive_tree_iterator_setprefixpart.phpt | 16 $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 D | bug65665.phpt | 30 throw new Exception('aaa'); 68 throw new Exception('aaa'); 94 throw new Exception('aaa');
|
Completed in 21 milliseconds
12345678910>>...12