resource refence count seams to be required to increase when returning it.
Merge pull request #42 from bwoebi/master

Implemented what I wanted in #36
Merge pull request #43 from chibisuke/master

attemped fix for #39
fix bug #45
fix bug #46
remove, again
fix bug #47
attempt to address pointer to pointer issues in bug #46
reverse that #46
address issues highlighted by #64013 on bugs.php.net:
	doc_comment invalid pointer upon free because
comment on issue I've noticed with removing null resources recursively
edit for 5.3, still throwing errors in 5.3 ... 5.4 stable
few length errors
@TODO need a way of detecting proper string length
@TODO need a way to determine what length each internal api is expecting
woops
wrong cast
correct use of apply functions
cleanup
ZEND_HASH_APPLY_KEEP
fix memory error
handle debug info, NO RECURSION SUPPORT
cleanup