EllisLab text mark
Advanced Search
     
Found critical bug.
Posted: 19 August 2011 10:16 AM
Joined: 2011-06-20
8 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:

http://www.php.net/manual/en/language.variables.basics.php