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

123

/PHP_TRUNK/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_TRUNK/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_TRUNK/scripts/dev/generate-phpt/src/
H A Dgenerate-phpt.php22 } catch (exception $e) {
34 } catch (exception $e) {
/PHP_TRUNK/Zend/
H A Dzend_interfaces.c109 if (!EG(exception)) {
215 if (!EG(exception)) {
289 if (!EG(exception)) {
335 /* c-level get_iterator cannot be changed (exception being only Traversable is implmented) */
418 if (Z_TYPE(retval) == IS_UNDEF || EG(exception)) {
438 if (result == FAILURE && !EG(exception)) {
458 if (EG(exception)) {
H A Dzend_objects.c107 * For example, if an exception was thrown in a function and when the function's
111 if (EG(exception)) {
112 if (EG(exception) == object) {
113 zend_error(E_ERROR, "Attempt to destruct pending exception");
115 old_exception = EG(exception);
116 EG(exception) = NULL;
121 if (EG(exception)) {
122 zend_exception_set_previous(EG(exception), old_exception TSRMLS_CC);
124 EG(exception) = old_exception;
H A Dzend_exceptions.h29 ZEND_API void zend_exception_set_previous(zend_object *exception, zend_object *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(zend_object *exception, int severity TSRMLS_DC);
H A Dzend_execute_API.c185 EG(exception) = NULL;
472 if (EG(exception) && ex->opline->opcode == ZEND_HANDLE_EXCEPTION &&
677 if (EG(exception)) {
880 if (EG(exception)) {
910 if (EG(exception)) {
926 if (EG(exception)) {
1134 if (handle_exceptions && EG(exception)) {
1135 zend_exception_error(EG(exception), E_ERROR TSRMLS_CC);
1400 if (!silent && !EG(exception)) {
1423 if ((fetch_type & ZEND_FETCH_CLASS_SILENT) == 0 && !EG(exception)) {
[all...]
H A Dzend_generators.c339 /* If an exception was thrown in the generator we have to internally
341 if (UNEXPECTED(EG(exception) != NULL)) {
493 /* {{{ proto mixed Generator::throw(Exception $exception)
494 * Throws an exception into the generator */
497 zval *exception, exception_copy; local
500 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &exception) == FAILURE) {
504 ZVAL_DUP(&exception_copy, exception);
511 /* Throw the exception in the context of the generator */
525 /* If the generator is already closed throw the exception in the
654 ZEND_ARG_INFO(0, exception)
[all...]
H A Dzend.c271 zend_error(EG(exception) ? E_ERROR : E_RECOVERABLE_ERROR, "Object of class %s could not be converted to string", Z_OBJCE_P(expr)->name->val);
1029 /* Report about uncaught exception in case of fatal errors */
1030 if (EG(exception)) {
1050 zend_exception_error(EG(exception), E_WARNING TSRMLS_CC);
1051 EG(exception) = NULL;
1202 } else if (!EG(exception)) {
1297 if (EG(exception)) {
1302 old_exception = EG(exception);
1303 EG(exception) = NULL;
1309 if (EG(exception)) {
[all...]
H A Dzend_globals.h221 zend_object *exception, *prev_exception; member in struct:_zend_executor_globals
H A Dzend_vm_def.h1736 if (UNEXPECTED(EG(exception) != NULL)) {
1800 if (UNEXPECTED(EG(exception) != NULL) && (EX(opline)->op1.num & ZEND_CALL_CTOR)) {
1817 if (UNEXPECTED(EG(exception) != NULL)) {
1838 if (UNEXPECTED(EG(exception) != NULL)) {
1913 if (UNEXPECTED(EG(exception) != NULL)) {
1944 if (UNEXPECTED(EG(exception) != NULL)) {
1975 if (UNEXPECTED(EG(exception) != NULL)) {
2010 if (UNEXPECTED(EG(exception) != NULL)) {
2044 if (UNEXPECTED(EG(exception) != NULL)) {
2162 if (EG(exception)) {
2955 zend_object *exception; variable
2999 EG(exception) = NULL; variable
5492 EG(exception) = NULL; variable
5809 EG(exception) = EX(delayed_exception); variable
[all...]
H A Dzend_exceptions.c37 void zend_exception_set_previous(zend_object *exception, zend_object *add_previous TSRMLS_DC) argument
41 if (exception == add_previous || !add_previous || !exception) {
46 zend_error(E_ERROR, "Cannot set non exception as previous exception");
49 ZVAL_OBJ(&zv, exception);
65 zend_exception_set_previous(EG(exception), EG(prev_exception) TSRMLS_CC);
67 if (EG(exception)) {
68 EG(prev_exception) = EG(exception);
70 EG(exception)
651 zval message, file, line, trace, *exception; local
869 zval exception; local
[all...]
/PHP_TRUNK/ext/readline/
H A Dreadline_cli.c687 if (EG(exception)) {
688 zend_exception_error(EG(exception), E_WARNING TSRMLS_CC);
/PHP_TRUNK/ext/session/
H A Dmod_user.c83 if (!EG(exception)) { \
/PHP_TRUNK/ext/sqlite3/
H A Dphp_sqlite3_structs.h79 zend_bool exception; member in struct:_php_sqlite3_db_object
/PHP_TRUNK/ext/standard/
H A Dvar_unserializer.c454 if (EG(exception)) {
680 if (EG(exception)) {
688 if (EG(exception)) {
707 if (EG(exception)) {
722 if (EG(exception)) {
H A Dvar.c790 if (EG(exception)) {
887 if (EG(exception)) {
998 if (EG(exception)) {
1033 if (!EG(exception)) {
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_prompt.c533 exception; local
535 /* get filename and linenumber before unsetting exception */
539 /* copy exception */
540 exception = *EG(exception);
541 zval_copy_ctor(&exception);
542 EG(exception) = NULL;
546 Z_OBJCE(exception)->name);
551 fci.function_table = &Z_OBJCE(exception)->function_table;
554 fci.object_ptr = &exception;
[all...]
/PHP_TRUNK/ext/spl/
H A Dspl_heap.c113 if (EG(exception)) {
151 if (EG(exception)) {
160 /* exception or call failure */
175 if (EG(exception)) {
184 /* exception or call failure */
206 if (EG(exception)) {
215 /* exception or call failure */
260 if (EG(exception)) {
261 /* exception thrown during comparison */
306 if (EG(exception)) {
[all...]
H A Dspl_iterators.c246 while (!EG(exception)) {
252 if (EG(exception)) {
274 if (EG(exception)) {
310 if (EG(exception)) {
337 if (EG(exception)) {
371 if (EG(exception)) {
385 if (EG(exception)) {
412 if (!EG(exception) && (!object->endChildren || object->endChildren->common.scope != spl_ce_RecursiveIteratorIterator)) {
422 if (!EG(exception) && object->beginIteration && !object->in_iteration) {
589 if (EG(exception)) {
[all...]

Completed in 74 milliseconds

123