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

12

/PHP_5_4/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_4/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_5_4/scripts/dev/generate-phpt/src/
H A Dgenerate-phpt.php22 } catch (exception $e) {
34 } catch (exception $e) {
/PHP_5_4/ext/readline/
H A Dreadline_cli.c673 if (EG(exception)) {
674 zend_exception_error(EG(exception), E_WARNING TSRMLS_CC);
/PHP_5_4/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)) {\
922 len = spprintf(&str, 0, "SoapFault exception: [%s] %s in %s:%ld\nStack trace:\n%s",
1638 if (EG(exception)) {
1640 if (Z_TYPE_P(EG(exception)) == IS_OBJECT &&
1641 instanceof_function(Z_OBJCE_P(EG(exception)), soap_fault_class_entry TSRMLS_CC)) {
1642 soap_server_fault_ex(function, EG(exception), NULL TSRMLS_CC);
1690 if (EG(exception)) {
1692 if (Z_TYPE_P(EG(exception))
2145 zval *fault, *exception; local
2789 zval *exception; local
[all...]
/PHP_5_4/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.c215 while (!EG(exception)) {
221 if (EG(exception)) {
243 if (EG(exception)) {
279 if (EG(exception)) {
306 if (EG(exception)) {
343 if (EG(exception)) {
357 if (EG(exception)) {
386 if (!EG(exception) && (!object->endChildren || object->endChildren->common.scope != spl_ce_RecursiveIteratorIterator)) {
396 if (!EG(exception) && object->beginIteration && !object->in_iteration) {
562 if (EG(exception)) {
[all...]
/PHP_5_4/ext/sqlite3/
H A Dphp_sqlite3_structs.h82 zend_bool exception; member in struct:_php_sqlite3_db_object
/PHP_5_4/ext/standard/
H A Dvar.c715 if (EG(exception)) {
806 if (EG(exception)) {
933 if (EG(exception)) {
968 if (!EG(exception)) {
H A Dvar_unserializer.c440 if (EG(exception)) {
668 if (EG(exception)) {
677 if (EG(exception)) {
698 if (EG(exception)) {
715 if (EG(exception)) {
/PHP_5_4/sapi/cli/
H A Dphp_cli.c1126 if (EG(exception)) {
1127 zval *msg = zend_read_property(zend_exception_get_default(TSRMLS_C), EG(exception), "message", sizeof("message")-1, 0 TSRMLS_CC);
1129 zval_ptr_dtor(&EG(exception));
1130 EG(exception) = NULL;
/PHP_5_4/Zend/
H A Dzend.c288 zend_error(EG(exception) ? E_ERROR : E_RECOVERABLE_ERROR, "Object of class %s could not be converted to string", Z_OBJCE_P(expr)->name);
1027 /* Report about uncaught exception in case of fatal errors */
1028 if (EG(exception)) {
1039 zend_exception_error(EG(exception), E_WARNING TSRMLS_CC);
1040 EG(exception) = NULL;
1204 } else if (!EG(exception)) {
1317 if (EG(exception)) {
1321 old_exception = EG(exception);
1322 EG(exception) = NULL;
1329 if (EG(exception)) {
[all...]
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_execute_API.c186 EG(exception) = NULL;
407 if(EG(exception) && EG(opline_ptr) && active_opline->opcode == ZEND_HANDLE_EXCEPTION &&
773 if (EG(exception)) {
985 if (EG(exception) && fci->retval_ptr_ptr) {
1009 if (EG(exception) && fci->retval_ptr_ptr) {
1024 if (EG(exception)) {
1253 if (handle_exceptions && EG(exception)) {
1254 zend_exception_error(EG(exception), E_ERROR TSRMLS_CC);
1331 if (EG(exception)) {
1332 zend_exception_error(EG(exception), E_ERRO
[all...]
H A Dzend_globals.h246 zval *exception, *prev_exception; member in struct:_zend_executor_globals
H A Dzend_interfaces.c104 if (!EG(exception)) {
208 if (!EG(exception))
304 if (!EG(exception)) {
352 /* c-level get_iterator cannot be changed (exception being only Traversable is implmented) */
435 if (!retval || EG(exception)) {
455 if (result == FAILURE && !EG(exception)) {
476 if (EG(exception)) {
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_vm_def.h1789 if (UNEXPECTED(EG(exception) != NULL)) {
1850 if (UNEXPECTED(EG(exception) != NULL)) {
1880 if (UNEXPECTED(EG(exception) != NULL)) {
1910 if (UNEXPECTED(EG(exception) != NULL)) {
1944 if (UNEXPECTED(EG(exception) != NULL)) {
1975 if (UNEXPECTED(EG(exception) != NULL)) {
2117 EG(exception) = NULL; variable
2234 if (UNEXPECTED(EG(exception) != NULL)) {
2421 if (UNEXPECTED(EG(exception) != NULL)) {
2543 if (UNEXPECTED(EG(exception) !
2942 zval *exception; variable
2953 ALLOC_ZVAL(exception); variable
2956 zval_copy_ctor(exception); variable
2969 zval *exception; variable
3020 EG(exception) = NULL; variable
[all...]
H A Dzend_object_handlers.c650 if (UNEXPECTED(!EG(exception))) {
697 if (check_empty && result && EXPECTED(!EG(exception))) {
1451 if (EXPECTED(!EG(exception)) && zobj->ce->__get && !guard->in_get) {
1530 (zend_call_method_with_0_params(&readobj, ce, &ce->__tostring, "__tostring", &retval) || EG(exception))) {
1531 if (UNEXPECTED(EG(exception) != NULL)) {
1535 EG(exception) = NULL;
1536 zend_error_noreturn(E_ERROR, "Method %s::__toString() must not throw an exception", ce->name);
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
634 zval message, file, line, *trace, *exception; local
852 zend_exception_error(zval *exception, int severity TSRMLS_DC) argument
[all...]

Completed in 37 milliseconds

12