berkut
Новичок
create_function()
что означает ошибка:
Fatal error: Call to a member function on a non-object in z:\home\gebu\www\inc\replace.php(60) : runtime-created function on line 1
что означает ошибка:
Fatal error: Call to a member function on a non-object in z:\home\gebu\www\inc\replace.php(60) : runtime-created function on line 1
PHP:
class parse {
...
function php_hi() {
$this->str = preg_replace_callback('/(\[php\](.+)\[\/php\])/i', create_function('$match', 'return $this->php_to_temp($match);'), $this->str); // 60 строка
}
function php_to_temp($str) {
static $num = 1;
$temp = '#$'.$num.microtime().'#$';
$this->php_hi_arr[$temp] = highlight_string($str);
return $temp;
}