Home
last modified time | relevance | path

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

1234567891011

/PHP-5.3/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.3/Zend/
H A Dzend_exceptions.c40 if (exception == add_previous || !add_previous || !exception) { in zend_exception_set_previous()
47 …while (exception && exception != add_previous && Z_OBJ_HANDLE_P(exception) != Z_OBJ_HANDLE_P(add_p… in zend_exception_set_previous()
63 if (EG(exception)) { in zend_exception_save()
66 EG(exception) = NULL; in zend_exception_save()
73 if (EG(exception)) { in zend_exception_restore()
87 zend_exception_set_previous(exception, EG(exception) TSRMLS_CC); in zend_throw_exception_internal()
88 EG(exception) = exception; in zend_throw_exception_internal()
94 if(EG(exception)) { in zend_throw_exception_internal()
120 if (!EG(exception)) { in zend_clear_exception()
579 while (exception && Z_TYPE_P(exception) == IS_OBJECT) { in ZEND_METHOD()
[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);
H A Dzend_objects.c104 if (EG(exception)) { in zend_objects_destroy_object()
105 if (Z_OBJ_HANDLE_P(EG(exception)) == handle) { in zend_objects_destroy_object()
108 old_exception = EG(exception); in zend_objects_destroy_object()
109 EG(exception) = NULL; in zend_objects_destroy_object()
114 if (EG(exception)) { in zend_objects_destroy_object()
115 zend_exception_set_previous(EG(exception), old_exception TSRMLS_CC); in zend_objects_destroy_object()
117 EG(exception) = old_exception; in zend_objects_destroy_object()
/PHP-5.3/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.3/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 …]
H A Diterator_067.phpt10 echo "no exception";
16 no exception
/PHP-5.3/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 Dexception_003.phpt2 Throwing exception in global scope
11 Fatal error: Uncaught exception 'Exception' with message '1' in %s:%d
H A Dzend2.php.txt170 throw new MyException("'This is an exception!'");
175 } catch (MyException $exception) {
176 print "There was an exception: " . $exception->getException();
182 } catch (MyException $exception) {
183 print "There was an exception: " . $exception->getException();
/PHP-5.3/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.3/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.3/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.3/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.3/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.3/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.3/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 46 milliseconds

1234567891011