Searched refs:throw (Results 1 – 25 of 215) sorted by relevance
123456789
/PHP-5.3/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 | 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 | 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 | bug32226.phpt | 12 throw new Exception(); 19 throw new Exception();
|
H A D | bug49893.phpt | 8 throw new Exception("2"); 17 throw new Exception("1");
|
H A D | bug33771.phpt | 12 throw new Exception(); 18 throw new Exception();
|
H A D | exception_handler_002.phpt | 10 throw new Exception(); 16 throw new test();
|
H A D | bug32993.phpt | 2 Bug #32993 (implemented Iterator function current() don't throw exception) 10 public function current() { throw new Exception(); }
|
H A D | bug52361.phpt | 8 throw new Exception(__CLASS__); 16 throw new Exception(__FUNCTION__);
|
H A D | exception_008.phpt | 9 throw new Exception("First"); 16 throw new Exception("Second");
|
/PHP-5.3/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__); }
|
H A D | tostring_003.phpt | 10 throw new Exception("Damn!"); 33 Fatal error: Method Test::__toString() must not throw an exception in %stostring_003.php on line %d
|
/PHP-5.3/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 …]
|
H A D | limititerator.inc | 40 throw new exception('Parameter offset must be > 0'); 43 throw new exception('Parameter count must either be -1 or a value greater than or equal to 0'); 54 * @throw exception when position is invalid 58 throw new exception('Cannot seek to '.$position.' which is below offset '.$this->offset); 61 …throw new exception('Cannot seek to '.$position.' which is behind offset '.$this->offset.' plus co…
|
/PHP-5.3/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…
|
Completed in 22 milliseconds
123456789