Searched refs:exception (Results 1 - 25 of 54) 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)) {
288 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.c114 * For example, if an exception was thrown in a function and when the function's
118 if (EG(exception)) {
119 if (EG(exception) == object) {
120 zend_error(E_ERROR, "Attempt to destruct pending exception");
122 old_exception = EG(exception);
123 EG(exception) = NULL;
128 if (EG(exception)) {
129 zend_exception_set_previous(EG(exception), old_exception);
131 EG(exception) = old_exception;
H A Dzend_globals.h219 zend_object *exception, *prev_exception; member in struct:_zend_executor_globals
H A Dzend_generators.c350 /* If an exception was thrown in the generator we have to internally
352 if (UNEXPECTED(EG(exception) != NULL)) {
504 /* {{{ proto mixed Generator::throw(Exception $exception)
505 * Throws an exception into the generator */
508 zval *exception, exception_copy; local
511 if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &exception) == FAILURE) {
515 ZVAL_DUP(&exception_copy, exception);
522 /* Throw the exception in the context of the generator */
536 /* If the generator is already closed throw the exception in the
556 if (EG(exception)) {
[all...]
H A Dzend.c517 executor_globals->exception = NULL;
1034 /* Report about uncaught exception in case of fatal errors */
1035 if (EG(exception)) {
1055 zend_exception_error(EG(exception), E_WARNING);
1056 EG(exception) = NULL;
1211 } else if (!EG(exception)) {
1357 if (EG(exception)) {
1362 old_exception = EG(exception);
1363 EG(exception) = NULL;
1369 if (EG(exception)) {
[all...]
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(E_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
615 zval trace, *exception; local
900 zval exception, rv; local
970 zend_throw_exception_object(zval *exception) argument
[all...]
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_vm_def.h190 // TODO: change into exception ???
2229 if (UNEXPECTED(EG(exception) != NULL)) {
2291 if (UNEXPECTED(EG(exception) != NULL) && (EX(opline)->op1.num & ZEND_CALL_CTOR)) {
2303 if (UNEXPECTED(EG(exception) != NULL)) {
2324 if (UNEXPECTED(EG(exception) != NULL)) {
2400 if (UNEXPECTED(EG(exception) != NULL)) {
2433 if (UNEXPECTED(EG(exception) != NULL)) {
2466 if (UNEXPECTED(EG(exception) != NULL)) {
2505 if (UNEXPECTED(EG(exception) != NULL)) {
2543 if (UNEXPECTED(EG(exception) !
3851 zend_object *exception; variable
3893 EG(exception) = NULL; variable
6878 EG(exception) = NULL; variable
7217 EG(exception) = Z_OBJ_P(fast_call); variable
[all...]
H A Dzend_execute_API.c178 EG(exception) = NULL;
486 if (EG(exception) && ex->opline->opcode == ZEND_HANDLE_EXCEPTION &&
693 if (EG(exception)) {
903 if (EG(exception)) {
933 if (EG(exception)) {
948 if (EG(exception)) {
1155 if (handle_exceptions && EG(exception)) {
1156 zend_exception_error(EG(exception), E_ERROR);
1349 if (!silent && !EG(exception)) {
1372 if ((fetch_type & ZEND_FETCH_CLASS_SILENT) == 0 && !EG(exception)) {
[all...]
/PHP_TRUNK/ext/sqlite3/
H A Dphp_sqlite3_structs.h79 zend_bool exception; member in struct:_php_sqlite3_db_object
/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) {
590 if (EG(exception)) {
[all...]
/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);
H A Dvar_unserializer.c490 if (EG(exception)) {
730 if (EG(exception)) {
738 if (EG(exception)) {
757 if (EG(exception)) {
772 if (EG(exception)) {
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_prompt.c447 if (EG(exception)) {
448 zend_exception_error(EG(exception), E_ERROR);
559 /* get filename and linenumber before unsetting exception */
566 fci.function_table = &EG(exception)->ce->function_table;
568 fci.object = EG(exception);
574 phpdbg_writeln("exception", "name=\"%s\" trace=\"%.*s\"", "Uncaught %s!\n%.*s", EG(exception)->ce->name->val, Z_STRLEN(trace), Z_STRVAL(trace));
578 phpdbg_error("exception", "name=\"%s\"" "Uncaught %s!", EG(exception)->ce->name->val);
582 phpdbg_writeln("exception", "oplin
[all...]
/PHP_TRUNK/ext/readline/
H A Dreadline_cli.c678 if (EG(exception)) {
679 zend_exception_error(EG(exception), E_WARNING);

Completed in 57 milliseconds

123