facebook/hiphop-php — pull request #1077 by javer (2013-09-18 21:24:53+00:00)
Title: Add possibility to set attributes of the nodes with text in SimpleXML

Test case:
```php

content

XML;

$test = simplexml_load_string($xml);

$test->tag1['foo'] = 'foo';
echo $test->tag1['foo'] . PHP_EOL;

$test->tag2['bar'] = 'bar';
echo $test->tag2['bar'] . PHP_EOL;

echo $test->asXML();
```

PHP output:
```
foo
bar

content

```

HHVM output before:
```
foo
HipHop Fatal error: cannot create attribute on this node in test.php on line 14
```

HHVM output after:
```
foo
bar

content

```

It is used in Symfony 2 unit tests.