php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | |
Patch 63834-2.patch for Class/Object related Bug #63834Patch version 2012-12-31 11:49 UTC Return to Bug #63834 | Download this patchThis patch renders other patches obsolete Obsolete patches: Patch Revisions: 2012-12-31 11:49 UTC | 2012-12-31 11:36 UTCDeveloper: krakjoe@php.net+ ex = EG(current_execute_data)->prev_execute_data; + + if (ex && ex->function_state.function) { + RETURN_STRING(ex->function_state.function->common.function_name, 1); + } else zend_error(E_WARNING, "get_calling_method() called from outside a class"); + } + + RETURN_FALSE; +} +/* }}} */ + zend_execute_data *ex; + + if (zend_parse_parameters_none() == FAILURE) { + return; + } + + } + + ex = EG(current_execute_data)->prev_execute_data; + + if (ex && ex->current_scope) { + RETURN_STRINGL(ex->current_scope->name, ex->current_scope->name_length, 1); + } else zend_error(E_WARNING, "get_calling_class() called from outside a class"); + } + + RETURN_FALSE; +} /* }}} */ + |
Copyright © 2001-2024 The PHP Group All rights reserved. |
Last updated: Fri Apr 19 23:01:28 2024 UTC |