Lines Matching refs:NULL

249 	if (docp == NULL) {  in dom_document_doctype_read()
262 …if (NULL == (*retval = php_dom_create_object((xmlNodePtr) dtdptr, &ret, NULL, *retval, obj TSRMLS_… in dom_document_doctype_read()
263 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot create required DOM object"); in dom_document_doctype_read()
299 if (docp == NULL) { in dom_document_document_element_read()
312 if (NULL == (*retval = php_dom_create_object(root, &ret, NULL, *retval, obj TSRMLS_CC))) { in dom_document_document_element_read()
313 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot create required DOM object"); in dom_document_document_element_read()
332 if (docp == NULL) { in dom_document_encoding_read()
340 if (encoding != NULL) { in dom_document_encoding_read()
357 if (docp == NULL) { in dom_document_encoding_write()
373 if (handler != NULL) { in dom_document_encoding_write()
375 if (docp->encoding != NULL) { in dom_document_encoding_write()
380 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid Document Encoding"); in dom_document_encoding_write()
404 if (docp == NULL) { in dom_document_standalone_read()
424 if (docp == NULL) { in dom_document_standalone_write()
468 if (docp == NULL) { in dom_document_version_read()
476 if (version != NULL) { in dom_document_version_read()
492 if (docp == NULL) { in dom_document_version_write()
497 if (docp->version != NULL) { in dom_document_version_write()
830 if (docp == NULL) { in dom_document_document_uri_read()
837 if (url != NULL) { in dom_document_document_uri_read()
853 if (docp == NULL) { in dom_document_document_uri_write()
858 if (docp->URL != NULL) { in dom_document_document_uri_write()
902 zval *id, *rv = NULL; in PHP_FUNCTION()
907 char *name, *value = NULL; in PHP_FUNCTION()
920 node = xmlNewDocNode(docp, NULL, name, value); in PHP_FUNCTION()
935 zval *id, *rv = NULL; in PHP_FUNCTION()
962 zval *id, *rv = NULL; in PHP_FUNCTION()
990 zval *id, *rv = NULL; in PHP_FUNCTION()
1018 zval *id, *rv = NULL; in PHP_FUNCTION()
1046 zval *id, *rv = NULL; in PHP_FUNCTION()
1051 char *name, *value = NULL; in PHP_FUNCTION()
1081 zval *id, *rv = NULL; in PHP_FUNCTION()
1099 node = xmlNewDocProp(docp, (xmlChar *) name, NULL); in PHP_FUNCTION()
1115 zval *id, *rv = NULL; in PHP_FUNCTION()
1117 xmlDocPtr docp = NULL; in PHP_FUNCTION()
1164 dom_namednode_iter(intern, 0, namednode, NULL, local, NULL TSRMLS_CC); in PHP_FUNCTION()
1174 zval *rv = NULL; in PHP_FUNCTION()
1192 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot import: Node Type Not Supported"); in PHP_FUNCTION()
1207 if ((retnodep->type == XML_ATTRIBUTE_NODE) && (nodep->ns != NULL)) { in PHP_FUNCTION()
1208 xmlNsPtr nsptr = NULL; in PHP_FUNCTION()
1212 if (nsptr == NULL) { in PHP_FUNCTION()
1230 zval *id, *rv = NULL; in PHP_FUNCTION()
1232 xmlNodePtr nodep = NULL; in PHP_FUNCTION()
1233 xmlNsPtr nsptr = NULL; in PHP_FUNCTION()
1235 char *uri, *name, *value = NULL; in PHP_FUNCTION()
1236 char *localname = NULL, *prefix = NULL; in PHP_FUNCTION()
1250 nodep = xmlNewDocNode (docp, NULL, localname, value); in PHP_FUNCTION()
1251 if (nodep != NULL && uri != NULL) { in PHP_FUNCTION()
1253 if (nsptr == NULL) { in PHP_FUNCTION()
1264 if (prefix != NULL) { in PHP_FUNCTION()
1269 if (nodep != NULL) { in PHP_FUNCTION()
1276 if (nodep == NULL) { in PHP_FUNCTION()
1293 zval *id, *rv = NULL; in PHP_FUNCTION()
1295 xmlNodePtr nodep = NULL, root; in PHP_FUNCTION()
1299 char *localname = NULL, *prefix = NULL; in PHP_FUNCTION()
1310 if (root != NULL) { in PHP_FUNCTION()
1314 nodep = (xmlNodePtr) xmlNewDocProp(docp, localname, NULL); in PHP_FUNCTION()
1315 if (nodep != NULL && uri_len > 0) { in PHP_FUNCTION()
1317 if (nsptr == NULL) { in PHP_FUNCTION()
1327 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Document Missing Root Element"); in PHP_FUNCTION()
1332 if (prefix != NULL) { in PHP_FUNCTION()
1337 if (nodep != NULL) { in PHP_FUNCTION()
1344 if (nodep == NULL) { in PHP_FUNCTION()
1375 dom_namednode_iter(intern, 0, namednode, NULL, local, nsuri TSRMLS_CC); in PHP_FUNCTION()
1385 zval *id, *rv = NULL; in PHP_FUNCTION()
1454 xmlDoc *docp = NULL, *olddoc; in PHP_METHOD()
1456 char *encoding, *version = NULL; in PHP_METHOD()
1479 if (intern != NULL) { in PHP_METHOD()
1481 if (olddoc != NULL) { in PHP_METHOD()
1485 olddoc->_private = NULL; in PHP_METHOD()
1488 intern->document = NULL; in PHP_METHOD()
1509 if (uri->scheme != NULL) { in _dom_get_valid_file_path()
1530 if ((uri->scheme == NULL || isFileUri)) { in _dom_get_valid_file_path()
1534 return NULL; in _dom_get_valid_file_path()
1548 xmlParserCtxtPtr ctxt = NULL; in dom_document_parser()
1551 php_libxml_ref_obj *document = NULL; in dom_document_parser()
1555 char *directory=NULL, resolved_path[MAXPATHLEN]; in dom_document_parser()
1557 if (id != NULL) { in dom_document_parser()
1569 if (document == NULL) { in dom_document_parser()
1585 if (ctxt == NULL) { in dom_document_parser()
1586 return(NULL); in dom_document_parser()
1597 if(ctxt->directory != NULL) { in dom_document_parser()
1612 if (ctxt->sax != NULL) { in dom_document_parser()
1646 if (ret && ret->URL == NULL && ctxt->directory != NULL) { in dom_document_parser()
1650 ret = NULL; in dom_document_parser()
1652 ctxt->myDoc = NULL; in dom_document_parser()
1663 zval *id, *rv = NULL; in dom_parse_document()
1664 xmlDoc *docp = NULL, *newdoc; in dom_parse_document()
1672 if (id != NULL && ! instanceof_function(Z_OBJCE_P(id), dom_document_class_entry TSRMLS_CC)) { in dom_parse_document()
1673 id = NULL; in dom_parse_document()
1681 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Empty string supplied as input"); in dom_parse_document()
1690 if (id != NULL) { in dom_parse_document()
1692 if (intern != NULL) { in dom_parse_document()
1694 doc_prop = NULL; in dom_parse_document()
1695 if (docp != NULL) { in dom_parse_document()
1698 intern->document->doc_props = NULL; in dom_parse_document()
1701 docp->_private = NULL; in dom_parse_document()
1704 intern->document = NULL; in dom_parse_document()
1715 DOM_RET_OBJ(rv, (xmlNodePtr) newdoc, &ret, NULL); in dom_parse_document()
1758 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid Filename"); in PHP_FUNCTION()
1772 bytes = xmlSaveFormatFileEnc(file, docp, NULL, format); in PHP_FUNCTION()
1789 zval *id, *nodep = NULL; in PHP_FUNCTION()
1808 if (nodep != NULL) { in PHP_FUNCTION()
1817 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Could not fetch buffer"); in PHP_FUNCTION()
1953 cvp->userData = NULL; in PHP_FUNCTION()
1974 char *source = NULL, *valid_file = NULL; in _dom_document_schema_validate()
1987 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid Schema source"); in _dom_document_schema_validate()
1997 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid Schema file source"); in _dom_document_schema_validate()
2018 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid Schema"); in _dom_document_schema_validate()
2063 char *source = NULL, *valid_file = NULL; in _dom_document_relaxNG_validate()
2076 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid Schema source"); in _dom_document_relaxNG_validate()
2086 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid RelaxNG file source"); in _dom_document_relaxNG_validate()
2107 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid RelaxNG"); in _dom_document_relaxNG_validate()
2153 zval *id, *rv = NULL; in dom_load_html()
2154 xmlDoc *docp = NULL, *newdoc; in dom_load_html()
2168 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Empty string supplied as input"); in dom_load_html()
2173 ctxt = htmlCreateFileParserCtxt(source, NULL); in dom_load_html()
2185 if (ctxt->sax != NULL) { in dom_load_html()
2196 if (id != NULL && instanceof_function(Z_OBJCE_P(id), dom_document_class_entry TSRMLS_CC)) { in dom_load_html()
2198 if (intern != NULL) { in dom_load_html()
2200 doc_prop = NULL; in dom_load_html()
2201 if (docp != NULL) { in dom_load_html()
2204 intern->document->doc_props = NULL; in dom_load_html()
2207 docp->_private = NULL; in dom_load_html()
2210 intern->document = NULL; in dom_load_html()
2221 DOM_RET_OBJ(rv, (xmlNodePtr) newdoc, &ret, NULL); in dom_load_html()
2262 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid Filename"); in PHP_FUNCTION()
2287 zval *id, *nodep = NULL; in PHP_FUNCTION()
2292 xmlChar *mem = NULL; in PHP_FUNCTION()
2307 if (nodep != NULL) { in PHP_FUNCTION()
2317 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Could not fetch buffer"); in PHP_FUNCTION()
2330 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error dumping HTML node"); in PHP_FUNCTION()
2360 char *baseclass = NULL, *extendedclass = NULL; in PHP_METHOD()
2362 zend_class_entry *basece = NULL, *ce = NULL; in PHP_METHOD()
2372 php_error_docref(NULL TSRMLS_CC, E_ERROR, "Class %s does not exist", baseclass); in PHP_METHOD()
2378 if (basece == NULL || ! instanceof_function(basece, dom_node_class_entry TSRMLS_CC)) { in PHP_METHOD()
2379 php_error_docref(NULL TSRMLS_CC, E_ERROR, "Class %s is not derived from DOMNode.", baseclass); in PHP_METHOD()
2386 php_error_docref(NULL TSRMLS_CC, E_ERROR, "Class %s does not exist", extendedclass); in PHP_METHOD()
2391 if (ce == NULL || instanceof_function(ce, basece TSRMLS_CC)) { in PHP_METHOD()
2396 php_error_docref(NULL TSRMLS_CC, E_ERROR, "Class %s could not be registered.", extendedclass); in PHP_METHOD()
2400 …php_error_docref(NULL TSRMLS_CC, E_ERROR, "Class %s is not derived from %s.", extendedclass, basec… in PHP_METHOD()