xp-framework/xp-framework — Issue #130: newinstance() fails to respect namespace
Author: kiesel
Created: 2012-03-01 05:58:44+00:00
State: open
Labels: bug

To create a new anonymous class instance, ```newinstance()``` takes the given spec as class name and appends a global creation counter to the newly declared class.

When using namespaced classes, it will include the namespace operator ('\') into the declaration, which is illegal. This code snippet demonstrates the problem:

```php

```

This yields:

```
-> % xp Example.Issue
Parse error: syntax error, unexpected T_NS_SEPARATOR, expecting '{' in dyn://Example\Issue▒1 on line1
```