php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #63834
Patch 63834-2.patch revision 2012-12-31 11:49 UTC by krakjoe@php.net
revision 2012-12-31 11:36 UTC by krakjoe@php.net
Patch 63834.patch revision 2012-12-31 11:11 UTC by krakjoe@php.net

Patch 63834-2.patch for Class/Object related Bug #63834

Patch version 2012-12-31 11:49 UTC

Return to Bug #63834 | Download this patch
This patch renders other patches obsolete

Obsolete patches:

Patch Revisions: 2012-12-31 11:49 UTC | 2012-12-31 11:36 UTC

Developer: 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;
  +} /* }}} */
  +
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Dec 06 20:01:24 2019 UTC