Searched refs:exception (Results 1 - 25 of 63) 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/session/
H A Dmod_user.c63 if (!EG(exception)) { \
/PHP_TRUNK/ext/standard/
H A Dassert.c35 zend_bool exception; variable
91 STD_PHP_INI_ENTRY("assert.exception", "0", PHP_INI_ALL, OnUpdateBool, exception, zend_assert_globals, assert_globals)
245 if (ASSERTG(exception)) {
359 oldint = ASSERTG(exception);
361 zend_string *key = zend_string_init("assert.exception", sizeof("assert.exception")-1, 0);
/PHP_TRUNK/Zend/
H A Dzend_exceptions.h29 ZEND_API void zend_exception_set_previous(zend_object *exception, zend_object *add_previous);
33 ZEND_API void zend_throw_exception_internal(zval *exception);
46 * message NULL or the message of the exception */
49 ZEND_API void zend_throw_exception_object(zval *exception);
56 /* show an exception using zend_error(severity,...), severity should be E_ERROR */
57 ZEND_API void zend_exception_error(zend_object *exception, int severity);
H A Dzend.c545 executor_globals->exception = NULL;
880 if (EG(exception)) {
881 /* An exception was thrown in the lexer, don't throw another in the parser. */
1071 /* Report about uncaught exception in case of fatal errors */
1072 if (EG(exception)) {
1092 zend_exception_error(EG(exception), E_WARNING);
1093 EG(exception) = NULL;
1246 } else if (!EG(exception)) {
1391 if (EG(exception)) {
1396 old_exception = EG(exception);
[all...]
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_generators.c314 static void zend_generator_throw_exception(zend_generator *generator, zval *exception) argument
316 /* Throw the exception in the context of the generator. Decrementing the opline
317 * to pretend the exception happened during the YIELD opcode. */
321 if (exception) {
322 zend_throw_exception_object(exception);
529 if (EXPECTED(EG(exception) == NULL)) {
534 /* Throw the exception in the context of the generator */
608 if (UNEXPECTED(EG(exception) != NULL)) {
619 if (UNEXPECTED(EG(exception) != NULL || !value)) {
629 if (UNEXPECTED(EG(exception) !
904 zval *exception, exception_copy; local
[all...]
H A Dzend_objects.c119 * For example, if an exception was thrown in a function and when the function's
123 if (EG(exception)) {
124 if (EG(exception) == object) {
125 zend_error_noreturn(E_CORE_ERROR, "Attempt to destruct pending exception");
127 old_exception = EG(exception);
128 EG(exception) = NULL;
133 if (EG(exception)) {
134 zend_exception_set_previous(EG(exception), old_exception);
136 EG(exception) = old_exception;
H A Dzend_exceptions.c42 void zend_exception_set_previous(zend_object *exception, zend_object *add_previous) argument
46 if (exception == add_previous || !add_previous || !exception) {
51 zend_error_noreturn(E_CORE_ERROR, "Cannot set non exception as previous exception");
54 ZVAL_OBJ(&zv, exception);
70 zend_exception_set_previous(EG(exception), EG(prev_exception));
72 if (EG(exception)) {
73 EG(prev_exception) = EG(exception);
75 EG(exception)
92 zend_throw_exception_internal(zval *exception) argument
621 zval trace, *exception; local
912 zval exception, rv; local
979 zend_throw_exception_object(zval *exception) argument
[all...]
H A Dzend_vm_def.h718 if (UNEXPECTED(EG(exception))) {
1153 if (UNEXPECTED(EG(exception))) {
1255 if (UNEXPECTED(EG(exception))) {
1574 if (UNEXPECTED(EG(exception))) {
2358 if (UNEXPECTED(EG(exception) != NULL)) {
2419 if (UNEXPECTED(EG(exception) != NULL) && (EX(opline)->op1.num & ZEND_CALL_CTOR)) {
2422 if (UNEXPECTED(EG(exception) != NULL) && (call_info & ZEND_CALL_CTOR)) {
2437 if (UNEXPECTED(EG(exception) != NULL)) {
2458 if (UNEXPECTED(EG(exception) != NULL)) {
2537 if (UNEXPECTED(EG(exception) !
4116 zend_object *exception; variable
4158 EG(exception) = NULL; variable
7295 EG(exception) = NULL; variable
7724 EG(exception) = Z_OBJ_P(fast_call); variable
[all...]
/PHP_TRUNK/ext/fileinfo/
H A Dfileinfo.c322 if (!EG(exception)) {
331 if (!EG(exception)) {
350 if (!EG(exception)) {
363 if (!EG(exception)) {
/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)) {
412 if (!EG(exception) && (!object->endChildren || object->endChildren->common.scope != spl_ce_RecursiveIteratorIterator)) {
422 if (!EG(exception) && object->beginIteration && !object->in_iteration) {
584 if (EG(exception)) {
[all...]
/PHP_TRUNK/ext/intl/collator/
H A Dcollator_create.c84 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.h97 PHPDBG_API zend_bool phpdbg_check_caught_ex(zend_execute_data *ex, zend_object *exception);
H A Dphpdbg_prompt.c450 if (EG(exception)) {
451 zend_exception_error(EG(exception), E_ERROR);
585 zend_object *ex = EG(exception);
587 /* get filename and linenumber before unsetting exception */
593 EG(exception) = NULL;
606 phpdbg_writeln("exception", "name=\"%s\" trace=\"%.*s\"", "Uncaught %s!\n%.*s", ex->ce->name->val, Z_STRLEN(trace), Z_STRVAL(trace));
610 phpdbg_error("exception", "name=\"%s\"", "Uncaught %s!", ex->ce->name->val);
615 phpdbg_writeln("exception", "opline=\"%p\" file=\"%s\" line=\"%u\"", "Stack entered at %p in %s on line %u", PHPDBG_G(ops)->opcodes, filename, lineno); */
711 if (EG(exception)) {
1383 /* code may behave weirdly if EG(exception) i
1427 zend_object *exception = EG(exception); local
1583 zend_object *exception = EG(exception); local
[all...]

Completed in 75 milliseconds

123