Home
last modified time | relevance | path

Searched refs:exception (Results 1 – 25 of 381) sorted by relevance

12345678910>>...16

/PHP-7.4/ext/com_dotnet/tests/
H A Dvariants.phpt77 exception Type mismatch.
83 exception Type mismatch.
88 exception Type mismatch.
93 exception Type mismatch.
98 exception Type mismatch.
103 exception Type mismatch.
108 exception Type mismatch.
113 exception Type mismatch.
118 exception Type mismatch.
123 exception Type mismatch.
[all …]
H A Dvariants_x64.phpt80 exception Type mismatch.
86 exception Type mismatch.
91 exception Type mismatch.
96 exception Type mismatch.
101 exception Type mismatch.
106 exception Type mismatch.
111 exception Type mismatch.
116 exception Type mismatch.
121 exception Type mismatch.
126 exception Type mismatch.
[all …]
/PHP-7.4/tests/lang/
H A Derror_2_exception_001.phpt31 } catch (MyException $exception) {
32 echo "There was an exception: " . $exception->getErrno() . ", '" . $exception->getErrmsg() . "'\n";
36 trigger_error("I will become an exception", E_USER_ERROR);
37 } catch (MyException $exception) {
38 echo "There was an exception: " . $exception->getErrno() . ", '" . $exception->getErrmsg() . "'\n";
43 There was an exception: 256, 'I will become an exception'
H A D035.phpt18 throw new MyException("'This is an exception!'");
23 } catch (MyException $exception) {
24 print "There shouldn't be an exception: " . $exception->getException();
30 } catch (MyException $exception) {
31 print "There was an exception: " . $exception->getException();
36 There was an exception: 'This is an exception!'
H A Dthrow_variation_001.phpt2 Catching an exception thrown from an included file
9 echo "caught exception\n";
14 caught exception
/PHP-7.4/Zend/
H A Dzend_exceptions.c121 if (EG(exception)) { in zend_exception_save()
155 zend_exception_set_previous(Z_OBJ_P(exception), EG(exception)); in zend_throw_exception_internal()
156 EG(exception) = Z_OBJ_P(exception); in zend_throw_exception_internal()
162 …if (exception && (Z_OBJCE_P(exception) == zend_ce_parse_error || Z_OBJCE_P(exception) == zend_ce_c… in zend_throw_exception_internal()
165 if(EG(exception)) { in zend_throw_exception_internal()
197 exception = EG(exception); in zend_clear_exception()
736 exception = GET_PROPERTY(exception, ZEND_STR_PREVIOUS); in ZEND_METHOD()
737 if (exception && Z_TYPE_P(exception) == IS_OBJECT && Z_IS_RECURSIVE_P(exception)) { in ZEND_METHOD()
745 …while (exception && Z_TYPE_P(exception) == IS_OBJECT && (base_ce = i_get_exception_base(exception)… in ZEND_METHOD()
751 exception = GET_PROPERTY(exception, ZEND_STR_PREVIOUS); in ZEND_METHOD()
[all …]
H A Dzend_exceptions.h38 ZEND_API void zend_exception_set_previous(zend_object *exception, zend_object *add_previous);
42 ZEND_API ZEND_COLD void zend_throw_exception_internal(zval *exception);
60 ZEND_API ZEND_COLD void zend_throw_exception_object(zval *exception);
68 ZEND_API ZEND_COLD void zend_exception_error(zend_object *exception, int severity);
/PHP-7.4/ext/spl/tests/
H A Dbug54384.phpt11 echo "exception (expected)\n";
156 IteratorIterator... exception (expected)
157 FilterIterator... exception (expected)
159 ParentIterator... exception (expected)
160 LimitIterator... exception (expected)
161 CachingIterator... exception (expected)
163 NoRewindIterator... exception (expected)
164 RegexIterator... exception (expected)
166 GlobIterator... exception (expected)
167 SplFileObject... exception (expected)
[all …]
H A Dbug73629.phpt9 echo 'unexpected exception: ' . $e->getMessage() . "\n";
14 echo 'expected exception: ' . $e->getMessage() . "\n";
19 expected exception: Iterators' LIFO/FIFO modes for SplStack/SplQueue objects are frozen
/PHP-7.4/Zend/tests/
H A Dthis_in_isset.phpt9 echo "exception\n";
14 echo "exception\n";
19 echo "exception\n";
36 exception
37 exception
38 exception
H A Dbug47714.phpt15 set_exception_handler(function($exception) {
17 $h->handle($exception);
20 throw new Exception('exception');
23 exception
H A Dbug76025.phpt2 Bug #76025 (Segfault while throwing exception in error_handler)
7 $exception = new exception("blah");
8 throw $exception;
H A Dbug29368.phpt2 Bug #29368 (The destructor is called when an exception is thrown from the constructor)
24 echo "Caught exception!\n";
33 Caught exception!
H A Dbug29368_1.phpt2 Bug #29368.1 (The destructor is called when an exception is thrown from the constructor).
24 echo "Caught exception!\n";
29 Caught exception!
H A Dbug29368_3.phpt2 Bug #29368.3 (The destructor is called when an exception is thrown from the constructor).
26 echo "Caught exception!\n";
33 Caught exception!
/PHP-7.4/ext/json/tests/
H A Djson_exceptions_error_clearing.phpt19 echo "Caught JSON exception: ", $e->getCode(), PHP_EOL;
27 echo "Caught JSON exception: ", $e->getCode(), PHP_EOL;
36 echo "Caught JSON exception: ", $e->getCode(), PHP_EOL;
45 Caught JSON exception: 4
47 Caught JSON exception: 4
49 Caught JSON exception: 7
/PHP-7.4/ext/xsl/tests/
H A Dbug49634.phpt33 throw new Exception('Test exception.');
55 Exception: Test exception. in %s:%d
60 Exception: Test exception. in %s:%d
65 Exception: Test exception. in %s:%d
70 Exception: Test exception. in %s:%d
75 Exception: Test exception. in %s:%d
80 Exception: Test exception. in %s:%d
85 Exception: Test exception. in %s:%d
90 Exception: Test exception. in %s:%d
95 Exception: Test exception. in %s:%d
[all …]
/PHP-7.4/Zend/tests/try/
H A Dtry_finally_012.phpt2 Try finally (exception in "return" statement)
17 echo "exception in foo\n";
26 echo "exception in main\n";
31 exception in main
/PHP-7.4/ext/standard/tests/class_object/
H A Dmethod_exists_basic_002.phpt12 echo "Does exception::getmessage exist? ";
13 var_dump(method_exists("exception", "getmessage"));
18 echo "Does exception::getmessage exist? ";
19 var_dump(method_exists(new exception, "getmessage"));
27 Does exception::getmessage exist? bool(true)
31 Does exception::getmessage exist? bool(true)
/PHP-7.4/ext/reflection/tests/
H A DReflectionClass_getProperty_002.phpt16 } catch (exception $e) {
21 } catch (exception $e) {
26 } catch (exception $e) {
31 } catch (exception $e) {
36 } catch (exception $e) {
41 } catch (exception $e) {
46 } catch (exception $e) {
51 } catch (exception $e) {
/PHP-7.4/ext/sqlite3/tests/
H A Dbug72668.phpt2 Bug #72668 (Spurious warning when exception is thrown in user defined function)
9 throw new \Exception("test exception\n");
39 Exception: test exception
40 Exception: test exception
41 Exception: test exception
/PHP-7.4/ext/date/tests/
H A DDatePeriod_wrong_recurrence_on_constructor.phpt7 } catch (Exception $exception) {
8 echo $exception->getMessage(), "\n";
13 } catch (Exception $exception) {
14 echo $exception->getMessage(), "\n";
/PHP-7.4/ext/standard/tests/general_functions/
H A Dbug25038.phpt2 Bug #25038 (call_user_func issues warning if function throws exception)
8 throw new Exception("This is an exception from bar({$x}).");
30 This is an exception from bar(first try).
31 This is an exception from bar(second try).
/PHP-7.4/ext/standard/tests/array/
H A Darray_map_001.phpt9 throw new exception(1);
15 var_dump("exception caught!");
21 string(17) "exception caught!"
/PHP-7.4/Zend/tests/generators/
H A Dgenerator_throwing_during_function_call.phpt2 Stack is cleaned up properly when an exception is thrown during a function call
23 echo 'Caught exception with message "', $e->getMessage(), '"', "\n";
31 Caught exception with message "test"

Completed in 39 milliseconds

12345678910>>...16