{
zval *wrapper, **handle;
int type, refcount = 0;
+ TSRMLS_FETCH();
if (!node) {
return;
DOMXML_NO_ARGS();
/* RETURN_STRING((char *) xmlNodeGetContent((xmlNodePtr) attrp), 1); */
- if (content = xmlNodeGetContent((xmlNodePtr) attrp)) {
+ if ((content = xmlNodeGetContent((xmlNodePtr) attrp)) != NULL) {
RETVAL_STRING(content,1);
} else {
RETURN_EMPTY_STRING();
DOMXML_NO_ARGS();
/* RETURN_STRING(xmlNodeGetContent(nodep), 1); */
- if (content = xmlNodeGetContent(nodep)) {
+ if ((content = xmlNodeGetContent(nodep)) != NULL) {
RETVAL_STRING(content,1);
} else {
RETURN_EMPTY_STRING();