In short, I have the following function as part of my framework:
public function use_parameters()
{
$parameters = func_get_args();
$stack = debug_backtrace();
foreach($stack[0]['args'] as $key => &$parameter)
{
$parameter = array_shift($this->parameter_values);
}
}
Where $ this-> parameter_values = array ('value1', 'value2', 'value3', 'value4', 'value5', ...);
Used in the following context:
$instance->use_parameters(&$foo, &$bah);
Appointment:
$foo = 'value1';
$bah = 'value2';
Call again
$instance->use_parameters(&$something);
Sets
$something = 'value3'
etc.
Beginning with 5.3, it will return the warning "Deprecated: approach time outdated." Trying to comply with 5.3 method of work, I deleted and received:
$instance->use_parameters($foo, $bah);
Unfortunately, these arguments have not been established, and I am struggling to find a solution.
Why run PHP v5.3.3-7 on Apache / 2.2.16 (Debian)
Any help would be greatly appreciated.
source
share