Hi all. I’ve found a bug in api classes..
ExpressionEngine v2.1.1
Api_channel_entries.php: line 86
$this->_initialize(array('channel_id', 'entry_id', 'autosave'));
Api.php: line 101
foreach ($params as $param => $val)
{
$this->{$param} = $val;
}
Assigning class proprety with digital name breaks script on Ubuntu 10.04, php+xdebug enviroinment.
How to reproduce: install xdebug, EE and try to add new entry to EE channel.
See here rules for variable naming: