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 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.
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
/PHP_5_5/scripts/dev/generate-phpt/src/
H A Dgenerate-phpt.php22 } catch (exception $e) {
34 } catch (exception $e) {
/PHP_5_5/Zend/
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_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.c293 zend_error(EG(exception) ? E_ERROR : E_RECOVERABLE_ERROR, "Object of class %s could not be converted to string", Z_OBJCE_P(expr)->name);
1032 /* Report about uncaught exception in case of fatal errors */
1033 if (EG(exception)) {
1044 zend_exception_error(EG(exception), E_WARNING TSRMLS_CC);
1045 EG(exception) = NULL;
1206 } 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_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_execute_API.c186 EG(exception) = NULL;
408 if(EG(exception) && EG(opline_ptr) && active_opline->opcode == ZEND_HANDLE_EXCEPTION &&
754 if (EG(exception)) {
969 if (EG(exception) && fci->retval_ptr_ptr) {
993 if (EG(exception) && fci->retval_ptr_ptr) {
1008 if (EG(exception)) {
1229 if (handle_exceptions && EG(exception)) {
1230 zend_exception_error(EG(exception), E_ERROR TSRMLS_CC);
1307 if (EG(exception)) {
1308 zend_exception_error(EG(exception), E_ERRO
[all...]
H A Dzend_generators.c350 /* If an exception was thrown in the generator we have to internally
352 if (UNEXPECTED(EG(exception) != NULL)) {
501 /* {{{ proto mixed Generator::throw(Exception $exception)
502 * Throws an exception into the generator */
505 zval *exception, *exception_copy; local
508 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &exception) == FAILURE) {
513 MAKE_COPY_ZVAL(&exception, exception_copy);
518 /* Throw the exception in the context of the generator */
532 /* If the generator is already closed throw the exception in the
668 ZEND_ARG_INFO(0, exception)
[all...]
H A Dzend_vm_def.h1797 if (UNEXPECTED(EG(exception) != NULL)) {
1867 if (UNEXPECTED(EG(exception) != NULL)) {
1887 if (UNEXPECTED(EG(exception) != NULL) && EX(call)->is_ctor_call) {
1905 if (UNEXPECTED(EG(exception) != NULL)) {
1981 if (EXPECTED(EG(exception) == NULL)) {
2019 if (EXPECTED(EG(exception) == NULL)) {
2064 if (UNEXPECTED(EG(exception) != NULL) && EX(call)->is_ctor_call) {
2083 if (UNEXPECTED(EG(exception) != NULL)) {
2120 if (UNEXPECTED(EG(exception) != NULL)) {
2150 if (UNEXPECTED(EG(exception) !
2955 zval *exception; variable
2970 ALLOC_ZVAL(exception); variable
2973 zval_copy_ctor(exception); variable
2986 zval *exception; variable
3037 EG(exception) = NULL; variable
[all...]
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
579 zval message, file, line, *trace, *exception; local
797 zend_exception_error(zval *exception, int severity TSRMLS_DC) argument
[all...]
/PHP_5_5/ext/readline/
H A Dreadline_cli.c673 if (EG(exception)) {
674 zend_exception_error(EG(exception), E_WARNING TSRMLS_CC);
/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.c717 if (EG(exception)) {
808 if (EG(exception)) {
935 if (EG(exception)) {
970 if (!EG(exception)) {
H A Dvar_unserializer.c403 if (EG(exception)) {
631 if (EG(exception)) {
640 if (EG(exception)) {
661 if (EG(exception)) {
678 if (EG(exception)) {
/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.c214 while (!EG(exception)) {
220 if (EG(exception)) {
242 if (EG(exception)) {
278 if (EG(exception)) {
305 if (EG(exception)) {
342 if (EG(exception)) {
356 if (EG(exception)) {
385 if (!EG(exception) && (!object->endChildren || object->endChildren->common.scope != spl_ce_RecursiveIteratorIterator)) {
395 if (!EG(exception) && object->beginIteration && !object->in_iteration) {
561 if (EG(exception)) {
[all...]
/PHP_5_5/sapi/cli/
H A Dphp_cli.c1130 if (EG(exception)) {
1131 zval *msg = zend_read_property(zend_exception_get_default(TSRMLS_C), EG(exception), "message", sizeof("message")-1, 0 TSRMLS_CC);
1133 zval_ptr_dtor(&EG(exception));
1134 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)) {\
928 len = spprintf(&str, 0, "SoapFault exception: [%s] %s in %s:%ld\nStack trace:\n%s",
1644 if (EG(exception)) {
1646 if (Z_TYPE_P(EG(exception)) == IS_OBJECT &&
1647 instanceof_function(Z_OBJCE_P(EG(exception)), soap_fault_class_entry TSRMLS_CC)) {
1648 soap_server_fault_ex(function, EG(exception), NULL TSRMLS_CC);
1696 if (EG(exception)) {
1698 if (Z_TYPE_P(EG(exception))
2151 zval *fault, *exception; local
2800 zval *exception; local
[all...]

Completed in 60 milliseconds

12