Searched refs:exception (Results 1 - 25 of 48) sorted by relevance

12

/PHP_5_5/ext/spl/examples/
H A Ddba_array.php48 catch (exception $err) {
H A Ddbaarray.inc32 throw new exception("Databse could not be opened");
H A Ddbareader.inc32 throw new exception('Could not open file ' . $file);
/PHP_5_5/ext/spl/internal/
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);
61 throw new exception('Cannot seek to '.$position.' which is behind offset '.$this->offset.' plus count '.$this->count);
H A Dseekableiterator.inc28 * The method should throw an exception if it is not possible to seek to
29 * the given position. Typically this exception should be of type
H A Dcachingiterator.inc129 * @throw exception when CALL_TOSTRING was not specified in constructor
143 throw new exception('CachingIterator does not fetch string value (see CachingIterator::__construct)');
H A Demptyiterator.inc35 /** This function must not be called. It throws an exception upon access.
44 /** This function must not be called. It throws an exception upon access.
/PHP_5_5/scripts/dev/generate-phpt/src/
H A Dgenerate-phpt.php22 } catch (exception $e) {
34 } catch (exception $e) {
/PHP_5_5/ext/spl/
H A Dspl_heap.c107 if (EG(exception)) {
146 if (EG(exception)) {
155 /* exception or call failure */
171 if (EG(exception)) {
180 /* exception or call failure */
202 if (EG(exception)) {
211 /* exception or call failure */
256 if (EG(exception)) {
257 /* exception thrown during comparison */
304 if (EG(exception)) {
[all...]
H A Dspl_iterators.c215 while (!EG(exception)) {
221 if (EG(exception)) {
243 if (EG(exception)) {
279 if (EG(exception)) {
306 if (EG(exception)) {
343 if (EG(exception)) {
357 if (EG(exception)) {
386 if (!EG(exception) && (!object->endChildren || object->endChildren->common.scope != spl_ce_RecursiveIteratorIterator)) {
396 if (!EG(exception) && object->beginIteration && !object->in_iteration) {
562 if (EG(exception)) {
[all...]
/PHP_5_5/ext/sqlite3/
H A Dphp_sqlite3_structs.h82 zend_bool exception; member in struct:_php_sqlite3_db_object
/PHP_5_5/ext/standard/
H A Dvar.c715 if (EG(exception)) {
806 if (EG(exception)) {
933 if (EG(exception)) {
968 if (!EG(exception)) {
H A Dvar_unserializer.c445 if (EG(exception)) {
673 if (EG(exception)) {
682 if (EG(exception)) {
703 if (EG(exception)) {
720 if (EG(exception)) {
/PHP_5_5/Zend/
H A Dzend.c289 zend_error(EG(exception) ? E_ERROR : E_RECOVERABLE_ERROR, "Object of class %s could not be converted to string", Z_OBJCE_P(expr)->name);
1028 /* Report about uncaught exception in case of fatal errors */
1029 if (EG(exception)) {
1040 zend_exception_error(EG(exception), E_WARNING TSRMLS_CC);
1041 EG(exception) = NULL;
1205 } else if (!EG(exception)) {
1318 if (EG(exception)) {
1322 old_exception = EG(exception);
1323 EG(exception) = NULL;
1330 if (EG(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);
42 * message NULL or the message of the exception */
45 ZEND_API void zend_throw_exception_object(zval *exception TSRMLS_DC);
52 /* show an exception using zend_error(severity,...), severity should be E_ERROR */
53 ZEND_API void zend_exception_error(zval *exception, int severity TSRMLS_DC);
H A Dzend_globals.h241 zval *exception, *prev_exception; member in struct:_zend_executor_globals
H A Dzend_interfaces.c104 if (!EG(exception)) {
209 if (!EG(exception)) {
278 if (!EG(exception)) {
326 /* c-level get_iterator cannot be changed (exception being only Traversable is implmented) */
409 if (!retval || EG(exception)) {
429 if (result == FAILURE && !EG(exception)) {
450 if (EG(exception)) {
H A Dzend_objects.c111 * For example, if an exception was thrown in a function and when the function's
115 if (EG(exception)) {
116 if (Z_OBJ_HANDLE_P(EG(exception)) == handle) {
117 zend_error(E_ERROR, "Attempt to destruct pending exception");
119 old_exception = EG(exception);
120 EG(exception) = NULL;
125 if (EG(exception)) {
126 zend_exception_set_previous(EG(exception), old_exception TSRMLS_CC);
128 EG(exception) = old_exception;
H A Dzend_exceptions.c37 void zend_exception_set_previous(zval *exception, zval *add_previous TSRMLS_DC) argument
41 if (exception == add_previous || !add_previous || !exception) {
45 zend_error(E_ERROR, "Cannot set non exception as previous exception");
48 while (exception && exception != add_previous && Z_OBJ_HANDLE_P(exception) != Z_OBJ_HANDLE_P(add_previous)) {
49 previous = zend_read_property(default_exception_ce, exception, "previous", sizeof("previous")-1, 1 TSRMLS_CC);
51 zend_update_property(default_exception_ce, exception, "previou
634 zval message, file, line, *trace, *exception; local
852 zend_exception_error(zval *exception, int severity TSRMLS_DC) argument
[all...]
H A Dzend_execute_API.c186 EG(exception) = NULL;
406 if(EG(exception) && EG(opline_ptr) && active_opline->opcode == ZEND_HANDLE_EXCEPTION &&
750 if (EG(exception)) {
965 if (EG(exception) && fci->retval_ptr_ptr) {
989 if (EG(exception) && fci->retval_ptr_ptr) {
1004 if (EG(exception)) {
1233 if (handle_exceptions && EG(exception)) {
1234 zend_exception_error(EG(exception), E_ERROR TSRMLS_CC);
1311 if (EG(exception)) {
1312 zend_exception_error(EG(exception), E_ERRO
[all...]
H A Dzend_generators.c393 /* If an exception was thrown in the generator we have to internally
395 if (UNEXPECTED(EG(exception) != NULL)) {
548 /* {{{ proto mixed Generator::throw(Exception $exception)
549 * Throws an exception into the generator */
552 zval *exception, *exception_copy; local
555 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &exception) == FAILURE) {
560 MAKE_COPY_ZVAL(&exception, exception_copy);
567 /* Throw the exception in the context of the generator */
581 /* If the generator is already closed throw the exception in the
717 ZEND_ARG_INFO(0, exception)
[all...]
H A Dzend_vm_def.h1785 if (UNEXPECTED(EG(exception) != NULL)) {
1855 if (UNEXPECTED(EG(exception) != NULL)) {
1875 if (UNEXPECTED(EG(exception) != NULL) && EX(call)->is_ctor_call) {
1893 if (UNEXPECTED(EG(exception) != NULL)) {
1969 if (EXPECTED(EG(exception) == NULL)) {
2009 if (EXPECTED(EG(exception) == NULL)) {
2054 if (UNEXPECTED(EG(exception) != NULL) && EX(call)->is_ctor_call) {
2073 if (UNEXPECTED(EG(exception) != NULL)) {
2110 if (UNEXPECTED(EG(exception) != NULL)) {
2140 if (UNEXPECTED(EG(exception) !
2950 zval *exception; variable
2965 ALLOC_ZVAL(exception); variable
2968 zval_copy_ctor(exception); variable
2981 zval *exception; variable
3032 EG(exception) = NULL; variable
[all...]
/PHP_5_5/sapi/cli/
H A Dphp_cli.c1131 if (EG(exception)) {
1132 zval *msg = zend_read_property(zend_exception_get_default(TSRMLS_C), EG(exception), "message", sizeof("message")-1, 0 TSRMLS_CC);
1134 zval_ptr_dtor(&EG(exception));
1135 EG(exception) = NULL;
/PHP_5_5/ext/soap/
H A Dsoap.c108 if (EG(exception) == NULL || \
109 Z_TYPE_P(EG(exception)) != IS_OBJECT || \
110 !instanceof_function(Z_OBJCE_P(EG(exception)), soap_fault_class_entry TSRMLS_CC)) {\
933 len = spprintf(&str, 0, "SoapFault exception: [%s] %s in %s:%ld\nStack trace:\n%s",
1649 if (EG(exception)) {
1651 if (Z_TYPE_P(EG(exception)) == IS_OBJECT &&
1652 instanceof_function(Z_OBJCE_P(EG(exception)), soap_fault_class_entry TSRMLS_CC)) {
1653 soap_server_fault_ex(function, EG(exception), NULL TSRMLS_CC);
1701 if (EG(exception)) {
1703 if (Z_TYPE_P(EG(exception))
2156 zval *fault, *exception; local
2806 zval *exception; local
[all...]
/PHP_5_5/ext/readline/
H A Dreadline_cli.c687 if (EG(exception)) {
688 zend_exception_error(EG(exception), E_WARNING TSRMLS_CC);

Completed in 50 milliseconds

12