Fixed issue #100

replaced
```c
entry.parent = _parent->_entry;
```
to
```c
_entry = zend_register_internal_class_ex(&entry, _parent->_entry, const_cast<char*>(_parent->name().c_str()) TSRMLS_CC);
```
see diff