zencoder/zencoder-php — Issue #8: Services_Zencoder_Job does not decode outputs
Author: jorrit
Created: 2012-01-11 21:19:25+00:00
State: open

The Services_Zencoder_Job class has its own _update_attributes routine:

```php
if ($attr_name == "output_media_files" && is_array($attr_value)) {
$this->_create_outputs($attr_value);
} elseif ($attr_name == "input_media_file" && is_object($attr_value)) {
$this->input = new Services_Zencoder_Input($attr_value);
} elseif (is_array($attr_value) || is_object($attr_value)) {
$this->_update_attributes($attr_value);
} elseif (empty($this->$attr_name)) {
$this->$attr_name = $attr_value;
}
```

However, the API does not return an output_media_files element, but just outputs. Also, my response does not contain an input_media_file element. The documentation at https://app.zencoder.com/docs/api/jobs/create confirms this.