EllisLab text mark

This is an archived forum and may no longer be relevant. The active forums are here.

Advanced Search
Found critical bug.
Posted: 19 August 2011 10:16 AM
Joined: 2011-06-20
4 posts

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: