Searched refs:exception (Results 1 - 25 of 64) 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/ext/sqlite3/
H A Dphp_sqlite3_structs.h79 zend_bool exception; member in struct:_php_sqlite3_db_object
/PHP_TRUNK/ext/intl/collator/
H A Dcollator_create.c84 if (!EG(exception)) {
/PHP_TRUNK/ext/intl/dateformat/
H A Ddateformat_create.cpp196 if (!EG(exception)) {
/PHP_TRUNK/ext/intl/formatter/
H A Dformatter_main.c99 if (!EG(exception)) {
/PHP_TRUNK/ext/intl/msgformat/
H A Dmsgformat.c117 if (!EG(exception)) {
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_utils.h99 PHPDBG_API zend_bool phpdbg_check_caught_ex(zend_execute_data *ex, zend_object *exception);
H A Dphpdbg_prompt.c491 if (EG(exception)) {
492 zend_exception_error(EG(exception), E_ERROR);
626 zend_object *ex = EG(exception);
631 EG(exception) = NULL;
638 if (EG(exception)) {
639 EG(exception) = NULL;
647 phpdbg_writeln("exception", "name=\"%s\" file=\"%s\" line=\"" ZEND_LONG_FMT "\"", "Uncaught %s in %s on line " ZEND_LONG_FMT "\n%s", ZSTR_VAL(ex->ce->name), ZSTR_VAL(file), line, ZSTR_VAL(msg));
742 if (EG(exception)) {
808 if (EG(exception)) {
809 ex = EG(exception);
1459 zend_object *exception = EG(exception); local
1624 zend_object *exception = EG(exception); local
[all...]
/PHP_TRUNK/ext/spl/
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)) {
414 if (!EG(exception) && (!object->endChildren || object->endChildren->common.scope != spl_ce_RecursiveIteratorIterator)) {
424 if (!EG(exception) && object->beginIteration && !object->in_iteration) {
586 if (EG(exception)) {
[all...]
/PHP_TRUNK/Zend/
H A Dzend_interfaces.c112 if (!EG(exception)) {
218 if (!EG(exception)) {
292 if (!EG(exception)) {
339 /* c-level get_iterator cannot be changed (exception being only Traversable is implmented) */
422 if (Z_TYPE(retval) == IS_UNDEF || EG(exception)) {
442 if (result == FAILURE && !EG(exception)) {
464 if (EG(exception)) {
H A Dzend.c553 executor_globals->exception = NULL;
885 if (EG(exception)) {
886 /* An exception was thrown in the lexer, don't throw another in the parser. */
1057 /* Report about uncaught exception in case of fatal errors */
1058 if (EG(exception)) {
1078 zend_exception_error(EG(exception), E_WARNING);
1079 EG(exception) = NULL;
1232 } else if (!EG(exception)) {
1406 if (EG(exception)) {
1411 old_exception = EG(exception);
[all...]
H A Dzend_exceptions.c71 void zend_exception_set_previous(zend_object *exception, zend_object *add_previous) argument
76 if (exception == add_previous || !add_previous || !exception) {
81 zend_error_noreturn(E_CORE_ERROR, "Previous exception must implement Throwable");
84 ZVAL_OBJ(&zv, exception);
101 zend_exception_set_previous(EG(exception), EG(prev_exception));
103 if (EG(exception)) {
104 EG(prev_exception) = EG(exception);
106 EG(exception) = NULL;
113 if (EG(exception)) {
123 zend_throw_exception_internal(zval *exception) argument
702 zval trace, *exception; local
985 zval exception, rv; local
1010 zend_update_property(i_get_exception_base(&exception), &exception, "string", sizeof("string")-1, &tmp); local
1051 zend_throw_exception_object(zval *exception) argument
[all...]
H A Dzend_exceptions.h38 ZEND_API void zend_exception_set_previous(zend_object *exception, zend_object *add_previous);
42 ZEND_API ZEND_COLD void zend_throw_exception_internal(zval *exception);
57 * message NULL or the message of the exception */
60 ZEND_API ZEND_COLD void zend_throw_exception_object(zval *exception);
67 /* show an exception using zend_error(severity,...), severity should be E_ERROR */
68 ZEND_API ZEND_COLD void zend_exception_error(zend_object *exception, int severity);
H A Dzend_generators.c158 Z_OBJ_P(fast_call) = EG(exception);
159 EG(exception) = NULL;
295 static void zend_generator_throw_exception(zend_generator *generator, zval *exception) argument
297 /* Throw the exception in the context of the generator. Decrementing the opline
298 * to pretend the exception happened during the YIELD opcode. */
302 if (exception) {
303 zend_throw_exception_object(exception);
510 if (EXPECTED(EG(exception) == NULL)) {
515 /* Throw the exception in the context of the generator */
589 if (UNEXPECTED(EG(exception) !
894 zval *exception, exception_copy; local
[all...]
H A Dzend_objects.c135 * For example, if an exception was thrown in a function and when the function's
139 if (EG(exception)) {
140 if (EG(exception) == object) {
141 zend_error_noreturn(E_CORE_ERROR, "Attempt to destruct pending exception");
143 old_exception = EG(exception);
144 EG(exception) = NULL;
149 if (EG(exception)) {
150 zend_exception_set_previous(EG(exception), old_exception);
152 EG(exception) = old_exception;
H A Dzend_vm_def.h1510 if (UNEXPECTED(EG(exception))) {
2281 if (UNEXPECTED(EG(exception) != NULL)) {
2332 if (UNEXPECTED(EG(exception) != NULL) && (EX(opline)->op1.num & ZEND_CALL_CTOR)) {
2335 if (UNEXPECTED(EG(exception) != NULL) && (call_info & ZEND_CALL_CTOR)) {
2350 if (UNEXPECTED(EG(exception) != NULL)) {
2370 if (UNEXPECTED(EG(exception) != NULL)) {
2446 if (UNEXPECTED(EG(exception) != NULL)) {
2480 if (UNEXPECTED(EG(exception) != NULL)) {
2517 if (UNEXPECTED(EG(exception) != NULL)) {
2560 if (UNEXPECTED(EG(exception) !
4104 zend_object *exception; variable
4145 EG(exception) = NULL; variable
7103 EG(exception) = NULL; variable
7530 EG(exception) = Z_OBJ_P(fast_call); variable
[all...]
/PHP_TRUNK/ext/fileinfo/
H A Dfileinfo.c318 if (!EG(exception)) {
327 if (!EG(exception)) {
346 if (!EG(exception)) {
359 if (!EG(exception)) {
/PHP_TRUNK/ext/standard/
H A Dassert.c35 zend_bool exception; variable
87 STD_PHP_INI_ENTRY("assert.exception", "0", PHP_INI_ALL, OnUpdateBool, exception, zend_assert_globals, assert_globals)
244 if (ASSERTG(exception)) {
358 oldint = ASSERTG(exception);
360 zend_string *key = zend_string_init("assert.exception", sizeof("assert.exception")-1, 0);

Completed in 52 milliseconds

123