cvs: php-src /ext/simplexml php_simplexml_exports.h simplexml.c

From: Date: Thu, 05 Aug 2004 23:57:51 +0000
Subject: cvs: php-src /ext/simplexml php_simplexml_exports.h simplexml.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-28207@lists.php.net to get a copy of this message
iliaa Thu Aug 5 19:57:51 2004 EDT Modified files: /php-src/ext/simplexml simplexml.c php_simplexml_exports.h Log: php_error() -> php_error_docref() http://cvs.php.net/diff.php/php-src/ext/simplexml/simplexml.c?r1=1.143&r2=1.144&ty=u Index: php-src/ext/simplexml/simplexml.c diff -u php-src/ext/simplexml/simplexml.c:1.143 php-src/ext/simplexml/simplexml.c:1.144 --- php-src/ext/simplexml/simplexml.c:1.143 Wed Aug 4 10:57:40 2004 +++ php-src/ext/simplexml/simplexml.c Thu Aug 5 19:57:51 2004 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: simplexml.c,v 1.143 2004/08/04 14:57:40 tony2001 Exp $ */ +/* $Id: simplexml.c,v 1.144 2004/08/05 23:57:51 iliaa Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -92,7 +92,7 @@ __n = (__s)->node->node; \ } else { \ __n = NULL; \ - php_error(E_WARNING, "Node no longer exists"); \ + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Node no longer exists"); \ } \ } @@ -295,7 +295,7 @@ } break; default: - php_error(E_WARNING, "It is not possible to assign complex types to nodes"); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "It is not possible to assign complex types to nodes"); break; } } @@ -420,7 +420,7 @@ } change_node_zval(newnode, value); } else if (counter > 1) { - php_error(E_WARNING, "Cannot assign to an array of nodes (duplicate subnodes or attr detected)\n"); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot assign to an array of nodes (duplicate subnodes or attr detected)\n"); } else { if (attribs) { switch (Z_TYPE_P(value)) { @@ -433,7 +433,7 @@ newnode = (xmlNodePtr)xmlNewProp(node, name, Z_STRVAL_P(value)); break; default: - php_error(E_WARNING, "It is not yet possible to assign complex types to attributes"); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "It is not yet possible to assign complex types to attributes"); } } } @@ -1567,7 +1567,7 @@ if (nodep) { if (nodep->doc == NULL) { - php_error(E_WARNING, "Imported Node must have associated Document"); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Imported Node must have associated Document"); RETURN_NULL(); } if (nodep->type == XML_DOCUMENT_NODE || nodep->type == XML_HTML_DOCUMENT_NODE) { @@ -1592,7 +1592,7 @@ return_value->type = IS_OBJECT; return_value->value.obj = php_sxe_register_object(sxe TSRMLS_CC); } else { - php_error(E_WARNING, "Invalid Nodetype to import"); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid Nodetype to import"); RETVAL_NULL(); } } @@ -1679,7 +1679,7 @@ { php_info_print_table_start(); php_info_print_table_header(2, "Simplexml support", "enabled"); - php_info_print_table_row(2, "Revision", "$Revision: 1.143 $"); + php_info_print_table_row(2, "Revision", "$Revision: 1.144 $"); php_info_print_table_row(2, "Schema support", #ifdef LIBXML_SCHEMAS_ENABLED "enabled"); http://cvs.php.net/diff.php/php-src/ext/simplexml/php_simplexml_exports.h?r1=1.1&r2=1.2&ty=u Index: php-src/ext/simplexml/php_simplexml_exports.h diff -u php-src/ext/simplexml/php_simplexml_exports.h:1.1 php-src/ext/simplexml/php_simplexml_exports.h:1.2 --- php-src/ext/simplexml/php_simplexml_exports.h:1.1 Sun Jan 18 18:35:12 2004 +++ php-src/ext/simplexml/php_simplexml_exports.h Thu Aug 5 19:57:51 2004 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_simplexml_exports.h,v 1.1 2004/01/18 23:35:12 helly Exp $ */ +/* $Id: php_simplexml_exports.h,v 1.2 2004/08/05 23:57:51 iliaa Exp $ */ #ifndef PHP_SIMPLEXML_EXPORTS_H #define PHP_SIMPLEXML_EXPORTS_H @@ -35,7 +35,7 @@ __n = (__s)->node->node; \ } else { \ __n = NULL; \ - php_error(E_WARNING, "Node no longer exists"); \ + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Node no longer exists"); \ } \ }

« previous php.cvs (#28207) next »