Home
last modified time | relevance | path

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

123456789

/PHP-5.3/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 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 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 Dbug32226.phpt12 throw new Exception();
19 throw new Exception();
H A Dbug49893.phpt8 throw new Exception("2");
17 throw new Exception("1");
H A Dbug33771.phpt12 throw new Exception();
18 throw new Exception();
H A Dexception_handler_002.phpt10 throw new Exception();
16 throw new test();
H A Dbug32993.phpt2 Bug #32993 (implemented Iterator function current() don't throw exception)
10 public function current() { throw new Exception(); }
H A Dbug52361.phpt8 throw new Exception(__CLASS__);
16 throw new Exception(__FUNCTION__);
H A Dexception_008.phpt9 throw new Exception("First");
16 throw new Exception("Second");
/PHP-5.3/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__); }
H A Dtostring_003.phpt10 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 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 …]
H A Dlimititerator.inc40 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);
61throw new exception('Cannot seek to '.$position.' which is behind offset '.$this->offset.' plus co…
/PHP-5.3/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…

Completed in 44 milliseconds

123456789