Home
last modified time | relevance | path

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

12345678910>>...14

/PHP-5.5/ext/com_dotnet/tests/
H A Dvariants.phpt76 exception Type mismatch.
82 exception Type mismatch.
87 exception Type mismatch.
92 exception Type mismatch.
97 exception Type mismatch.
102 exception Type mismatch.
107 exception Type mismatch.
112 exception Type mismatch.
117 exception Type mismatch.
122 exception Type mismatch.
[all …]
/PHP-5.5/tests/lang/
H A Derror_2_exception_001.phpt33 } catch (MyException $exception) {
34 echo "There was an exception: " . $exception->getErrno() . ", '" . $exception->getErrmsg() . "'\n";
38 trigger_error("I will become an exception", E_USER_ERROR);
39 } catch (MyException $exception) {
40 echo "There was an exception: " . $exception->getErrno() . ", '" . $exception->getErrmsg() . "'\n";
45 There was an exception: 256, 'I will become an exception'
H A D035.phpt20 throw new MyException("'This is an exception!'");
25 } catch (MyException $exception) {
26 print "There shouldn't be an exception: " . $exception->getException();
32 } catch (MyException $exception) {
33 print "There was an exception: " . $exception->getException();
38 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-5.5/Zend/
H A Dzend_exceptions.c41 if (exception == add_previous || !add_previous || !exception) { in zend_exception_set_previous()
48 …while (exception && exception != add_previous && Z_OBJ_HANDLE_P(exception) != Z_OBJ_HANDLE_P(add_p… in zend_exception_set_previous()
55 exception = previous; in zend_exception_set_previous()
64 if (EG(exception)) { in zend_exception_save()
67 EG(exception) = NULL; in zend_exception_save()
74 if (EG(exception)) { in zend_exception_restore()
102 zend_exception_set_previous(exception, EG(exception) TSRMLS_CC); in zend_throw_exception_internal()
103 EG(exception) = exception; in zend_throw_exception_internal()
109 if(EG(exception)) { in zend_throw_exception_internal()
135 if (!EG(exception)) { in zend_clear_exception()
[all …]
H A Dzend_exceptions.h29 ZEND_API void zend_exception_set_previous(zval *exception, zval *add_previous TSRMLS_DC);
33 void zend_throw_exception_internal(zval *exception TSRMLS_DC);
45 ZEND_API void zend_throw_exception_object(zval *exception TSRMLS_DC);
53 ZEND_API void zend_exception_error(zval *exception, int severity TSRMLS_DC);
/PHP-5.5/ext/xsl/tests/
H A Dbug49634.phpt33 throw new Exception('Test exception.');
55 exception 'Exception' with message 'Test exception.' in %s:%d
60 exception 'Exception' with message 'Test exception.' in %s:%d
65 exception 'Exception' with message 'Test exception.' in %s:%d
70 exception 'Exception' with message 'Test exception.' in %s:%d
75 exception 'Exception' with message 'Test exception.' in %s:%d
80 exception 'Exception' with message 'Test exception.' in %s:%d
85 exception 'Exception' with message 'Test exception.' in %s:%d
90 exception 'Exception' with message 'Test exception.' in %s:%d
95 exception 'Exception' with message 'Test exception.' in %s:%d
[all …]
/PHP-5.5/ext/spl/tests/
H A Dbug54384.phpt11 echo "exception (expected)\n";
157 IteratorIterator... exception (expected)
158 FilterIterator... exception (expected)
160 ParentIterator... exception (expected)
161 LimitIterator... exception (expected)
162 CachingIterator... exception (expected)
164 NoRewindIterator... exception (expected)
165 RegexIterator... exception (expected)
167 GlobIterator... exception (expected)
168 SplFileObject... exception (expected)
[all …]
/PHP-5.5/Zend/tests/
H A Dbug47714.phpt19 set_exception_handler(function($exception) {
21 $h->handle($exception);
24 throw new Exception('exception');
27 exception
H A Dexception_007.phpt2 Setting previous exception
21 Fatal error: Uncaught exception 'Exception' with message 'Another' in %sexception_007.php:%d
25 Next exception 'Exception' with message 'First' in %sexception_007.php:%d
29 Next exception 'Exception' with message 'Second' in %sexception_007.php:%d
33 Next exception 'Exception' with message 'Third' in %sexception_007.php:%d
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 Dbug41421.phpt2 Bug #41421 (Uncaught exception from a stream wrapper segfaults)
11 throw new exception();
24 Fatal error: Uncaught exception 'Exception' in %s:%d
H A Dbug52361.phpt2 Bug #52361 (Throwing an exception in a destructor causes invalid catching)
26 1. exception 'Exception' with message 'aaa' in %sbug52361.php:5
31 2. exception 'Exception' with message 'bbb' in %sbug52361.php:13
H A Dexception_008.phpt2 Exception in __destruct while exception is pending
27 Fatal error: Uncaught exception 'Exception' with message 'First' in %sexception_008.php:%d
32 Next exception 'Exception' with message 'Second' in %sexception_008.php:%d
H A Dbug53511.phpt2 Bug #53511 (Exceptions are lost in case an exception is thrown in catch operator)
23 Fatal error: Uncaught exception 'Exception' with message 'ops 2' in %sbug53511.php:11
28 Next exception 'Exception' with message 'ops 1' in %sbug53511.php:4
/PHP-5.5/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) {
H A DReflectionMethod_constructor_error1.phpt68 exception 'ReflectionException' with message 'Invalid method name 1' in %s
73 exception 'ReflectionException' with message 'Invalid method name 3' in %s
78 exception 'ReflectionException' with message 'The parameter class is expected to be either a string…
83 exception 'ReflectionException' with message 'Method TestClass::1() does not exist' in %s
88 exception 'ReflectionException' with message 'Invalid method name TestClass' in %s
93 exception 'ReflectionException' with message 'Method TestClass::foop::dedoop() does not exist' in %s
98 exception 'ReflectionException' with message 'Class TestCla does not exist' in %s
/PHP-5.5/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-5.5/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-5.5/ext/dom/tests/
H A Ddom003.phpt11 print "--- Catch exception with try/catch\n";
21 print "--- Don't catch exception with try/catch\n";
27 --- Catch exception with try/catch
63 --- Don't catch exception with try/catch
65 Fatal error: Uncaught exception 'DOMException' with message 'Hierarchy Request Error' in %sdom003.p…
/PHP-5.5/ext/standard/tests/array/
H A Darray_map_001.phpt9 throw new exception(1);
15 var_dump("exception caught!");
22 string(17) "exception caught!"
/PHP-5.5/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"
H A Dthrow_rethrow.phpt2 Generator::throw() where the generator throws a different exception
23 Caught: exception 'RuntimeException' with message 'throw' in %s:%d
28 Fatal error: Uncaught exception 'LogicException' with message 'new throw' in %s:%d
/PHP-5.5/ext/pdo_oci/tests/
H A Dpdo_oci_attr_autocommit_2.phpt30 echo "Caught unexpected exception at line " . __LINE__ . "\n";
35 echo "Test 2 Cause an exception and test beginTransaction rollback\n";
44 echo "Caught expected exception at line " . __LINE__ . "\n";
59 echo "Caught expected exception at line " . __LINE__ . "\n";
74 echo "Caught expected exception at line " . __LINE__ . "\n";
106 Test 2 Cause an exception and test beginTransaction rollback
107 Caught expected exception at line 35
112 Caught expected exception at line %d
116 Caught expected exception at line %d
/PHP-5.5/ext/phar/tests/
H A Dbug46032.phpt13 } catch (exception $e) { }
19 } catch (exception $e) { }
30 Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Cannot create phar '000000…

Completed in 38 milliseconds

12345678910>>...14