cvs: pecl /sdo DEV_BRANCH MakePackage.php SDO_DAS_XML.cpp SDO_DAS_XML_Document.cpp SDO_DataObject.cpp package.xml php_sdo_das_xml.h php_sdo_int.h
/sdo/SCA SCA.php SCA_Logger.php /sdo/SCA/Bindings/soap ServiceDescriptionGenerator.php ServiceRequestHandler.php /sdo/commonj/sdo ChangeSummary.cpp
ChangeSummary.h ChangeSummaryBuilder.cpp ChangeSummaryBuilder.h ChangeSummaryImpl.cpp ChangeSummaryImpl.h ChangedDataObjectList.h
ChangedDataObjectListImpl.cpp ChangedDataObjectListImpl.h CopyHelper.cpp CopyHelper.h DASProperty.cpp DASProperty.h DASType.cpp DASType.h DASValue.cpp
DASValue.h DASValues.cpp DASValues.h DataFactory.cpp DataFactory.h DataFactoryImpl.cpp DataFactoryImpl.h DataGraph.cpp DataGraph.h DataGraphImpl.cpp
DataGraphImpl.h DataObject.cpp DataObject.h DataObjectImpl.cpp DataObjectImpl.h DataObjectInstance.cpp DataObjectInstance.h DataObjectList.cpp
DataObjectList.h DataObjectListImpl.cpp DataObjectListImpl.h DefaultLogWriter.cpp DefaultLogWriter.h EqualityH! elper.cpp EqualityHelper.h
GroupDefinition.cpp GroupDefinition.h GroupEvent.cpp GroupEvent.h HelperProvider.cpp HelperProvider.h LogWriter.cpp LogWriter.h Logger.cpp Logger.h
Logging.h ParserErrorSetter.cpp ParserErrorSetter.h Property.cpp Property.h PropertyDefinition.cpp PropertyDefinition.h PropertyDefinitionImpl.cpp
PropertyDefinitionImpl.h PropertyImpl.cpp PropertyImpl.h PropertyList.cpp PropertyList.h PropertySetting.cpp PropertySetting.h RefCountingObject.cpp
RefCountingObject.h RefCountingPointer.cpp RefCountingPointer.h SAX2Attribute.cpp SAX2Attribute.h SAX2Attributes.cpp SAX2Attributes.h
SAX2Namespaces.cpp SAX2Namespaces.h SAX2Parser.cpp SAX2Parser.h SDO.h SDODate.cpp SDODate.h SDORuntimeException.cpp SDORuntimeException.h
SDOSAX2Parser.cpp SDOSAX2Parser.h SDOSPI.h SDOSchemaSAX2Parser.cpp SDOSchemaSAX2Parser.h SDOString.h SDOUtils.cpp SDOUtils.h SDOXMLBufferWriter.cpp
SDOXMLBufferWriter.h SDOXMLFileWriter.cpp SDOXMLFileWriter.h SDOXMLStreamWriter.cpp SDOXMLStreamW! riter.h SDOXMLString.cpp SDOXMLString.h
SDOXMLWriter.cpp SDOXMLWriter.h SDOXSDBufferWriter.cpp SDOXSDBufferWriter.h SDOXSDFileWriter.cpp SDOXSDFileWriter.h SDOXSDStreamWriter.cpp
SDOXSDStreamWriter.h SDOXSDWriter.cpp SDOXSDWriter.h SchemaInfo.cpp SchemaInfo.h SdoCheck.cpp SdoCheck.h SdoRuntime.cpp SdoRuntime.h Sequence.cpp S
| From: | Matthew Peters | Date: | Fri, 24 Aug 2007 15:20:28 +0000 |
| Subject: | cvs: pecl /sdo DEV_BRANCH MakePackage.php SDO_DAS_XML.cpp SDO_DAS_XML_Document.cpp SDO_DataObject.cpp package.xml php_sdo_das_xml.h php_sdo_int.h /sdo/SCA SCA.php SCA_Logger.php /sdo/SCA/Bindings/soap ServiceDescriptionGenerator.php ServiceRequestHandler.php /sdo/commonj/sdo ChangeSummary.cpp ChangeSummary.h ChangeSummaryBuilder.cpp ChangeSummaryBuilder.h ChangeSummaryImpl.cpp ChangeSummaryImpl.h ChangedDataObjectList.h ChangedDataObjectListImpl.cpp ChangedDataObjectListImpl.h CopyHelper.cpp CopyHelper.h DASProperty.cpp DASProperty.h DASType.cpp DASType.h DASValue.cpp DASValue.h DASValues.cpp DASValues.h DataFactory.cpp DataFactory.h DataFactoryImpl.cpp DataFactoryImpl.h DataGraph.cpp DataGraph.h DataGraphImpl.cpp DataGraphImpl.h DataObject.cpp DataObject.h DataObjectImpl.cpp DataObjectImpl.h DataObjectInstance.cpp DataObjectInstance.h DataObjectList.cpp DataObjectList.h DataObjectListImpl.cpp DataObjectListImpl.h DefaultLogWriter.cpp DefaultLogWriter.h EqualityH! elper.cpp EqualityHelper.h GroupDefinition.cpp GroupDefinition.h GroupEvent.cpp GroupEvent.h HelperProvider.cpp HelperProvider.h LogWriter.cpp LogWriter.h Logger.cpp Logger.h Logging.h ParserErrorSetter.cpp ParserErrorSetter.h Property.cpp Property.h PropertyDefinition.cpp PropertyDefinition.h PropertyDefinitionImpl.cpp PropertyDefinitionImpl.h PropertyImpl.cpp PropertyImpl.h PropertyList.cpp PropertyList.h PropertySetting.cpp PropertySetting.h RefCountingObject.cpp RefCountingObject.h RefCountingPointer.cpp RefCountingPointer.h SAX2Attribute.cpp SAX2Attribute.h SAX2Attributes.cpp SAX2Attributes.h SAX2Namespaces.cpp SAX2Namespaces.h SAX2Parser.cpp SAX2Parser.h SDO.h SDODate.cpp SDODate.h SDORuntimeException.cpp SDORuntimeException.h SDOSAX2Parser.cpp SDOSAX2Parser.h SDOSPI.h SDOSchemaSAX2Parser.cpp SDOSchemaSAX2Parser.h SDOString.h SDOUtils.cpp SDOUtils.h SDOXMLBufferWriter.cpp SDOXMLBufferWriter.h SDOXMLFileWriter.cpp SDOXMLFileWriter.h SDOXMLStreamWriter.cpp SDOXMLStreamW! riter.h SDOXMLString.cpp SDOXMLString.h SDOXMLWriter.cpp SDOXMLWriter.h SDOXSDBufferWriter.cpp SDOXSDBufferWriter.h SDOXSDFileWriter.cpp SDOXSDFileWriter.h SDOXSDStreamWriter.cpp SDOXSDStreamWriter.h SDOXSDWriter.cpp SDOXSDWriter.h SchemaInfo.cpp SchemaInfo.h SdoCheck.cpp SdoCheck.h SdoRuntime.cpp SdoRuntime.h Sequence.cpp S |
||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-8464@lists.php.net to get a copy of this message | ||
mfp Fri Aug 24 15:20:28 2007 UTC
Modified files:
/pecl/sdo DEV_BRANCH php_sdo_das_xml.h SDO_DAS_XML_Document.cpp
SDO_DataObject.cpp MakePackage.php php_sdo_int.h
SDO_DAS_XML.cpp package.xml
/pecl/sdo/tests/SCA/phpunit/SoapBinding HandlerTest.php
ProxyTest.php
MapperTest.php
/pecl/sdo/commonj/sdo TypeDefinitionImpl.h SDOXMLBufferWriter.h
PropertyList.h XMLDocument.cpp
SDOXSDFileWriter.h Sequence.cpp DASValue.h
EqualityHelper.cpp TypeDefinitions.cpp
SDOXSDWriter.h disable_warn.h Logger.cpp
SettingList.h ChangeSummaryImpl.h
XSDHelperImpl.cpp TypeDefinition.h
SAX2Attributes.h DASType.cpp TypeImpl.h
DataFactory.cpp GroupEvent.h
HelperProvider.cpp GroupDefinition.cpp
XSDTypeInfo.h LogWriter.cpp SDOSPI.h
SAX2Attributes.cpp DefaultLogWriter.h
RefCountingObject.h Type.cpp PropertyImpl.h
SDOXMLFileWriter.cpp XMLHelper.h
XSDHelperImpl.h SDORuntimeException.cpp
DataFactoryImpl.cpp SdoRuntime.cpp
PropertySetting.cpp XSDPropertyInfo.h
TypeDefinitionImpl.cpp SDOXMLStreamWriter.cpp
XMLDocumentImpl.h SDODate.cpp
TypeDefinition.cpp
ChangedDataObjectListImpl.h SettingList.cpp
XMLHelper.cpp SDOSchemaSAX2Parser.h
PropertyDefinitionImpl.cpp SDOXMLString.h
SequenceImpl.h DataObjectListImpl.h
DataObject.h XMLHelperImpl.h GroupEvent.cpp
PropertySetting.h DASValues.h
DataObjectList.h TypeList.h DataGraphImpl.h
GroupDefinition.h DataObject.cpp Logging.h
SDOSAX2Parser.h HelperProvider.h
RefCountingPointer.h SDOXSDStreamWriter.h
ParserErrorSetter.cpp
ChangedDataObjectListImpl.cpp
ChangedDataObjectList.h SDOSAX2Parser.cpp
PropertyDefinition.h DataObjectImpl.h
DASProperty.cpp Property.h
PropertyDefinition.cpp EqualityHelper.h
SAX2Namespaces.h SDOXMLStreamWriter.h
DataGraphImpl.cpp TypeImpl.cpp
SDORuntimeException.h DataFactory.h
DASValue.cpp XMLHelperImpl.cpp
SDOXSDFileWriter.cpp ChangeSummary.h
PropertyImpl.cpp DASProperty.h XSDHelper.h
SDODate.h DataObjectList.cpp SdoCheck.cpp
DataObjectInstance.cpp Setting.cpp
SDOXMLWriter.cpp PropertyList.cpp SdoCheck.h
XMLDocumentImpl.cpp SDOXSDBufferWriter.h
SchemaInfo.cpp SDOUtils.cpp
TypeDefinitionsImpl.h RefCountingPointer.cpp
ParserErrorSetter.h ChangeSummaryBuilder.h
DataFactoryImpl.h DASValues.cpp
DefaultLogWriter.cpp SAX2Attribute.h
SDOXMLFileWriter.h XMLQName.cpp
SAX2Attribute.cpp TypeList.cpp
SDOXMLString.cpp DataObjectInstance.h
CopyHelper.h SDOXSDBufferWriter.cpp
ChangeSummary.cpp SequenceImpl.cpp
SchemaInfo.h ChangeSummaryBuilder.cpp
Logger.h SDOSchemaSAX2Parser.cpp
SDOXSDStreamWriter.cpp
PropertyDefinitionImpl.h DataGraph.cpp
ChangeSummaryImpl.cpp SDOXMLWriter.h Type.h
RefCountingObject.cpp Sequence.h
XSDTypeInfo.cpp XMLDocument.h SDOUtils.h
Setting.h DataGraph.h TypeDefinitions.h
DataObjectImpl.cpp SAX2Parser.cpp
SdoRuntime.h SDOString.h XpathHelper.h
SAX2Parser.h XpathHelper.cpp Property.cpp
LogWriter.h TypeDefinitionsImpl.cpp
CopyHelper.cpp XSDPropertyInfo.cpp
DataObjectListImpl.cpp XMLQName.h
SAX2Namespaces.cpp SDO.h DASType.h export.h
SDOXMLBufferWriter.cpp XSDHelper.cpp
SDOXSDWriter.cpp
/pecl/sdo/tests/SCA/phpunit TestSuite.php
/pecl/sdo/tests/DAS/XML/phpunit XMLDASTest.php
/pecl/sdo/SCA SCA.php SCA_Logger.php
/pecl/sdo/tests/SDO/phpt bug9867.phpt bug8694.phpt
/pecl/sdo/tests/SCA/phpunit/RegressionTests
SCA_RegressionTestSuite.php
/pecl/sdo/tests/SCA/phpunit/RestRpc RestRpcTestService.response
RestRpcTest.php
/pecl/sdo/SCA/Bindings/soap ServiceRequestHandler.php
ServiceDescriptionGenerator.php
/pecl/sdo/tests/SCA/phpt 004.phpt 002.phpt 003.phpt
Log:
Check in 1.2.3 (was EIDER)
http://cvs.php.net/viewvc.cgi/pecl/sdo/DEV_BRANCH?r1=1.3&r2=1.4&diff_format=u Index: pecl/sdo/DEV_BRANCH diff -u pecl/sdo/DEV_BRANCH:1.3 pecl/sdo/DEV_BRANCH:1.4 --- pecl/sdo/DEV_BRANCH:1.3 Tue Jul 10 10:42:56 2007 +++ pecl/sdo/DEV_BRANCH Fri Aug 24 15:20:20 2007 @@ -1 +1 @@ -EIDER \ No newline at end of file +FULMAR \ No newline at end of file http://cvs.php.net/viewvc.cgi/pecl/sdo/php_sdo_das_xml.h?r1=1.13&r2=1.14&diff_format=u Index: pecl/sdo/php_sdo_das_xml.h diff -u pecl/sdo/php_sdo_das_xml.h:1.13 pecl/sdo/php_sdo_das_xml.h:1.14 --- pecl/sdo/php_sdo_das_xml.h:1.13 Fri Sep 29 15:03:15 2006 +++ pecl/sdo/php_sdo_das_xml.h Fri Aug 24 15:20:20 2007 @@ -1,6 +1,6 @@ /* +----------------------------------------------------------------------+ -| (c) Copyright IBM Corporation 2005, 2006. | +| (c) Copyright IBM Corporation 2005, 2007. | | All Rights Reserved. | +----------------------------------------------------------------------+ | | @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_sdo_das_xml.h,v 1.13 2006/09/29 15:03:15 cem Exp $ */ +/* $Id: php_sdo_das_xml.h,v 1.14 2007/08/24 15:20:20 mfp Exp $ */ #ifndef PHP_SDO_DAS_XML_H #define PHP_SDO_DAS_XML_H @@ -57,6 +57,7 @@ PHP_METHOD(SDO_DAS_XML_Document, setXMLDeclaration); PHP_METHOD(SDO_DAS_XML_Document, setXMLVersion); PHP_METHOD(SDO_DAS_XML_Document, setEncoding); +PHP_METHOD(SDO_DAS_XML_Document, __toString); #endif /* PHP_SDO_DAS_XML_H */ http://cvs.php.net/viewvc.cgi/pecl/sdo/SDO_DAS_XML_Document.cpp?r1=1.16&r2=1.17&diff_format=u Index: pecl/sdo/SDO_DAS_XML_Document.cpp diff -u pecl/sdo/SDO_DAS_XML_Document.cpp:1.16 pecl/sdo/SDO_DAS_XML_Document.cpp:1.17 --- pecl/sdo/SDO_DAS_XML_Document.cpp:1.16 Fri May 4 15:05:47 2007 +++ pecl/sdo/SDO_DAS_XML_Document.cpp Fri Aug 24 15:20:20 2007 @@ -1,6 +1,6 @@ /* +----------------------------------------------------------------------+ -| (c) Copyright IBM Corporation 2005. | +| (c) Copyright IBM Corporation 2005, 2007. | | All Rights Reserved. | +----------------------------------------------------------------------+ | | @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -static char rcs_id[] = "$Id: SDO_DAS_XML_Document.cpp,v 1.16 2007/05/04 15:05:47 mfp Exp $"; +static char rcs_id[] = "$Id: SDO_DAS_XML_Document.cpp,v 1.17 2007/08/24 15:20:20 mfp Exp $"; #ifdef PHP_WIN32 /* disable warning about identifier lengths in browser information */ @@ -64,6 +64,8 @@ sdo_xmldoc_setXMLVersion_args, ZEND_ACC_PUBLIC) ZEND_ME(SDO_DAS_XML_Document, setEncoding, sdo_xmldoc_setEncoding_args, ZEND_ACC_PUBLIC) + ZEND_ME(SDO_DAS_XML_Document, __toString, 0, + ZEND_ACC_PUBLIC) {NULL, NULL, NULL} }; /* }}} */ @@ -124,6 +126,45 @@ } /* }}} */ +/* {{{ sdo_das_xml_document_cast_object +*/ +#if PHP_MAJOR_VERSION > 5 || (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION > 1) +static int sdo_das_xml_document_cast_object(zval *readobj, zval *writeobj, int type TSRMLS_DC) +{ + int should_free = 0; +#else +static int sdo_das_xml_document_cast_object(zval *readobj, zval *writeobj, int type, int should_free TSRMLS_DC) +{ +#endif + xmldocument_object *xmldocument; + ostringstream print_buf; + int rc = SUCCESS; + + xmldocument = (xmldocument_object *) zend_object_store_get_object(readobj TSRMLS_CC); + + try { + /* I don't think Tuscany provides a way to get back to the original + * DataFactory from the XML document, so I'm (expensively and probably + * inaccurately) creating a temporary one. + */ + DataFactoryPtr dataFactoryPtr = DataFactory::getDataFactory(); + XMLHelperPtr xmlHelperPtr = HelperProvider::getXMLHelper((DataFactory *)dataFactoryPtr); + print_buf << xmlHelperPtr->save(xmldocument->xmlDocumentPtr); + + std::string print_string = print_buf.str(); + ZVAL_STRINGL(writeobj, (char *)print_string.c_str(), print_string.length(), 1); + + } catch (SDORuntimeException e) { + ZVAL_NULL(writeobj); + sdo_throw_runtimeexception(&e TSRMLS_CC); + rc = FAILURE; + } + + return rc; + +} +/* }}} */ + /* {{{ sdo_das_xml_document_minit * * Initializes SDO_DAS_XML_Document class @@ -140,6 +181,7 @@ sizeof(zend_object_handlers)); sdo_das_xml_doc_object_handlers.add_ref = SDO_FUNC_ADDREF(das_xml_document); sdo_das_xml_doc_object_handlers.del_ref = SDO_FUNC_DELREF(das_xml_document); + sdo_das_xml_doc_object_handlers.cast_object = sdo_das_xml_document_cast_object; sdo_das_xml_doc_object_handlers.clone_obj = NULL; } /* }}} */ @@ -299,6 +341,18 @@ } /* }}} SDO_DAS_XML_Document::setEncoding */ +/* {{{ SDO_DAS_XML_Document::__toString + */ +PHP_METHOD(SDO_DAS_XML_Document, __toString) +{ +#if PHP_MAJOR_VERSION > 5 || (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION > 1) + sdo_das_xml_document_cast_object(getThis(), return_value, IS_STRING TSRMLS_CC); +#else + sdo_das_xml_document_cast_object(getThis(), return_value, IS_STRING, 0 TSRMLS_CC); +#endif +} +/* }}} */ + /* * Local variables: * tab-width: 4 http://cvs.php.net/viewvc.cgi/pecl/sdo/SDO_DataObject.cpp?r1=1.29&r2=1.30&diff_format=u Index: pecl/sdo/SDO_DataObject.cpp diff -u pecl/sdo/SDO_DataObject.cpp:1.29 pecl/sdo/SDO_DataObject.cpp:1.30 --- pecl/sdo/SDO_DataObject.cpp:1.29 Fri May 4 15:05:47 2007 +++ pecl/sdo/SDO_DataObject.cpp Fri Aug 24 15:20:20 2007 @@ -1,6 +1,6 @@ /* +----------------------------------------------------------------------+ -| Copyright IBM Corporation 2005, 2006. | +| Copyright IBM Corporation 2005, 2007. | | All Rights Reserved. | +----------------------------------------------------------------------+ | | @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -static char rcs_id[] = "$Id: SDO_DataObject.cpp,v 1.29 2007/05/04 15:05:47 mfp Exp $"; +static char rcs_id[] = "$Id: SDO_DataObject.cpp,v 1.30 2007/08/24 15:20:20 mfp Exp $"; #ifdef PHP_WIN32 #include <iostream> @@ -827,7 +827,9 @@ /* the property is set, so we must also compare its value */ ZVAL_STRING(&offset, (char *)propertyName, 0); zval *value1 = sdo_do_read_dimension(object1, &offset, BP_VAR_R TSRMLS_CC); + zval_add_ref(&value1); zval *value2 = sdo_do_read_dimension(object2, &offset, BP_VAR_R TSRMLS_CC); + zval_add_ref(&value2); int rc = compare_function(&result, value1, value2 TSRMLS_CC); zval_ptr_dtor(&value1); zval_ptr_dtor(&value2); http://cvs.php.net/viewvc.cgi/pecl/sdo/MakePackage.php?r1=1.34&r2=1.35&diff_format=u Index: pecl/sdo/MakePackage.php diff -u pecl/sdo/MakePackage.php:1.34 pecl/sdo/MakePackage.php:1.35 --- pecl/sdo/MakePackage.php:1.34 Fri Jun 22 14:32:33 2007 +++ pecl/sdo/MakePackage.php Fri Aug 24 15:20:20 2007 @@ -1,5 +1,5 @@ <?php - /* $Id: MakePackage.php,v 1.34 2007/06/22 14:32:33 mfp Exp $ */ + /* $Id: MakePackage.php,v 1.35 2007/08/24 15:20:20 mfp Exp $ */ require_once('PEAR/PackageFileManager.php'); $packagexml = new PEAR_PackageFileManager; if (PEAR::isError($packagexml)) { @@ -155,23 +155,34 @@ // . " * Experimental support for service names following the PEAR coding standard\n" // . " * Experimental support for a manual service request dispatching interface on SCA.php\n" // , +// 'notes' => +// " * Fixes for PECL bugs:\n" +// . " - PECL#10925 - Don't treat magic PHP methods as service operations\n" +// . " - PECL#10989 - don't automatically make all types in the wsdl nillable\n" +// . " - PECL#10994 - Business Exceptions Data Returned to Client\n" +// . " - PECL#11004 - WSDL Generated Does Not Validate\n" +// . " - PECL#11012 - Visual Studio Consumption of SCA Generated WSDL\n" +// . " * Other:\n" +// . " - Pick up revision 546761 of Tuscany SDO code.\n" +// . " - Include new eBay soap binding\n" +// . " - Tactical version of the in memory caching of the data model enabled for eBay binding\n" +// . " - Unit tests keep going to conclusion even when extensions are missing\n" +// . " - Added the eServiceStore example - shows several components which can be make local or\n" +// . " remote with only a swift change of the @binding annotations.\n" +// , 'notes' => " * Fixes for PECL bugs:\n" - . " - PECL#10925 - Don't treat magic PHP methods as service operations\n" - . " - PECL#10989 - don't automatically make all types in the wsdl nillable\n" - . " - PECL#10994 - Business Exceptions Data Returned to Client\n" - . " - PECL#11004 - WSDL Generated Does Not Validate\n" - . " - PECL#11012 - Visual Studio Consumption of SCA Generated WSDL\n" + . " - TUSCANY-1362 - Incorrect operation of code that checks whether schema is loaded before going out on the net to retrieve it.\n" + . " - TUSCANY-1112 - (which is PECL 9867) Incorrect namespaces in generated XML\n" + . " - TUSCANY-1564 - (which is PECL 11774) xsi:type not always set for complexType\n" + . " - TUSCANY-1566 - Elements coming out in wrong namespace (found by Caroline and reported in the phpsoa group under \"Experiences with Atompub\"\n" . " * Other:\n" - . " - Pick up revision 546761 of Tuscany SDO code.\n" - . " - Include new eBay soap binding\n" - . " - Tactical version of the in memory caching of the data model enabled for eBay binding\n" - . " - Unit tests keep going to conclusion even when extensions are missing\n" - . " - Added the eServiceStore example - shows several components which can be make local or\n" - . " remote with only a swift change of the @binding annotations.\n" + . " - Pick up revision 568244 of Tuscany SDO code.\n" + . " - There is a new Rest Resource binding, with tests and examples.\n" + . " - There is a new simpledb binding with examples\n" , 'simpleoutput' => true, - 'version' => '1.2.2', + 'version' => '1.2.3', 'baseinstalldir' => 'SDO', 'state' => 'stable', 'license' => 'Apache 2.0', http://cvs.php.net/viewvc.cgi/pecl/sdo/php_sdo_int.h?r1=1.26&r2=1.27&diff_format=u Index: pecl/sdo/php_sdo_int.h diff -u pecl/sdo/php_sdo_int.h:1.26 pecl/sdo/php_sdo_int.h:1.27 --- pecl/sdo/php_sdo_int.h:1.26 Fri Jun 22 14:32:33 2007 +++ pecl/sdo/php_sdo_int.h Fri Aug 24 15:20:20 2007 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_sdo_int.h,v 1.26 2007/06/22 14:32:33 mfp Exp $ */ +/* $Id: php_sdo_int.h,v 1.27 2007/08/24 15:20:20 mfp Exp $ */ #ifndef PHP_SDO_INT_H #define PHP_SDO_INT_H @@ -37,7 +37,7 @@ -#define SDO_VERSION "1.2.2" +#define SDO_VERSION "1.2.3" #define SDO_NAMESPACE_URI "namespaceURI" #define SDO_TYPE_NAME "typeName" http://cvs.php.net/viewvc.cgi/pecl/sdo/SDO_DAS_XML.cpp?r1=1.24&r2=1.25&diff_format=u Index: pecl/sdo/SDO_DAS_XML.cpp diff -u pecl/sdo/SDO_DAS_XML.cpp:1.24 pecl/sdo/SDO_DAS_XML.cpp:1.25 --- pecl/sdo/SDO_DAS_XML.cpp:1.24 Fri Jun 22 14:32:33 2007 +++ pecl/sdo/SDO_DAS_XML.cpp Fri Aug 24 15:20:20 2007 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -static char rcs_id[] = "$Id: SDO_DAS_XML.cpp,v 1.24 2007/06/22 14:32:33 mfp Exp $"; +static char rcs_id[] = "$Id: SDO_DAS_XML.cpp,v 1.25 2007/08/24 15:20:20 mfp Exp $"; #ifdef PHP_WIN32 /* disable warning about identifier lengths in browser information */ @@ -264,24 +264,7 @@ int error_count; try { - /* - * The second (boolean) parameter tells Tuscany whether to try loading - * imported schema from the namespaceURI if the schemaLocation attribute - * is omitted. I've turned this on to support some dodgy schema out - * there, but if it causes problems, perhaps a phpini setting may be - * required. - */ - /* Turned this off, for the soap and wsdl schema, on 21 June 07. - * Every load of the wsdl and soap schema was - * taking at least a second, sometimes more than 30, when run from the - * other end of a broadband link. Matthew Peters - */ - if (strstr(file_name,"2003-02-11.xsd")) { - xmldas->xsdHelperPtr->defineFile(file_name, false); - } else { - xmldas->xsdHelperPtr->defineFile(file_name, true); - } - + xmldas->xsdHelperPtr->defineFile(file_name); error_count = xmldas->xsdHelperPtr->getErrorCount(); if (error_count > 0) { ostringstream print_buf; http://cvs.php.net/viewvc.cgi/pecl/sdo/package.xml?r1=1.28&r2=1.29&diff_format=u Index: pecl/sdo/package.xml diff -u pecl/sdo/package.xml:1.28 pecl/sdo/package.xml:1.29 --- pecl/sdo/package.xml:1.28 Fri Jun 22 14:55:38 2007 +++ pecl/sdo/package.xml Fri Aug 24 15:20:20 2007 @@ -32,23 +32,19 @@ </maintainer> </maintainers> <release> - <version>1.2.2</version> - <date>2007-06-20</date> + <version>1.2.3</version> + <date>2007-08-24</date> <license>Apache 2.0</license> <state>stable</state> <notes>* Fixes for PECL bugs: - - PECL#10925 - Don't treat magic PHP methods as service operations - - PECL#10989 - don't automatically make all types in the wsdl nillable - - PECL#10994 - Business Exceptions Data Returned to Client - - PECL#11004 - WSDL Generated Does Not Validate - - PECL#11012 - Visual Studio Consumption of SCA Generated WSDL + - TUSCANY-1362 - Incorrect operation of code that checks whether schema is loaded before going out on the net to retrieve it. + - TUSCANY-1112 - (which is PECL 9867) Incorrect namespaces in generated XML + - TUSCANY-1564 - (which is PECL 11774) xsi:type not always set for complexType + - TUSCANY-1566 - Elements coming out in wrong namespace (found by Caroline and reported in the phpsoa group under "Experiences with Atompub" * Other: - - Pick up revision 546761 of Tuscany SDO code. - - Include new eBay soap binding - - Tactical version of the in memory caching of the data model enabled for eBay binding - - Unit tests keep going to conclusion even when extensions are missing - - Added the eServiceStore example - shows several components which can be make local or - remote with only a swift change of the @binding annotations. + - Pick up revision 568244 of Tuscany SDO code. + - There is a new Rest Resource binding, with tests and examples. + - There is a new simpledb binding with examples </notes> <deps> <dep type="php" rel="ge" version="5.1.0" optional="no"/> @@ -75,6 +71,25 @@ <dir name="local"> <file role="php" name="Proxy.php"/> </dir> <!-- /SCA/Bindings/local --> + <dir name="message"> + <file role="php" name="Mapper.php"/> + <file role="php" name="MessageProviderDescription.xsd"/> + <file role="php" name="Proxy.php"/> + <file role="php" name="RequestTester.php"/> + <file role="php" name="SAM_Client.php"/> + <file role="php" name="ServiceDescriptionGenerator.php"/> + <file role="php" name="ServiceRequestHandler.php"/> + <file role="php" name="Wrapper.php"/> + </dir> <!-- /SCA/Bindings/message --> + <dir name="restresource"> + <file role="php" name="Proxy.php"/> + <file role="php" name="README"/> + <file role="php" name="RequestTester.php"/> + <file role="php" name="ResourceTemplate.php"/> + <file role="php" name="Server.php"/> + <file role="php" name="ServiceRequestHandler.php"/> + <file role="php" name="Wrapper.php"/> + </dir> <!-- /SCA/Bindings/restresource --> <dir name="restrpc"> <file role="php" name="Proxy.php"/> <file role="php" name="README"/> @@ -543,6 +558,15 @@ <file role="test" name="HelloService.php"/> </dir> <!-- /examples/SCA/Local/ScriptCallingLocalSCAComponent --> </dir> <!-- /examples/SCA/Local --> + <dir name="RestResource"> + <file role="test" name="Orders.html"/> + <file role="test" name="Orders.php"/> + <file role="test" name="Orders.xml"/> + <file role="test" name="Orders.xsd"/> + <file role="test" name="OrdersClient.html"/> + <file role="test" name="OrdersClient.php"/> + <file role="test" name="README"/> + </dir> <!-- /examples/SCA/RestResource --> <dir name="Soap"> <dir name="SCAComponentCallingRemoteSCAComponent"> <file role="test" name="HelloClient.php"/> @@ -730,6 +754,20 @@ <file role="test" name="SCALogFilterTest.php"/> <file role="test" name="SCALoggerTest.php"/> </dir> <!-- /tests/SCA/phpunit/LogTests --> + <dir name="RegressionTests"> + <file role="test" name="Bug11774.xsd"/> + <file role="test" name="Bug11774Test.php"/> + <file role="test" name="SCA_RegressionTestSuite.php"/> + <file role="test" name="Tuscany1566Test.php"/> + </dir> <!-- /tests/SCA/phpunit/RegressionTests --> + <dir name="RestResource"> + <file role="test" name="enumerate.response"/> + <file role="test" name="Orders.php"/> + <file role="test" name="Orders.xml"/> + <file role="test" name="Orders.xsd"/> + <file role="test" name="RestResourceTest.php"/> + <file role="test" name="retrieve.response"/> + </dir> <!-- /tests/SCA/phpunit/RestResource --> <dir name="RestRpc"> <file role="test" name="Hello.xsd"/> <file role="test" name="RestRpcTest.php"/> @@ -778,6 +816,7 @@ <file role="test" name="bug8694.phpt"/> <file role="test" name="bug9243.phpt"/> <file role="test" name="bug9487.phpt"/> + <file role="test" name="bug9867.phpt"/> <file role="test" name="bug9991.phpt"/> <file role="test" name="bug10049.phpt"/> <file role="test" name="bug10842.phpt"/> @@ -1056,5 +1095,21 @@ remote with only a swift change of the @binding annotations. </notes> </release> + <release> + <version>1.2.3</version> + <date>2007-08-24</date> + <license>Apache 2.0</license> + <state>stable</state> + <notes>* Fixes for PECL bugs: + - TUSCANY-1362 - Incorrect operation of code that checks whether schema is loaded before going out on the net to retrieve it. + - TUSCANY-1112 - (which is PECL 9867) Incorrect namespaces in generated XML + - TUSCANY-1564 - (which is PECL 11774) xsi:type not always set for complexType + - TUSCANY-1566 - Elements coming out in wrong namespace (found by Caroline and reported in the phpsoa group under "Experiences with Atompub" + * Other: + - Pick up revision 568244 of Tuscany SDO code. + - There is a new Rest Resource binding, with tests and examples. + - There is a new simpledb binding with examples + </notes> + </release> </changelog> </package> http://cvs.php.net/viewvc.cgi/pecl/sdo/tests/SCA/phpunit/SoapBinding/HandlerTest.php?r1=1.2&r2=1.3&diff_format=u Index: pecl/sdo/tests/SCA/phpunit/SoapBinding/HandlerTest.php diff -u pecl/sdo/tests/SCA/phpunit/SoapBinding/HandlerTest.php:1.2 pecl/sdo/tests/SCA/phpunit/SoapBinding/HandlerTest.php:1.3 --- pecl/sdo/tests/SCA/phpunit/SoapBinding/HandlerTest.php:1.2 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/tests/SCA/phpunit/SoapBinding/HandlerTest.php Fri Aug 24 15:20:20 2007 @@ -21,7 +21,6 @@ public function setUp() { - $this->markTestSkipped("Skip until pecl bug 11388 fixed"); if ( ! class_exists('SCA_Bindings_soap_Proxy')) { $this->markTestSkipped("Cannot execute any SCA soap tests as the SCA soap binding is not loaded"); return; @@ -78,7 +77,6 @@ public function testSoapHandlerProcessesCorrectCallCorrectly() { - $this->markTestSkipped("the ob_start() is failing on Linux with 5.2.3"); global $HTTP_RAW_POST_DATA; // make it look to the component as if it is on the receiving end of a SOAP request $_SERVER['HTTP_HOST'] = 'localhost'; http://cvs.php.net/viewvc.cgi/pecl/sdo/tests/SCA/phpunit/SoapBinding/ProxyTest.php?r1=1.2&r2=1.3&diff_format=u Index: pecl/sdo/tests/SCA/phpunit/SoapBinding/ProxyTest.php diff -u pecl/sdo/tests/SCA/phpunit/SoapBinding/ProxyTest.php:1.2 pecl/sdo/tests/SCA/phpunit/SoapBinding/ProxyTest.php:1.3 --- pecl/sdo/tests/SCA/phpunit/SoapBinding/ProxyTest.php:1.2 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/tests/SCA/phpunit/SoapBinding/ProxyTest.php Fri Aug 24 15:20:20 2007 @@ -76,7 +76,7 @@ { require_once "PHPUnit/TextUI/TestRunner.php"; - $suite = new PHPUnit_Framework_TestSuite("SCA_SoapProxyTest"); + $suite = new PHPUnit_Framework_TestSuite("SCA_Bindings_soap_ProxyTest"); $result = PHPUnit_TextUI_TestRunner::run($suite); } http://cvs.php.net/viewvc.cgi/pecl/sdo/tests/SCA/phpunit/SoapBinding/MapperTest.php?r1=1.2&r2=1.3&diff_format=u Index: pecl/sdo/tests/SCA/phpunit/SoapBinding/MapperTest.php diff -u pecl/sdo/tests/SCA/phpunit/SoapBinding/MapperTest.php:1.2 pecl/sdo/tests/SCA/phpunit/SoapBinding/MapperTest.php:1.3 --- pecl/sdo/tests/SCA/phpunit/SoapBinding/MapperTest.php:1.2 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/tests/SCA/phpunit/SoapBinding/MapperTest.php Fri Aug 24 15:20:20 2007 @@ -7,6 +7,7 @@ include_once "SCA/SCA.php"; require_once 'SCA/Bindings/soap/ServiceDescriptionGenerator.php'; require_once 'SCA/Bindings/soap/Mapper.php'; +require_once 'SCA/Bindings/soap/Proxy.php'; class SCA_Bindings_soap_MapperTest extends PHPUnit_Framework_TestCase { @@ -100,12 +101,12 @@ $xml = $th->toXML($request); $this->assertContains('<?xml version="1.0" encoding="UTF-8"?>',$xml); - $this->assertContains('<BOGUS xmlns="http://TypeHandlerTest1">',$xml); - $this->assertContains('<a>hello</a>',$xml); + $this->assertContains('<BOGUS>',$xml); + $this->assertContains('<tns2:a>hello</tns2:a>',$xml); /* there's a difference in the number of trailing zeros which seems to be platform-specific */ - $this->assertRegExp('?<b>1\.100e\+0*</b>?', $xml); - $this->assertContains('<c>99</c>',$xml); - $this->assertContains('<d>true</d>',$xml); + $this->assertRegExp('?<tns2:b>1\.100e\+0*</tns2:b>?', $xml); + $this->assertContains('<tns2:c>99</tns2:c>',$xml); + $this->assertContains('<tns2:d>true</tns2:d>',$xml); $this->assertContains('</BOGUS>',$xml); } @@ -121,12 +122,12 @@ $xml = $th->toXML($request); $this->assertContains('<?xml version="1.0" encoding="UTF-8"?>',$xml); - $this->assertContains('<BOGUS xmlns="http://TypeHandlerTest2">',$xml); - $this->assertContains('<p1>',$xml); + $this->assertContains('<BOGUS>',$xml); + $this->assertContains('<tns2:p1>',$xml); $this->assertContains('<name>William Shakespeare</name>',$xml); $this->assertContains('<dob>April 1564, most likely 23rd</dob>',$xml); $this->assertContains('<pob>Stratford-upon-Avon, Warwickshire</pob>',$xml); - $this->assertContains('</p1>',$xml); + $this->assertContains('</tns2:p1>',$xml); $this->assertContains('</BOGUS>',$xml); } @@ -143,11 +144,11 @@ $xml = $th->toXML($request); $this->assertContains('<?xml version="1.0" encoding="UTF-8"?>',$xml); - $this->assertContains('<BOGUS xmlns="http://TypeHandlerTest1">',$xml); - $this->assertContains('<a xsi:nil="true"/>',$xml); - $this->assertContains('<b xsi:nil="true"/>',$xml); - $this->assertContains('<c xsi:nil="true"/>',$xml); - $this->assertContains('<d xsi:nil="true"/>',$xml); + $this->assertContains('<BOGUS>',$xml); + $this->assertContains('<tns2:a xsi:nil="true"/>',$xml); + $this->assertContains('<tns2:b xsi:nil="true"/>',$xml); + $this->assertContains('<tns2:c xsi:nil="true"/>',$xml); + $this->assertContains('<tns2:d xsi:nil="true"/>',$xml); $this->assertContains('</BOGUS>',$xml); } http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/TypeDefinitionImpl.h?r1=1.5&r2=1.6&diff_format=u Index: pecl/sdo/commonj/sdo/TypeDefinitionImpl.h diff -u pecl/sdo/commonj/sdo/TypeDefinitionImpl.h:1.5 pecl/sdo/commonj/sdo/TypeDefinitionImpl.h:1.6 --- pecl/sdo/commonj/sdo/TypeDefinitionImpl.h:1.5 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/TypeDefinitionImpl.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _TYPEDefinitionImpl_H_ #define _TYPEDefinitionImpl_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXMLBufferWriter.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXMLBufferWriter.h diff -u pecl/sdo/commonj/sdo/SDOXMLBufferWriter.h:1.7 pecl/sdo/commonj/sdo/SDOXMLBufferWriter.h:1.8 --- pecl/sdo/commonj/sdo/SDOXMLBufferWriter.h:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SDOXMLBufferWriter.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _SDOXMLBUFFERWRITER_H_ #define _SDOXMLBUFFERWRITER_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/PropertyList.h?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/PropertyList.h diff -u pecl/sdo/commonj/sdo/PropertyList.h:1.9 pecl/sdo/commonj/sdo/PropertyList.h:1.10 --- pecl/sdo/commonj/sdo/PropertyList.h:1.9 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/PropertyList.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 479634 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 479634 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _PROPERTYLIST_H_ #define _PROPERTYLIST_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XMLDocument.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/XMLDocument.cpp diff -u pecl/sdo/commonj/sdo/XMLDocument.cpp:1.7 pecl/sdo/commonj/sdo/XMLDocument.cpp:1.8 --- pecl/sdo/commonj/sdo/XMLDocument.cpp:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/XMLDocument.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/XMLDocument.h" namespace commonj http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXSDFileWriter.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXSDFileWriter.h diff -u pecl/sdo/commonj/sdo/SDOXSDFileWriter.h:1.7 pecl/sdo/commonj/sdo/SDOXSDFileWriter.h:1.8 --- pecl/sdo/commonj/sdo/SDOXSDFileWriter.h:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SDOXSDFileWriter.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _SDOXSDFILEWRITER_H_ #define _SDOXSDFILEWRITER_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/Sequence.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/Sequence.cpp diff -u pecl/sdo/commonj/sdo/Sequence.cpp:1.7 pecl/sdo/commonj/sdo/Sequence.cpp:1.8 --- pecl/sdo/commonj/sdo/Sequence.cpp:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/Sequence.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/Property.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DASValue.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/DASValue.h diff -u pecl/sdo/commonj/sdo/DASValue.h:1.8 pecl/sdo/commonj/sdo/DASValue.h:1.9 --- pecl/sdo/commonj/sdo/DASValue.h:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/DASValue.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _SDO_DASValue_H_ #define _SDO_DASValue_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/EqualityHelper.cpp?r1=1.11&r2=1.12&diff_format=u Index: pecl/sdo/commonj/sdo/EqualityHelper.cpp diff -u pecl/sdo/commonj/sdo/EqualityHelper.cpp:1.11 pecl/sdo/commonj/sdo/EqualityHelper.cpp:1.12 --- pecl/sdo/commonj/sdo/EqualityHelper.cpp:1.11 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/EqualityHelper.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 509676 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 509676 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/Property.h" #include "commonj/sdo/Type.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/TypeDefinitions.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/TypeDefinitions.cpp diff -u pecl/sdo/commonj/sdo/TypeDefinitions.cpp:1.7 pecl/sdo/commonj/sdo/TypeDefinitions.cpp:1.8 --- pecl/sdo/commonj/sdo/TypeDefinitions.cpp:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/TypeDefinitions.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 524004 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 524004 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/TypeDefinitions.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXSDWriter.h?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXSDWriter.h diff -u pecl/sdo/commonj/sdo/SDOXSDWriter.h:1.9 pecl/sdo/commonj/sdo/SDOXSDWriter.h:1.10 --- pecl/sdo/commonj/sdo/SDOXSDWriter.h:1.9 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SDOXSDWriter.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _SDOXSDWRITER_H_ #define _SDOXSDWRITER_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/disable_warn.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/disable_warn.h diff -u pecl/sdo/commonj/sdo/disable_warn.h:1.7 pecl/sdo/commonj/sdo/disable_warn.h:1.8 --- pecl/sdo/commonj/sdo/disable_warn.h:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/disable_warn.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _DISABLE_WARN_H_ #define _DISABLE_WARN_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/Logger.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/Logger.cpp diff -u pecl/sdo/commonj/sdo/Logger.cpp:1.8 pecl/sdo/commonj/sdo/Logger.cpp:1.9 --- pecl/sdo/commonj/sdo/Logger.cpp:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/Logger.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/Logger.h" #include <iostream> http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SettingList.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/SettingList.h diff -u pecl/sdo/commonj/sdo/SettingList.h:1.8 pecl/sdo/commonj/sdo/SettingList.h:1.9 --- pecl/sdo/commonj/sdo/SettingList.h:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SettingList.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef SETTINGLIST_H #define SETTINGLIST_H http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/ChangeSummaryImpl.h?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/ChangeSummaryImpl.h diff -u pecl/sdo/commonj/sdo/ChangeSummaryImpl.h:1.9 pecl/sdo/commonj/sdo/ChangeSummaryImpl.h:1.10 --- pecl/sdo/commonj/sdo/ChangeSummaryImpl.h:1.9 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/ChangeSummaryImpl.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _CHANGESUMMARYIMPL_H_ #define _CHANGESUMMARYIMPL_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XSDHelperImpl.cpp?r1=1.12&r2=1.13&diff_format=u Index: pecl/sdo/commonj/sdo/XSDHelperImpl.cpp diff -u pecl/sdo/commonj/sdo/XSDHelperImpl.cpp:1.12 pecl/sdo/commonj/sdo/XSDHelperImpl.cpp:1.13 --- pecl/sdo/commonj/sdo/XSDHelperImpl.cpp:1.12 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/XSDHelperImpl.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 524004 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 550013 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/SDOXMLFileWriter.h" // Include first to avoid libxml compile problems! #include "commonj/sdo/SDOXMLStreamWriter.h" // Include first to avoid libxml compile problems! @@ -56,7 +56,7 @@ XSDHelperImpl::XSDHelperImpl(DataFactoryPtr df) { - dataFactory = (DataFactory*)df; + dataFactory = df; if (!dataFactory) { dataFactory = DataFactory::getDataFactory(); @@ -78,60 +78,53 @@ * */ - const char* XSDHelperImpl::defineFile(const char* schema, bool loadImportNamespace) + const char* XSDHelperImpl::defineFile(const char* schema) { clearErrors(); - SDOSchemaSAX2Parser* schemaParser; + SDOSchemaSAX2Parser schemaParser(schemaInfo, this, parsedLocations, definedNamespaces); - /* Build URI allowing for Windows path - */ - xmlChar*const uri = xmlCanonicPath((xmlChar*)schema); - try - { - schemaParser = parseIfNot(uri, loadImportNamespace); - } - catch(...) + // Build URI allowing for Windows path + xmlChar* uri = xmlCanonicPath((xmlChar*)schema); + SDOXMLString schemaUri(uri); + if (uri) { xmlFree(uri); - throw; } - xmlFree(uri); - if (schemaParser) - { - defineTypes(schemaParser->getTypeDefinitions()); - return schemaParser->getTargetNamespaceURI(); - } - return 0; + if (0 != schemaParser.parseURI(schemaUri, SDOXMLString())) + return 0; + defineTypes(schemaParser.getTypeDefinitions()); + return schemaInfo.getTargetNamespaceURI(); } - const char* XSDHelperImpl::defineFile(const SDOString& schema, bool loadImportNamespace) + + const char* XSDHelperImpl::defineFile(const SDOString& schema) { - return defineFile(schema.c_str(), loadImportNamespace); + return defineFile(schema.c_str()); } - const char* XSDHelperImpl::define(std::istream& schema, bool loadImportNamespace) + const char* XSDHelperImpl::define(std::istream& schema) { - SDOSchemaSAX2Parser schemaParser(schemaInfo, this, loadImportNamespace); + SDOSchemaSAX2Parser schemaParser(schemaInfo, this, parsedLocations, definedNamespaces); clearErrors(); schema >> schemaParser; defineTypes(schemaParser.getTypeDefinitions()); return schemaInfo.getTargetNamespaceURI(); } - const char* XSDHelperImpl::define(const char* schema, bool loadImportNamespace) + const char* XSDHelperImpl::define(const char* schema) { std::istringstream str(schema); - SDOSchemaSAX2Parser schemaParser(schemaInfo, this, loadImportNamespace); + SDOSchemaSAX2Parser schemaParser(schemaInfo, this, parsedLocations, definedNamespaces); clearErrors(); str >> schemaParser; defineTypes(schemaParser.getTypeDefinitions()); return schemaInfo.getTargetNamespaceURI(); return define(str); } - const char* XSDHelperImpl::define(const SDOString& schema, bool loadImportNamespace) + const char* XSDHelperImpl::define(const SDOString& schema) { std::istringstream str(schema); - SDOSchemaSAX2Parser schemaParser(schemaInfo, this, loadImportNamespace); + SDOSchemaSAX2Parser schemaParser(schemaInfo, this, parsedLocations, definedNamespaces); clearErrors(); str >> schemaParser; defineTypes(schemaParser.getTypeDefinitions()); http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/TypeDefinition.h?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/TypeDefinition.h diff -u pecl/sdo/commonj/sdo/TypeDefinition.h:1.9 pecl/sdo/commonj/sdo/TypeDefinition.h:1.10 --- pecl/sdo/commonj/sdo/TypeDefinition.h:1.9 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/TypeDefinition.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _TYPEDefinition_H_ #define _TYPEDefinition_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SAX2Attributes.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SAX2Attributes.h diff -u pecl/sdo/commonj/sdo/SAX2Attributes.h:1.7 pecl/sdo/commonj/sdo/SAX2Attributes.h:1.8 --- pecl/sdo/commonj/sdo/SAX2Attributes.h:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SAX2Attributes.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _SAX2ATTRIBUTES_H_ #define _SAX2ATTRIBUTES_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DASType.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/DASType.cpp diff -u pecl/sdo/commonj/sdo/DASType.cpp:1.8 pecl/sdo/commonj/sdo/DASType.cpp:1.9 --- pecl/sdo/commonj/sdo/DASType.cpp:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/DASType.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/DASType.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/TypeImpl.h?r1=1.11&r2=1.12&diff_format=u Index: pecl/sdo/commonj/sdo/TypeImpl.h diff -u pecl/sdo/commonj/sdo/TypeImpl.h:1.11 pecl/sdo/commonj/sdo/TypeImpl.h:1.12 --- pecl/sdo/commonj/sdo/TypeImpl.h:1.11 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/TypeImpl.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 546667 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 546667 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _TYPEIMPL_H_ #define _TYPEIMPL_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataFactory.cpp?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/DataFactory.cpp diff -u pecl/sdo/commonj/sdo/DataFactory.cpp:1.9 pecl/sdo/commonj/sdo/DataFactory.cpp:1.10 --- pecl/sdo/commonj/sdo/DataFactory.cpp:1.9 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DataFactory.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/DataFactory.h" #include "commonj/sdo/DataFactoryImpl.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/GroupEvent.h?r1=1.5&r2=1.6&diff_format=u Index: pecl/sdo/commonj/sdo/GroupEvent.h diff -u pecl/sdo/commonj/sdo/GroupEvent.h:1.5 pecl/sdo/commonj/sdo/GroupEvent.h:1.6 --- pecl/sdo/commonj/sdo/GroupEvent.h:1.5 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/GroupEvent.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _GROUPEVENT_H_ #define _GROUPEVENT_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/HelperProvider.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/HelperProvider.cpp diff -u pecl/sdo/commonj/sdo/HelperProvider.cpp:1.7 pecl/sdo/commonj/sdo/HelperProvider.cpp:1.8 --- pecl/sdo/commonj/sdo/HelperProvider.cpp:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/HelperProvider.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/HelperProvider.h" #include "commonj/sdo/XSDHelperImpl.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/GroupDefinition.cpp?r1=1.5&r2=1.6&diff_format=u Index: pecl/sdo/commonj/sdo/GroupDefinition.cpp diff -u pecl/sdo/commonj/sdo/GroupDefinition.cpp:1.5 pecl/sdo/commonj/sdo/GroupDefinition.cpp:1.6 --- pecl/sdo/commonj/sdo/GroupDefinition.cpp:1.5 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/GroupDefinition.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/GroupDefinition.h" namespace commonj http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XSDTypeInfo.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/XSDTypeInfo.h diff -u pecl/sdo/commonj/sdo/XSDTypeInfo.h:1.7 pecl/sdo/commonj/sdo/XSDTypeInfo.h:1.8 --- pecl/sdo/commonj/sdo/XSDTypeInfo.h:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/XSDTypeInfo.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _XSDTypeInfo_H_ #define _XSDTypeInfo_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/LogWriter.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/LogWriter.cpp diff -u pecl/sdo/commonj/sdo/LogWriter.cpp:1.7 pecl/sdo/commonj/sdo/LogWriter.cpp:1.8 --- pecl/sdo/commonj/sdo/LogWriter.cpp:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/LogWriter.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/LogWriter.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOSPI.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SDOSPI.h diff -u pecl/sdo/commonj/sdo/SDOSPI.h:1.7 pecl/sdo/commonj/sdo/SDOSPI.h:1.8 --- pecl/sdo/commonj/sdo/SDOSPI.h:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDOSPI.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/DataFactory.h" #include "commonj/sdo/ChangeSummary.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SAX2Attributes.cpp?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/SAX2Attributes.cpp diff -u pecl/sdo/commonj/sdo/SAX2Attributes.cpp:1.9 pecl/sdo/commonj/sdo/SAX2Attributes.cpp:1.10 --- pecl/sdo/commonj/sdo/SAX2Attributes.cpp:1.9 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SAX2Attributes.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 511929 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 511929 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/SAX2Attributes.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DefaultLogWriter.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/DefaultLogWriter.h diff -u pecl/sdo/commonj/sdo/DefaultLogWriter.h:1.8 pecl/sdo/commonj/sdo/DefaultLogWriter.h:1.9 --- pecl/sdo/commonj/sdo/DefaultLogWriter.h:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DefaultLogWriter.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef SDO_DefaultLOGWriter_H #define SDO_DefaultLOGWriter_H http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/RefCountingObject.h?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/RefCountingObject.h diff -u pecl/sdo/commonj/sdo/RefCountingObject.h:1.9 pecl/sdo/commonj/sdo/RefCountingObject.h:1.10 --- pecl/sdo/commonj/sdo/RefCountingObject.h:1.9 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/RefCountingObject.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _REFCOUNTINGOBJECT_H #define _REFCOUNTINGOBJECT_H http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/Type.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/Type.cpp diff -u pecl/sdo/commonj/sdo/Type.cpp:1.7 pecl/sdo/commonj/sdo/Type.cpp:1.8 --- pecl/sdo/commonj/sdo/Type.cpp:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/Type.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/Type.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/PropertyImpl.h?r1=1.10&r2=1.11&diff_format=u Index: pecl/sdo/commonj/sdo/PropertyImpl.h diff -u pecl/sdo/commonj/sdo/PropertyImpl.h:1.10 pecl/sdo/commonj/sdo/PropertyImpl.h:1.11 --- pecl/sdo/commonj/sdo/PropertyImpl.h:1.10 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/PropertyImpl.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 509991 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 509991 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _PROPERTYIMPL_H_ #define _PROPERTYIMPL_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXMLFileWriter.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXMLFileWriter.cpp diff -u pecl/sdo/commonj/sdo/SDOXMLFileWriter.cpp:1.7 pecl/sdo/commonj/sdo/SDOXMLFileWriter.cpp:1.8 --- pecl/sdo/commonj/sdo/SDOXMLFileWriter.cpp:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDOXMLFileWriter.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/SDOXMLFileWriter.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XMLHelper.h?r1=1.11&r2=1.12&diff_format=u Index: pecl/sdo/commonj/sdo/XMLHelper.h diff -u pecl/sdo/commonj/sdo/XMLHelper.h:1.11 pecl/sdo/commonj/sdo/XMLHelper.h:1.12 --- pecl/sdo/commonj/sdo/XMLHelper.h:1.11 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/XMLHelper.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 479634 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 479634 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _XMLHELPER_H_ #define _XMLHELPER_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XSDHelperImpl.h?r1=1.11&r2=1.12&diff_format=u Index: pecl/sdo/commonj/sdo/XSDHelperImpl.h diff -u pecl/sdo/commonj/sdo/XSDHelperImpl.h:1.11 pecl/sdo/commonj/sdo/XSDHelperImpl.h:1.12 --- pecl/sdo/commonj/sdo/XSDHelperImpl.h:1.11 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/XSDHelperImpl.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 524004 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 549789 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _XSDHELPERIMPL_H_ #define _XSDHELPERIMPL_H_ @@ -31,6 +31,7 @@ #include "commonj/sdo/SchemaInfo.h" #include "commonj/sdo/TypeDefinitionsImpl.h" #include "commonj/sdo/ParserErrorSetter.h" +#include "commonj/sdo/SDOSchemaSAX2Parser.h" namespace commonj { @@ -64,11 +65,11 @@ * The return value is the URI of the root Type * */ - virtual const char* defineFile(const char* schemaFile, bool loadImportNamespace = false); - virtual const char* defineFile(const SDOString& schemaFile, bool loadImportNamespace = false); - virtual const char* define(std::istream& schema, bool loadImportNamespace = false); - virtual const char* define(const char* schema, bool loadImportNamespace = false); - virtual const char* define(const SDOString& schema, bool loadImportNamespace = false); + virtual const char* defineFile(const char* schemaFile); + virtual const char* defineFile(const SDOString& schemaFile); + virtual const char* define(std::istream& schema); + virtual const char* define(const char* schema); + virtual const char* define(const SDOString& schema); /** getErrorCount gets number of parse errors * @@ -159,7 +160,10 @@ std::vector<char*> parseErrors; - TypeDefinitions definedTypes; + TypeDefinitions definedTypes; + SDOSchemaSAX2Parser::PARSED_LOCATIONS parsedLocations; + + SDOSchemaSAX2Parser::DEFINED_NAMESPACES definedNamespaces; }; } // End - namespace sdo http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDORuntimeException.cpp?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/SDORuntimeException.cpp diff -u pecl/sdo/commonj/sdo/SDORuntimeException.cpp:1.9 pecl/sdo/commonj/sdo/SDORuntimeException.cpp:1.10 --- pecl/sdo/commonj/sdo/SDORuntimeException.cpp:1.9 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDORuntimeException.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 509544 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 509544 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/SDORuntimeException.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataFactoryImpl.cpp?r1=1.18&r2=1.19&diff_format=u Index: pecl/sdo/commonj/sdo/DataFactoryImpl.cpp diff -u pecl/sdo/commonj/sdo/DataFactoryImpl.cpp:1.18 pecl/sdo/commonj/sdo/DataFactoryImpl.cpp:1.19 --- pecl/sdo/commonj/sdo/DataFactoryImpl.cpp:1.18 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DataFactoryImpl.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 510951 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 547318 $ $Date: 2007/08/24 15:20:20 $ */ ////////////////////////////////////////////////////////////////////// // DataFactoryImpl.cpp: implementation of the DataFactory class. @@ -75,10 +75,6 @@ // abstract addType(Type::SDOTypeNamespaceURI,"ChangeSummary"); - rootElementName.erase(); - - - } // =================================================================== @@ -97,24 +93,6 @@ delete typeIter->second; } } - - rootElementName.erase(); - -} - -// =================================================================== -// get the root element name -// =================================================================== -// const char* DataFactoryImpl::getRootElementName() const -const SDOString& DataFactoryImpl::getRootElementName() const -{ - return rootElementName; -} - - -void DataFactoryImpl::setRootElementName(const SDOString& ren) -{ - rootElementName = ren; } // =================================================================== @@ -123,7 +101,6 @@ DataFactoryImpl::DataFactoryImpl(const DataFactoryImpl& inmdg) { isResolved = false; - setRootElementName(inmdg.getRootElementName()); copyTypes(inmdg); } @@ -135,7 +112,6 @@ if (this != &inmdg) { copyTypes(inmdg); - setRootElementName(inmdg.getRootElementName()); } return *this; } http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SdoRuntime.cpp?r1=1.10&r2=1.11&diff_format=u Index: pecl/sdo/commonj/sdo/SdoRuntime.cpp diff -u pecl/sdo/commonj/sdo/SdoRuntime.cpp:1.10 pecl/sdo/commonj/sdo/SdoRuntime.cpp:1.11 --- pecl/sdo/commonj/sdo/SdoRuntime.cpp:1.10 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SdoRuntime.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/SdoRuntime.h" #include <iostream> http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/PropertySetting.cpp?r1=1.10&r2=1.11&diff_format=u Index: pecl/sdo/commonj/sdo/PropertySetting.cpp diff -u pecl/sdo/commonj/sdo/PropertySetting.cpp:1.10 pecl/sdo/commonj/sdo/PropertySetting.cpp:1.11 --- pecl/sdo/commonj/sdo/PropertySetting.cpp:1.10 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/PropertySetting.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 482588 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 482588 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/PropertySetting.h" #include "SDOString.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XSDPropertyInfo.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/XSDPropertyInfo.h diff -u pecl/sdo/commonj/sdo/XSDPropertyInfo.h:1.8 pecl/sdo/commonj/sdo/XSDPropertyInfo.h:1.9 --- pecl/sdo/commonj/sdo/XSDPropertyInfo.h:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/XSDPropertyInfo.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _XSDPropertyInfo_H_ #define _XSDPropertyInfo_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/TypeDefinitionImpl.cpp?r1=1.5&r2=1.6&diff_format=u Index: pecl/sdo/commonj/sdo/TypeDefinitionImpl.cpp diff -u pecl/sdo/commonj/sdo/TypeDefinitionImpl.cpp:1.5 pecl/sdo/commonj/sdo/TypeDefinitionImpl.cpp:1.6 --- pecl/sdo/commonj/sdo/TypeDefinitionImpl.cpp:1.5 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/TypeDefinitionImpl.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/TypeDefinitionImpl.h" namespace commonj http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXMLStreamWriter.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXMLStreamWriter.cpp diff -u pecl/sdo/commonj/sdo/SDOXMLStreamWriter.cpp:1.8 pecl/sdo/commonj/sdo/SDOXMLStreamWriter.cpp:1.9 --- pecl/sdo/commonj/sdo/SDOXMLStreamWriter.cpp:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDOXMLStreamWriter.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/SDOXMLStreamWriter.h" #include <sstream> http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XMLDocumentImpl.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/XMLDocumentImpl.h diff -u pecl/sdo/commonj/sdo/XMLDocumentImpl.h:1.7 pecl/sdo/commonj/sdo/XMLDocumentImpl.h:1.8 --- pecl/sdo/commonj/sdo/XMLDocumentImpl.h:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/XMLDocumentImpl.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _XMLDocumentImpl_H_ #define _XMLDocumentImpl_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDODate.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/SDODate.cpp diff -u pecl/sdo/commonj/sdo/SDODate.cpp:1.8 pecl/sdo/commonj/sdo/SDODate.cpp:1.9 --- pecl/sdo/commonj/sdo/SDODate.cpp:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDODate.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 495235 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 495235 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/SDODate.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/TypeDefinition.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/TypeDefinition.cpp diff -u pecl/sdo/commonj/sdo/TypeDefinition.cpp:1.7 pecl/sdo/commonj/sdo/TypeDefinition.cpp:1.8 --- pecl/sdo/commonj/sdo/TypeDefinition.cpp:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/TypeDefinition.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/TypeDefinition.h" #include "commonj/sdo/TypeDefinitionImpl.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/ChangedDataObjectListImpl.h?r1=1.10&r2=1.11&diff_format=u Index: pecl/sdo/commonj/sdo/ChangedDataObjectListImpl.h diff -u pecl/sdo/commonj/sdo/ChangedDataObjectListImpl.h:1.10 pecl/sdo/commonj/sdo/ChangedDataObjectListImpl.h:1.11 --- pecl/sdo/commonj/sdo/ChangedDataObjectListImpl.h:1.10 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/ChangedDataObjectListImpl.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 479634 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 479634 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _ChangedDataObjectListImplIMPL_H_ #define _ChangedDataObjectListImplIMPL_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SettingList.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/SettingList.cpp diff -u pecl/sdo/commonj/sdo/SettingList.cpp:1.8 pecl/sdo/commonj/sdo/SettingList.cpp:1.9 --- pecl/sdo/commonj/sdo/SettingList.cpp:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SettingList.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 511929 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 511929 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/SDORuntimeException.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XMLHelper.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/XMLHelper.cpp diff -u pecl/sdo/commonj/sdo/XMLHelper.cpp:1.7 pecl/sdo/commonj/sdo/XMLHelper.cpp:1.8 --- pecl/sdo/commonj/sdo/XMLHelper.cpp:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/XMLHelper.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/XMLHelper.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOSchemaSAX2Parser.h?r1=1.10&r2=1.11&diff_format=u Index: pecl/sdo/commonj/sdo/SDOSchemaSAX2Parser.h diff -u pecl/sdo/commonj/sdo/SDOSchemaSAX2Parser.h:1.10 pecl/sdo/commonj/sdo/SDOSchemaSAX2Parser.h:1.11 --- pecl/sdo/commonj/sdo/SDOSchemaSAX2Parser.h:1.10 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SDOSchemaSAX2Parser.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 492097 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 549789 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _SDOSCHEMASAX2PARSER_H_ #define _SDOSCHEMASAX2PARSER_H_ @@ -37,8 +37,6 @@ namespace sdo { - - /** * SDOSAX2Parser implements SAX2Parser. * This class gets called back by the libxml library, and @@ -49,10 +47,13 @@ { public: + typedef std::map<SDOXMLString, SDOXMLString> PARSED_LOCATIONS; + typedef std::vector<SDOXMLString> DEFINED_NAMESPACES; SDOSchemaSAX2Parser(SchemaInfo& schemaInfo, ParserErrorSetter* insetter, - bool loadImportNamespace = false); + PARSED_LOCATIONS& parsedLocations, + DEFINED_NAMESPACES& definedNamepaces); virtual ~SDOSchemaSAX2Parser(); @@ -73,7 +74,6 @@ virtual void stream(std::istream& input); virtual int parse(const char* filename); - virtual void endDocument(); @@ -84,7 +84,8 @@ friend std::istream& operator>>(std::istream& input, SDOSchemaSAX2Parser& parser); friend std::istringstream& operator>>(std::istringstream& input, SDOSchemaSAX2Parser& parser); - void free(xmlChar* absoluteUri); + + int parseURI(const SDOXMLString& location, const SDOXMLString& base); private: @@ -223,8 +224,9 @@ TypeDefinitionsImpl typeDefinitions; - bool loadImportNamespace; - + PARSED_LOCATIONS& parsedLocations; + DEFINED_NAMESPACES& definedNamespaces; + }; http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/PropertyDefinitionImpl.cpp?r1=1.5&r2=1.6&diff_format=u Index: pecl/sdo/commonj/sdo/PropertyDefinitionImpl.cpp diff -u pecl/sdo/commonj/sdo/PropertyDefinitionImpl.cpp:1.5 pecl/sdo/commonj/sdo/PropertyDefinitionImpl.cpp:1.6 --- pecl/sdo/commonj/sdo/PropertyDefinitionImpl.cpp:1.5 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/PropertyDefinitionImpl.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/PropertyDefinitionImpl.h" namespace commonj http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXMLString.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXMLString.h diff -u pecl/sdo/commonj/sdo/SDOXMLString.h:1.7 pecl/sdo/commonj/sdo/SDOXMLString.h:1.8 --- pecl/sdo/commonj/sdo/SDOXMLString.h:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SDOXMLString.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/disable_warn.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SequenceImpl.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/SequenceImpl.h diff -u pecl/sdo/commonj/sdo/SequenceImpl.h:1.8 pecl/sdo/commonj/sdo/SequenceImpl.h:1.9 --- pecl/sdo/commonj/sdo/SequenceImpl.h:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SequenceImpl.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 517787 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 517787 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _SEQUENCEIMPL_H_ #define _SEQUENCEIMPL_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataObjectListImpl.h?r1=1.13&r2=1.14&diff_format=u Index: pecl/sdo/commonj/sdo/DataObjectListImpl.h diff -u pecl/sdo/commonj/sdo/DataObjectListImpl.h:1.13 pecl/sdo/commonj/sdo/DataObjectListImpl.h:1.14 --- pecl/sdo/commonj/sdo/DataObjectListImpl.h:1.13 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/DataObjectListImpl.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 502599 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 502599 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _DATAOBJECTLISTIMPL_H_ #define _DATAOBJECTLISTIMPL_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataObject.h?r1=1.11&r2=1.12&diff_format=u Index: pecl/sdo/commonj/sdo/DataObject.h diff -u pecl/sdo/commonj/sdo/DataObject.h:1.11 pecl/sdo/commonj/sdo/DataObject.h:1.12 --- pecl/sdo/commonj/sdo/DataObject.h:1.11 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/DataObject.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 506932 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 506932 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _DATAOBJECT_H_ #define _DATAOBJECT_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XMLHelperImpl.h?r1=1.11&r2=1.12&diff_format=u Index: pecl/sdo/commonj/sdo/XMLHelperImpl.h diff -u pecl/sdo/commonj/sdo/XMLHelperImpl.h:1.11 pecl/sdo/commonj/sdo/XMLHelperImpl.h:1.12 --- pecl/sdo/commonj/sdo/XMLHelperImpl.h:1.11 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/XMLHelperImpl.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 479634 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 547318 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _XMLHELPERIMPL_H_ #define _XMLHELPERIMPL_H_ @@ -172,12 +172,8 @@ DataFactoryPtr dataFactory; SDOXMLString targetNamespaceURI; - XMLDocumentPtr createDocument(DataObjectPtr dataObject); - -// const TypeImpl* findRoot(DataFactory* df, -// const char* rootElementURI); - const TypeImpl* findRoot(DataFactory* df, - const SDOString& rootElementURI); + const TypeImpl* findRoot(DataFactory* df, + const SDOString& rootElementURI); DataFactoryPtr getDataFactory(); }; http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/GroupEvent.cpp?r1=1.5&r2=1.6&diff_format=u Index: pecl/sdo/commonj/sdo/GroupEvent.cpp diff -u pecl/sdo/commonj/sdo/GroupEvent.cpp:1.5 pecl/sdo/commonj/sdo/GroupEvent.cpp:1.6 --- pecl/sdo/commonj/sdo/GroupEvent.cpp:1.5 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/GroupEvent.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/GroupEvent.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/PropertySetting.h?r1=1.10&r2=1.11&diff_format=u Index: pecl/sdo/commonj/sdo/PropertySetting.h diff -u pecl/sdo/commonj/sdo/PropertySetting.h:1.10 pecl/sdo/commonj/sdo/PropertySetting.h:1.11 --- pecl/sdo/commonj/sdo/PropertySetting.h:1.10 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/PropertySetting.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 482588 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 482588 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _PROPERTYSETTING_H_ #define _PROPERTYSETTING_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DASValues.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/DASValues.h diff -u pecl/sdo/commonj/sdo/DASValues.h:1.8 pecl/sdo/commonj/sdo/DASValues.h:1.9 --- pecl/sdo/commonj/sdo/DASValues.h:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/DASValues.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _SDO_DASValues_H_ #define _SDO_DASValues_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataObjectList.h?r1=1.12&r2=1.13&diff_format=u Index: pecl/sdo/commonj/sdo/DataObjectList.h diff -u pecl/sdo/commonj/sdo/DataObjectList.h:1.12 pecl/sdo/commonj/sdo/DataObjectList.h:1.13 --- pecl/sdo/commonj/sdo/DataObjectList.h:1.12 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/DataObjectList.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 502599 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 502599 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _DATAOBJECTLIST_H_ #define _DATAOBJECTLIST_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/TypeList.h?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/TypeList.h diff -u pecl/sdo/commonj/sdo/TypeList.h:1.9 pecl/sdo/commonj/sdo/TypeList.h:1.10 --- pecl/sdo/commonj/sdo/TypeList.h:1.9 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/TypeList.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 479634 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 479634 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _TYPELIST_H_ #define _TYPELIST_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataGraphImpl.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/DataGraphImpl.h diff -u pecl/sdo/commonj/sdo/DataGraphImpl.h:1.8 pecl/sdo/commonj/sdo/DataGraphImpl.h:1.9 --- pecl/sdo/commonj/sdo/DataGraphImpl.h:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/DataGraphImpl.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _DATAGRAPHIMPL_H_ #define _DATAGRAPHIMPL_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/GroupDefinition.h?r1=1.5&r2=1.6&diff_format=u Index: pecl/sdo/commonj/sdo/GroupDefinition.h diff -u pecl/sdo/commonj/sdo/GroupDefinition.h:1.5 pecl/sdo/commonj/sdo/GroupDefinition.h:1.6 --- pecl/sdo/commonj/sdo/GroupDefinition.h:1.5 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/GroupDefinition.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _GROUPDEFINITION_H_ #define _GROUPDEFINITION_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataObject.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/DataObject.cpp diff -u pecl/sdo/commonj/sdo/DataObject.cpp:1.8 pecl/sdo/commonj/sdo/DataObject.cpp:1.9 --- pecl/sdo/commonj/sdo/DataObject.cpp:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/DataObject.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/DataObject.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/Logging.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/Logging.h diff -u pecl/sdo/commonj/sdo/Logging.h:1.8 pecl/sdo/commonj/sdo/Logging.h:1.9 --- pecl/sdo/commonj/sdo/Logging.h:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/Logging.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/Logger.h" #include "commonj/sdo/SDORuntimeException.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOSAX2Parser.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/SDOSAX2Parser.h diff -u pecl/sdo/commonj/sdo/SDOSAX2Parser.h:1.8 pecl/sdo/commonj/sdo/SDOSAX2Parser.h:1.9 --- pecl/sdo/commonj/sdo/SDOSAX2Parser.h:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SDOSAX2Parser.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 547318 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _SDOSAX2PARSER_H_ #define _SDOSAX2PARSER_H_ @@ -106,9 +106,16 @@ friend std::istream& operator>>(std::istream& input, SDOSAX2Parser& parser); friend std::istringstream& operator>>(std::istringstream& input, SDOSAX2Parser& parser); + void setRootElementName(const SDOXMLString& name); + const SDOXMLString& getRootElementName() const {return rootElementName;} + void setRootElementURI(const SDOXMLString& uri); + const SDOXMLString& getRootElementURI() const {return rootElementURI;} + private: SDOXMLString targetNamespaceURI; + SDOXMLString rootElementName; + SDOXMLString rootElementURI; DataFactoryPtr dataFactory; DataObjectPtr& rootDataObject; http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/HelperProvider.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/HelperProvider.h diff -u pecl/sdo/commonj/sdo/HelperProvider.h:1.7 pecl/sdo/commonj/sdo/HelperProvider.h:1.8 --- pecl/sdo/commonj/sdo/HelperProvider.h:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/HelperProvider.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 453262 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 453262 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _HELPERPROVIDER_H_ #define _HELPERPROVIDER_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/RefCountingPointer.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/RefCountingPointer.h diff -u pecl/sdo/commonj/sdo/RefCountingPointer.h:1.8 pecl/sdo/commonj/sdo/RefCountingPointer.h:1.9 --- pecl/sdo/commonj/sdo/RefCountingPointer.h:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/RefCountingPointer.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _REFCOUNTINGPOINTER_H #define _REFCOUNTINGPOINTER_H http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXSDStreamWriter.h?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXSDStreamWriter.h diff -u pecl/sdo/commonj/sdo/SDOXSDStreamWriter.h:1.9 pecl/sdo/commonj/sdo/SDOXSDStreamWriter.h:1.10 --- pecl/sdo/commonj/sdo/SDOXSDStreamWriter.h:1.9 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SDOXSDStreamWriter.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _SDOXSDSTREAMWRITER_H_ #define _SDOXSDSTREAMWRITER_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/ParserErrorSetter.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/ParserErrorSetter.cpp diff -u pecl/sdo/commonj/sdo/ParserErrorSetter.cpp:1.7 pecl/sdo/commonj/sdo/ParserErrorSetter.cpp:1.8 --- pecl/sdo/commonj/sdo/ParserErrorSetter.cpp:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/ParserErrorSetter.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ // ParserErrorSetter.cpp: class allowing parser to push errors back. // http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/ChangedDataObjectListImpl.cpp?r1=1.10&r2=1.11&diff_format=u Index: pecl/sdo/commonj/sdo/ChangedDataObjectListImpl.cpp diff -u pecl/sdo/commonj/sdo/ChangedDataObjectListImpl.cpp:1.10 pecl/sdo/commonj/sdo/ChangedDataObjectListImpl.cpp:1.11 --- pecl/sdo/commonj/sdo/ChangedDataObjectListImpl.cpp:1.10 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/ChangedDataObjectListImpl.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 511929 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 511929 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/ChangedDataObjectListImpl.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/ChangedDataObjectList.h?r1=1.10&r2=1.11&diff_format=u Index: pecl/sdo/commonj/sdo/ChangedDataObjectList.h diff -u pecl/sdo/commonj/sdo/ChangedDataObjectList.h:1.10 pecl/sdo/commonj/sdo/ChangedDataObjectList.h:1.11 --- pecl/sdo/commonj/sdo/ChangedDataObjectList.h:1.10 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/ChangedDataObjectList.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 479634 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 479634 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _CHANGEDDATAOBJECTLIST_H_ #define _CHANGEDDATAOBJECTLIST_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOSAX2Parser.cpp?r1=1.12&r2=1.13&diff_format=u Index: pecl/sdo/commonj/sdo/SDOSAX2Parser.cpp diff -u pecl/sdo/commonj/sdo/SDOSAX2Parser.cpp:1.12 pecl/sdo/commonj/sdo/SDOSAX2Parser.cpp:1.13 --- pecl/sdo/commonj/sdo/SDOSAX2Parser.cpp:1.12 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDOSAX2Parser.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 511929 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 547318 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/SDOSAX2Parser.h" @@ -56,7 +56,9 @@ ignoreEvents(false), dealingWithChangeSummary(false), csbuilder(0), - SAX2Parser(insetter) + SAX2Parser(insetter), + rootElementName(""), + rootElementURI("") { @@ -82,9 +84,20 @@ changeSummary = false; IDMap.empty(); IDRefs.empty(); + rootElementURI = ""; + rootElementName = ""; } - + void SDOSAX2Parser::setRootElementName(const SDOXMLString& name) + { + rootElementName = name; + } + + void SDOSAX2Parser::setRootElementURI(const SDOXMLString& uri) + { + rootElementURI = uri; + } + void SDOSAX2Parser::startDocument() { LOGINFO(INFO,"SDOSAX2Parser: startDocument"); @@ -815,19 +828,31 @@ if (!targetNamespaceURI.isNull() && !targetNamespaceURI.equals("")) { tns = targetNamespaceURI; + rootElementURI = tns; + } + else + { + rootElementURI = URI; } // Check for localname as a property of the RootType // if we do not already know the type if (typeName.isNull()) { - const Type& rootType = dataFactory->getType(tns, "RootType"); - propertyName = getSDOName(rootType, localname); - const Type& newType = - ((TypeImpl&)(rootType)).getRealPropertyType(propertyName); + try { + const Type& rootType = dataFactory->getType(tns, "RootType"); + propertyName = getSDOName(rootType, localname); + const Type& newType = + ((TypeImpl&)(rootType)).getRealPropertyType(propertyName); - typeURI = newType.getURI(); - typeName = newType.getName(); + typeURI = newType.getURI(); + typeName = newType.getName(); + } + catch (const SDOTypeNotFoundException&) + { + typeURI = Type::SDOTypeNamespaceURI.c_str(); + typeName = "OpenDataObject"; + } } // Create the root DataObject @@ -840,7 +865,7 @@ else { DataFactory* df = dataFactory; - ((DataFactoryImpl*)df)->setRootElementName((const char*)localname); + rootElementName = localname; } // NOTE: always creating DO doesn't cater for DataType as top element http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/PropertyDefinition.h?r1=1.10&r2=1.11&diff_format=u Index: pecl/sdo/commonj/sdo/PropertyDefinition.h diff -u pecl/sdo/commonj/sdo/PropertyDefinition.h:1.10 pecl/sdo/commonj/sdo/PropertyDefinition.h:1.11 --- pecl/sdo/commonj/sdo/PropertyDefinition.h:1.10 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/PropertyDefinition.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 479634 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 479634 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _PROPERTYDefinition_H_ #define _PROPERTYDefinition_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataObjectImpl.h?r1=1.17&r2=1.18&diff_format=u Index: pecl/sdo/commonj/sdo/DataObjectImpl.h diff -u pecl/sdo/commonj/sdo/DataObjectImpl.h:1.17 pecl/sdo/commonj/sdo/DataObjectImpl.h:1.18 --- pecl/sdo/commonj/sdo/DataObjectImpl.h:1.17 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DataObjectImpl.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 527087 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 527087 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _DATAOBJECTIMPL_H_ #define _DATAOBJECTIMPL_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DASProperty.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/DASProperty.cpp diff -u pecl/sdo/commonj/sdo/DASProperty.cpp:1.8 pecl/sdo/commonj/sdo/DASProperty.cpp:1.9 --- pecl/sdo/commonj/sdo/DASProperty.cpp:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DASProperty.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/DASProperty.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/Property.h?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/Property.h diff -u pecl/sdo/commonj/sdo/Property.h:1.9 pecl/sdo/commonj/sdo/Property.h:1.10 --- pecl/sdo/commonj/sdo/Property.h:1.9 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/Property.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _PROPERTY_H_ #define _PROPERTY_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/PropertyDefinition.cpp?r1=1.10&r2=1.11&diff_format=u Index: pecl/sdo/commonj/sdo/PropertyDefinition.cpp diff -u pecl/sdo/commonj/sdo/PropertyDefinition.cpp:1.10 pecl/sdo/commonj/sdo/PropertyDefinition.cpp:1.11 --- pecl/sdo/commonj/sdo/PropertyDefinition.cpp:1.10 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/PropertyDefinition.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 479634 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 479634 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/PropertyDefinition.h" #include "commonj/sdo/PropertyDefinitionImpl.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/EqualityHelper.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/EqualityHelper.h diff -u pecl/sdo/commonj/sdo/EqualityHelper.h:1.8 pecl/sdo/commonj/sdo/EqualityHelper.h:1.9 --- pecl/sdo/commonj/sdo/EqualityHelper.h:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/EqualityHelper.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _EQUALITYHELPER_H_ #define _EQUALITYHELPER_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SAX2Namespaces.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/SAX2Namespaces.h diff -u pecl/sdo/commonj/sdo/SAX2Namespaces.h:1.8 pecl/sdo/commonj/sdo/SAX2Namespaces.h:1.9 --- pecl/sdo/commonj/sdo/SAX2Namespaces.h:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SAX2Namespaces.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _SAX2NAMESPACES_H_ #define _SAX2NAMESPACES_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXMLStreamWriter.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXMLStreamWriter.h diff -u pecl/sdo/commonj/sdo/SDOXMLStreamWriter.h:1.8 pecl/sdo/commonj/sdo/SDOXMLStreamWriter.h:1.9 --- pecl/sdo/commonj/sdo/SDOXMLStreamWriter.h:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDOXMLStreamWriter.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _SDOXMLSTREAMWRITER_H_ #define _SDOXMLSTREAMWRITER_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataGraphImpl.cpp?r1=1.10&r2=1.11&diff_format=u Index: pecl/sdo/commonj/sdo/DataGraphImpl.cpp diff -u pecl/sdo/commonj/sdo/DataGraphImpl.cpp:1.10 pecl/sdo/commonj/sdo/DataGraphImpl.cpp:1.11 --- pecl/sdo/commonj/sdo/DataGraphImpl.cpp:1.10 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DataGraphImpl.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/DataGraphImpl.h" #include "commonj/sdo/DataObjectImpl.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/TypeImpl.cpp?r1=1.13&r2=1.14&diff_format=u Index: pecl/sdo/commonj/sdo/TypeImpl.cpp diff -u pecl/sdo/commonj/sdo/TypeImpl.cpp:1.13 pecl/sdo/commonj/sdo/TypeImpl.cpp:1.14 --- pecl/sdo/commonj/sdo/TypeImpl.cpp:1.13 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/TypeImpl.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 546667 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 546667 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/Logger.h" @@ -2328,7 +2328,6 @@ unsigned int TypeImpl::convertToBytes(const SDOValue& sdoValue, char* outptr, unsigned int max) const { - unsigned int i; switch (typeEnum) { case BytesType: http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDORuntimeException.h?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/SDORuntimeException.h diff -u pecl/sdo/commonj/sdo/SDORuntimeException.h:1.9 pecl/sdo/commonj/sdo/SDORuntimeException.h:1.10 --- pecl/sdo/commonj/sdo/SDORuntimeException.h:1.9 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDORuntimeException.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #if !defined SDO_EXCEPTIONS_H #define SDO_EXCEPTIONS_H http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataFactory.h?r1=1.12&r2=1.13&diff_format=u Index: pecl/sdo/commonj/sdo/DataFactory.h diff -u pecl/sdo/commonj/sdo/DataFactory.h:1.12 pecl/sdo/commonj/sdo/DataFactory.h:1.13 --- pecl/sdo/commonj/sdo/DataFactory.h:1.12 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DataFactory.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _DATAFACTORY_H_ #define _DATAFACTORY_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DASValue.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/DASValue.cpp diff -u pecl/sdo/commonj/sdo/DASValue.cpp:1.8 pecl/sdo/commonj/sdo/DASValue.cpp:1.9 --- pecl/sdo/commonj/sdo/DASValue.cpp:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DASValue.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/DASValue.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XMLHelperImpl.cpp?r1=1.11&r2=1.12&diff_format=u Index: pecl/sdo/commonj/sdo/XMLHelperImpl.cpp diff -u pecl/sdo/commonj/sdo/XMLHelperImpl.cpp:1.11 pecl/sdo/commonj/sdo/XMLHelperImpl.cpp:1.12 --- pecl/sdo/commonj/sdo/XMLHelperImpl.cpp:1.11 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/XMLHelperImpl.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 509659 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 549872 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/SDOXMLFileWriter.h" // Include first to avoid libxml compile problems! #include "commonj/sdo/SDOXMLStreamWriter.h" // Include first to avoid libxml compile problems! @@ -67,60 +67,7 @@ return dataFactory; } - XMLDocumentPtr XMLHelperImpl::createDocument(DataObjectPtr dataObject) - { - - SDOXMLString rootElementName = ""; - SDOXMLString rootElementURI = ""; - if (dataObject) - { - // Set the root element name to the name of the containment property - // or null if there is no container - try - { - DataObjectPtr cont = dataObject->getContainer(); - if (cont != 0) - { - const Property& containmentProp = dataObject->getContainmentProperty(); - rootElementName = containmentProp.getName(); - rootElementURI = cont->getType().getURI(); - } - else - { - DataFactory* df = dataFactory; - rootElementURI = dataObject->getType().getURI(); - rootElementName = ((DataFactoryImpl*)df)->getRootElementName().c_str(); - } - } - catch (SDOPropertyNotFoundException&) - {} - } - return new XMLDocumentImpl(dataObject, rootElementURI, rootElementName); - } - - -// const TypeImpl* XMLHelperImpl::findRoot(DataFactory* df, -// const char* rootElementURI) -// { -// if (rootElementURI != 0) -// { -// return ((DataFactoryImpl*)df)->findTypeImpl -// (rootElementURI, "RootType"); -// } - -// const TypeList& tl = df->getTypes(); -// for (int i=0;i<tl.size();i++) -// { -// if (!strcmp("RootType",tl[i].getName())) -// { -// return ((DataFactoryImpl*)df)->findTypeImpl(tl[i].getURI(), "RootType"); -// } -// } - -// return 0; - -// } const TypeImpl* XMLHelperImpl::findRoot(DataFactory* df, const SDOString& rootElementURI) { @@ -171,56 +118,6 @@ } } -// XMLDocumentPtr XMLHelperImpl::createDocument(const char* elementname, -// const char* rootElementURI) -// { -// DataFactory* dp = (DataFactory*)getDataFactory(); -// if (dp == 0) return 0; - -// const TypeImpl* rType = findRoot(dp,rootElementURI); -// if (rType == 0) -// { -// std::string msg("createDocument - cannot find element "); -// if (elementname != 0) msg += elementname; -// SDO_THROW_EXCEPTION("createDocument", SDOUnsupportedOperationException, -// msg.c_str()); -// } - -// if ((elementname != 0) && (strlen(elementname) != 0)) -// { -// PropertyImpl* pl = rType->getPropertyImpl(elementname); -// if (pl == 0) -// { -// std::string msg("createDocument - cannot find element "); -// msg += elementname; -// SDO_THROW_EXCEPTION("createDocument", SDOUnsupportedOperationException, -// msg.c_str()); -// } - -// const Type& tp = pl->getType(); -// DataObjectPtr dob = dp->create(tp); -// return new XMLDocumentImpl(dob, -// tp.getURI(), /*tp.getName()*/ elementname); -// } -// else -// { -// const Property& pl = rType->getProperty((unsigned int)0); -// const Type& tp = pl.getType(); -// DataObjectPtr dob = dp->create(tp); -// return new XMLDocumentImpl(dob, -// tp.getURI(), /*tp.getName()*/ pl.getName()); -// } - -// std::string msg("createDocument - unable to find root type in namespace "); -// if (rootElementURI != 0) -// msg += rootElementURI; -// else -// msg += " NULL"; -// SDO_THROW_EXCEPTION("createDocument", SDOUnsupportedOperationException, -// msg.c_str()); -// } - - // +++ XMLDocumentPtr XMLHelperImpl::createDocument(const SDOString& elementname, const SDOString& rootElementURI) @@ -251,7 +148,7 @@ const Type& tp = pl->getType(); DataObjectPtr dob = dp->create(tp); return new XMLDocumentImpl(dob, - tp.getURI(), /*tp.getName()*/ + tp.getURI(), elementname.c_str()); } else @@ -260,7 +157,7 @@ const Type& tp = pl.getType(); DataObjectPtr dob = dp->create(tp); return new XMLDocumentImpl(dob, - tp.getURI(), /*tp.getName()*/ pl.getName()); + tp.getURI(), pl.getName()); } std::string msg("createDocument - unable to find root type in namespace "); @@ -269,14 +166,23 @@ msg.c_str()); } - // --- - XMLDocumentPtr XMLHelperImpl::createDocument( DataObjectPtr dataObject, const char* rootElementURI, const char* rootElementName) { - return new XMLDocumentImpl(dataObject, rootElementURI, rootElementName); + SDOString uri; + SDOString name = rootElementName; + if (0 == rootElementURI) + uri = ""; + else + uri = rootElementURI; + if (0 == rootElementName) + name = ""; + else + name = rootElementName; + + return createDocument(dataObject, uri, name); } XMLDocumentPtr XMLHelperImpl::createDocument( DataObjectPtr dataObject, @@ -292,14 +198,17 @@ { DataObjectPtr rootDataObject; clearErrors(); - SDOSAX2Parser sdoParser(getDataFactory(), targetNamespaceURI, rootDataObject, - this); + SDOSAX2Parser sdoParser(getDataFactory(), + targetNamespaceURI, + rootDataObject, + this); if (sdoParser.parse(xmlFile) == 0) { - return createDocument(rootDataObject); + return createDocument(rootDataObject, (const char*)sdoParser.getRootElementURI(), sdoParser.getRootElementName()); } return 0; } + XMLDocumentPtr XMLHelperImpl::loadFile( const SDOString& xmlFile, const SDOString& targetNamespaceURI) @@ -312,7 +221,7 @@ this); if (sdoParser.parse(xmlFile.c_str()) == 0) { - return createDocument(rootDataObject); + return createDocument(rootDataObject, (const char*)sdoParser.getRootElementURI(), sdoParser.getRootElementName()); } return 0; } @@ -323,12 +232,15 @@ const char* targetNamespaceURI) { DataObjectPtr rootDataObject; - SDOSAX2Parser sdoParser(getDataFactory(), targetNamespaceURI, rootDataObject, - this); + SDOSAX2Parser sdoParser(getDataFactory(), + targetNamespaceURI, + rootDataObject, + this); clearErrors(); inXml>>sdoParser; - return createDocument(rootDataObject); - } + return createDocument(rootDataObject, (const char*)sdoParser.getRootElementURI(), sdoParser.getRootElementName()); + } + XMLDocumentPtr XMLHelperImpl::load( std::istream& inXml, const SDOString& targetNamespaceURI) @@ -340,7 +252,7 @@ this); clearErrors(); inXml>>sdoParser; - return createDocument(rootDataObject); + return createDocument(rootDataObject, (const char*)sdoParser.getRootElementURI(), sdoParser.getRootElementName()); } XMLDocumentPtr XMLHelperImpl::load( http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXSDFileWriter.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXSDFileWriter.cpp diff -u pecl/sdo/commonj/sdo/SDOXSDFileWriter.cpp:1.7 pecl/sdo/commonj/sdo/SDOXSDFileWriter.cpp:1.8 --- pecl/sdo/commonj/sdo/SDOXSDFileWriter.cpp:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDOXSDFileWriter.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/SDOXSDFileWriter.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/ChangeSummary.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/ChangeSummary.h diff -u pecl/sdo/commonj/sdo/ChangeSummary.h:1.8 pecl/sdo/commonj/sdo/ChangeSummary.h:1.9 --- pecl/sdo/commonj/sdo/ChangeSummary.h:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/ChangeSummary.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _CHANGESUMMARY_H_ #define _CHANGESUMMARY_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/PropertyImpl.cpp?r1=1.14&r2=1.15&diff_format=u Index: pecl/sdo/commonj/sdo/PropertyImpl.cpp diff -u pecl/sdo/commonj/sdo/PropertyImpl.cpp:1.14 pecl/sdo/commonj/sdo/PropertyImpl.cpp:1.15 --- pecl/sdo/commonj/sdo/PropertyImpl.cpp:1.14 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/PropertyImpl.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 509991 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 509991 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/export.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DASProperty.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/DASProperty.h diff -u pecl/sdo/commonj/sdo/DASProperty.h:1.8 pecl/sdo/commonj/sdo/DASProperty.h:1.9 --- pecl/sdo/commonj/sdo/DASProperty.h:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DASProperty.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _DASPROPERTY_H_ #define _DASPROPERTY_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XSDHelper.h?r1=1.11&r2=1.12&diff_format=u Index: pecl/sdo/commonj/sdo/XSDHelper.h diff -u pecl/sdo/commonj/sdo/XSDHelper.h:1.11 pecl/sdo/commonj/sdo/XSDHelper.h:1.12 --- pecl/sdo/commonj/sdo/XSDHelper.h:1.11 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/XSDHelper.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 524004 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 549789 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _XSDHELPER_H_ #define _XSDHELPER_H_ @@ -53,11 +53,11 @@ * */ - SDO_API virtual const char* defineFile(const char* schemaFile, bool loadImportNamespace = false) = 0; - SDO_API virtual const char* defineFile(const SDOString& schemaFile, bool loadImportNamespace = false) = 0; - SDO_API virtual const char* define(std::istream& schema, bool loadImportNamespace = false) = 0; - SDO_API virtual const char* define(const char* schema, bool loadImportNamespace = false) = 0; - SDO_API virtual const char* define(const SDOString& schema, bool loadImportNamespace = false) = 0; + SDO_API virtual const char* defineFile(const char* schemaFile) = 0; + SDO_API virtual const char* defineFile(const SDOString& schemaFile) = 0; + SDO_API virtual const char* define(std::istream& schema) = 0; + SDO_API virtual const char* define(const char* schema) = 0; + SDO_API virtual const char* define(const SDOString& schema) = 0; /** generate buildsXSD from types/properties * http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDODate.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SDODate.h diff -u pecl/sdo/commonj/sdo/SDODate.h:1.7 pecl/sdo/commonj/sdo/SDODate.h:1.8 --- pecl/sdo/commonj/sdo/SDODate.h:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDODate.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _SDO_SDODATE_H_ #define _SDO_SDODATE_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataObjectList.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/DataObjectList.cpp diff -u pecl/sdo/commonj/sdo/DataObjectList.cpp:1.8 pecl/sdo/commonj/sdo/DataObjectList.cpp:1.9 --- pecl/sdo/commonj/sdo/DataObjectList.cpp:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DataObjectList.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/DataObjectList.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SdoCheck.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SdoCheck.cpp diff -u pecl/sdo/commonj/sdo/SdoCheck.cpp:1.7 pecl/sdo/commonj/sdo/SdoCheck.cpp:1.8 --- pecl/sdo/commonj/sdo/SdoCheck.cpp:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SdoCheck.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/SdoCheck.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataObjectInstance.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/DataObjectInstance.cpp diff -u pecl/sdo/commonj/sdo/DataObjectInstance.cpp:1.8 pecl/sdo/commonj/sdo/DataObjectInstance.cpp:1.9 --- pecl/sdo/commonj/sdo/DataObjectInstance.cpp:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/DataObjectInstance.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/DataObjectInstance.h" using commonj::sdo::CopyHelper; http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/Setting.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/Setting.cpp diff -u pecl/sdo/commonj/sdo/Setting.cpp:1.8 pecl/sdo/commonj/sdo/Setting.cpp:1.9 --- pecl/sdo/commonj/sdo/Setting.cpp:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/Setting.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 509659 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 509659 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/Setting.h" #include "commonj/sdo/TypeImpl.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXMLWriter.cpp?r1=1.14&r2=1.15&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXMLWriter.cpp diff -u pecl/sdo/commonj/sdo/SDOXMLWriter.cpp:1.14 pecl/sdo/commonj/sdo/SDOXMLWriter.cpp:1.15 --- pecl/sdo/commonj/sdo/SDOXMLWriter.cpp:1.14 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SDOXMLWriter.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 546760 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 568508 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/SDOXMLWriter.h" #include "commonj/sdo/SDOXMLString.h" @@ -131,10 +131,6 @@ // For the root DataObject we need to determine the element name SDOXMLString elementURI = doc->getRootElementURI(); - if (elementURI.isNull() || elementURI.equals("")) - { - elementURI = rootTypeURI; - } SDOXMLString elementName = doc->getRootElementName(); if (elementName.isNull() || elementName.equals("")) { @@ -702,6 +698,15 @@ // First we need to write the startElement if (isRoot) { + // For the root element we will now gather all the namespace information + addNamespace(elementURI, true); + + // We always add the xsi namespace. TODO we should omit if we can + namespaceMap[s_xsiNS] = s_xsi; + + DataObjectImpl* d = (DataObjectImpl*)(DataObject*)dataObject; + addToNamespaces(d); + if (elementURI.equals(s_commonjsdo)) { tnsURI = ""; @@ -710,52 +715,32 @@ { tnsURI = elementURI; } + } + // Write the startElement for non-root object + SDOXMLString theName=elementName; - if (tnsURI.equals("")) { - rc = xmlTextWriterStartElementNS(writer, NULL, elementName, NULL); - } - else + // If an elementURI is specified then the elementForm is "qualified" + if (!elementURI.isNull() + && !elementURI.equals("") + && !elementURI.equals(s_commonjsdo) + //&& !elementURI.equals(tnsURI) + ) + { + // Locate the namespace prefix + std::map<SDOXMLString,SDOXMLString>::iterator it = namespaceMap.find(elementURI); + if (it != namespaceMap.end()) { - rc = xmlTextWriterStartElementNS(writer, NULL, elementName, elementURI); - } - if (rc < 0) { - SDO_THROW_EXCEPTION("writeDO", SDOXMLParserException, "xmlTextWriterStartElementNS failed"); + theName = (*it).second; + theName += ":"; + theName += elementName; } - - // For the root element we will now gather all the namespace information - addNamespace(elementURI, true); - - // We always add the xsi namespace. TODO we should omit if we can - namespaceMap[s_xsiNS] = s_xsi; - - DataObjectImpl* d = (DataObjectImpl*)(DataObject*)dataObject; - addToNamespaces(d); } - else - { - // Write the startElement for non-root object - SDOXMLString theName=elementName; - if (!elementURI.isNull() - && !elementURI.equals("") - && !elementURI.equals(s_commonjsdo) - && !elementURI.equals(tnsURI)) - { - // Locate the namespace prefix - std::map<SDOXMLString,SDOXMLString>::iterator it = namespaceMap.find(elementURI); - if (it != namespaceMap.end()) - { - theName = (*it).second; - theName += ":"; - theName += elementName; - } - } + rc = xmlTextWriterStartElement(writer, theName); + if (rc < 0) { + SDO_THROW_EXCEPTION("writeDO", SDOXMLParserException, "xmlTextWriterStartElement failed"); + } - rc = xmlTextWriterStartElement(writer, theName); - if (rc < 0) { - SDO_THROW_EXCEPTION("writeDO", SDOXMLParserException, "xmlTextWriterStartElement failed"); - } - } // End - startElement is written // ----------------------------- @@ -797,7 +782,7 @@ { SDOXMLString theName=typeName; - if (!typeURI.isNull() && !typeURI.equals(tnsURI) && !typeURI.equals("")) + if (!typeURI.isNull() && !typeURI.equals("")) { std::map<SDOXMLString,SDOXMLString>::iterator it = namespaceMap.find(typeURI); if (it != namespaceMap.end()) @@ -1004,8 +989,25 @@ // many-valued. if (!pi && !seqProp.isMany()) continue; + // Write the startElement for non-root object + SDOXMLString theName=seqPropName; + + if (!seqPropURI.isNull() + && !seqPropURI.equals("") + && !seqPropURI.equals(s_commonjsdo)) + { + // Locate the namespace prefix + std::map<SDOXMLString,SDOXMLString>::iterator it = namespaceMap.find(seqPropURI); + if (it != namespaceMap.end()) + { + theName = (*it).second; + theName += ":"; + theName += seqPropName; + } + } + xmlTextWriterStartElement(writer, theName); + /* Use our wrapper function just in case the element has CDATA in it */ - xmlTextWriterStartElement(writer, seqPropName); writeXMLElement(writer, seqPropName, sequence->getCStringValue(i)); @@ -1142,7 +1144,27 @@ } else { - xmlTextWriterStartElementNS(writer, NULL, propertyName, NULL); + // Write the startElement for non-root object + SDOXMLString theName=propertyName; + + if (!propertyTypeURI.isNull() + && !propertyTypeURI.equals("") + && !propertyTypeURI.equals(s_commonjsdo) + /* && !propertyTypeURI.equals(tnsURI) */) + { + // Locate the namespace prefix + std::map<SDOXMLString,SDOXMLString>::iterator it = namespaceMap.find(propertyTypeURI); + if (it != namespaceMap.end()) + { + theName = (*it).second; + theName += ":"; + theName += propertyName; + } + } + + xmlTextWriterStartElement(writer, theName); + + //xmlTextWriterStartElementNS(writer, NULL, propertyName, NULL); if (dataObject->isNull(pl[i])) { xmlTextWriterWriteAttributeNS(writer, s_xsi, s_nil, NULL, s_true); @@ -1296,6 +1318,8 @@ { bool xsiTypeNeeded = false; + const Type& propertyType = prop.getType(); + // If this is a defined property with property information // we use the uri and name from the definition XSDPropertyInfo* pi = getPropertyInfo(prop); @@ -1310,7 +1334,6 @@ { elementName = prop.getName(); - const Type& propertyType = prop.getType(); SDOXMLString propTypeName = propertyType.getName(); SDOXMLString propTypeURI = propertyType.getURI(); DataObjectImpl* dataObjectImpl = (DataObjectImpl*)(DataObject*)dataObject; @@ -1365,12 +1388,17 @@ else { // The property has been defined programatically so we will - // assume it is the namespace fo the parent DataObject - elementURI = typeImpl.getURI(); + // assume elementForm is "unqualified" + elementURI = ""; } } + if (propertyType.isAbstractType()) + { + xsiTypeNeeded = true; + } + return xsiTypeNeeded; } http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/PropertyList.cpp?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/PropertyList.cpp diff -u pecl/sdo/commonj/sdo/PropertyList.cpp:1.9 pecl/sdo/commonj/sdo/PropertyList.cpp:1.10 --- pecl/sdo/commonj/sdo/PropertyList.cpp:1.9 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/PropertyList.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 511929 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 511929 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef SDO_EXPORTS #define SDO_EXPORTS http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SdoCheck.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SdoCheck.h diff -u pecl/sdo/commonj/sdo/SdoCheck.h:1.7 pecl/sdo/commonj/sdo/SdoCheck.h:1.8 --- pecl/sdo/commonj/sdo/SdoCheck.h:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SdoCheck.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/export.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XMLDocumentImpl.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/XMLDocumentImpl.cpp diff -u pecl/sdo/commonj/sdo/XMLDocumentImpl.cpp:1.7 pecl/sdo/commonj/sdo/XMLDocumentImpl.cpp:1.8 --- pecl/sdo/commonj/sdo/XMLDocumentImpl.cpp:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/XMLDocumentImpl.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/XMLDocumentImpl.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXSDBufferWriter.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXSDBufferWriter.h diff -u pecl/sdo/commonj/sdo/SDOXSDBufferWriter.h:1.7 pecl/sdo/commonj/sdo/SDOXSDBufferWriter.h:1.8 --- pecl/sdo/commonj/sdo/SDOXSDBufferWriter.h:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SDOXSDBufferWriter.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _SDOXSDBUFFERWRITER_H_ #define _SDOXSDBUFFERWRITER_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SchemaInfo.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SchemaInfo.cpp diff -u pecl/sdo/commonj/sdo/SchemaInfo.cpp:1.7 pecl/sdo/commonj/sdo/SchemaInfo.cpp:1.8 --- pecl/sdo/commonj/sdo/SchemaInfo.cpp:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SchemaInfo.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 553836 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/SchemaInfo.h" namespace commonj @@ -26,7 +26,8 @@ { SchemaInfo::SchemaInfo() - : targetNamespaceURI("") + : targetNamespaceURI(""), + elementFormDefaultQualified(false) { } http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOUtils.cpp?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/SDOUtils.cpp diff -u pecl/sdo/commonj/sdo/SDOUtils.cpp:1.9 pecl/sdo/commonj/sdo/SDOUtils.cpp:1.10 --- pecl/sdo/commonj/sdo/SDOUtils.cpp:1.9 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SDOUtils.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 510951 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 510951 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/SDOUtils.h" #include <stdio.h> http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/TypeDefinitionsImpl.h?r1=1.5&r2=1.6&diff_format=u Index: pecl/sdo/commonj/sdo/TypeDefinitionsImpl.h diff -u pecl/sdo/commonj/sdo/TypeDefinitionsImpl.h:1.5 pecl/sdo/commonj/sdo/TypeDefinitionsImpl.h:1.6 --- pecl/sdo/commonj/sdo/TypeDefinitionsImpl.h:1.5 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/TypeDefinitionsImpl.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 524004 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 524004 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _TYPEDefinitionsImpl_H_ #define _TYPEDefinitionsImpl_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/RefCountingPointer.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/RefCountingPointer.cpp diff -u pecl/sdo/commonj/sdo/RefCountingPointer.cpp:1.8 pecl/sdo/commonj/sdo/RefCountingPointer.cpp:1.9 --- pecl/sdo/commonj/sdo/RefCountingPointer.cpp:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/RefCountingPointer.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/RefCountingPointer.h" #include "commonj/sdo/DataFactory.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/ParserErrorSetter.h?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/ParserErrorSetter.h diff -u pecl/sdo/commonj/sdo/ParserErrorSetter.h:1.9 pecl/sdo/commonj/sdo/ParserErrorSetter.h:1.10 --- pecl/sdo/commonj/sdo/ParserErrorSetter.h:1.9 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/ParserErrorSetter.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 492097 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 549789 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _PARSER_ERROR_SETTER_H_ #define _PARSER_ERROR_SETTER_H_ @@ -26,29 +26,9 @@ #include "commonj/sdo/disable_warn.h" -#include <vector> -#include <map> -#include "libxml/xmlstring.h" - namespace commonj{ namespace sdo{ -template<class _Kty> -struct HashCompare -{ - bool operator()(const _Kty& _Keyval1, const _Kty& _Keyval2) const - { - return strcmp((char*)_Keyval1, (char*)_Keyval2) < 0; - } -}; - -class SDOSchemaSAX2Parser; -typedef std::map<xmlChar*, SDOSchemaSAX2Parser*, HashCompare<xmlChar*> > LocationParserMap; -struct ParsedLocations: public LocationParserMap -{ - virtual ~ParsedLocations(); -}; - /** * The ParserErrorSetter builds a list of all the errors which * occurred during a parse, so they can be displayed for the @@ -62,9 +42,8 @@ virtual void setError(const char* message) = 0; virtual void clearErrors() = 0; - SDOSchemaSAX2Parser* parseIfNot(const void* location, bool loadImportNamespace = false, const void* base=0); protected: - ParsedLocations parsedLocations; + }; }; }; http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/ChangeSummaryBuilder.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/ChangeSummaryBuilder.h diff -u pecl/sdo/commonj/sdo/ChangeSummaryBuilder.h:1.8 pecl/sdo/commonj/sdo/ChangeSummaryBuilder.h:1.9 --- pecl/sdo/commonj/sdo/ChangeSummaryBuilder.h:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/ChangeSummaryBuilder.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _CHANGESUMMARYBUILDER_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataFactoryImpl.h?r1=1.14&r2=1.15&diff_format=u Index: pecl/sdo/commonj/sdo/DataFactoryImpl.h diff -u pecl/sdo/commonj/sdo/DataFactoryImpl.h:1.14 pecl/sdo/commonj/sdo/DataFactoryImpl.h:1.15 --- pecl/sdo/commonj/sdo/DataFactoryImpl.h:1.14 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DataFactoryImpl.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 484703 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 547318 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _DataFactoryIMPL_H_ #define _DataFactoryIMPL_H_ @@ -661,8 +661,6 @@ void removeOpenProperty(const SDOString& name); const propertyMap& getOpenProperties(); virtual const TypeImpl& getTypeImpl(const SDOString& uri, const SDOString& inTypeName) const; - virtual const SDOString& getRootElementName() const; - virtual void setRootElementName(const SDOString& ren); virtual bool generateInterface(const char* fileroot, const char* factoryname); virtual bool generateInterface(const SDOString& fileroot, const SDOString& factoryname); @@ -676,8 +674,6 @@ std::vector<DataFactory*> compatibleFactories; - SDOString rootElementName; - propertyMap openProperties; // Need to validate and 'lock' the data model for base types to http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DASValues.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/DASValues.cpp diff -u pecl/sdo/commonj/sdo/DASValues.cpp:1.8 pecl/sdo/commonj/sdo/DASValues.cpp:1.9 --- pecl/sdo/commonj/sdo/DASValues.cpp:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DASValues.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/DASValues.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DefaultLogWriter.cpp?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/DefaultLogWriter.cpp diff -u pecl/sdo/commonj/sdo/DefaultLogWriter.cpp:1.9 pecl/sdo/commonj/sdo/DefaultLogWriter.cpp:1.10 --- pecl/sdo/commonj/sdo/DefaultLogWriter.cpp:1.9 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DefaultLogWriter.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/disable_warn.h" #include "commonj/sdo/DefaultLogWriter.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SAX2Attribute.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SAX2Attribute.h diff -u pecl/sdo/commonj/sdo/SAX2Attribute.h:1.7 pecl/sdo/commonj/sdo/SAX2Attribute.h:1.8 --- pecl/sdo/commonj/sdo/SAX2Attribute.h:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SAX2Attribute.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _SAX2ATTRIBUTE_H_ #define _SAX2ATTRIBUTE_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXMLFileWriter.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXMLFileWriter.h diff -u pecl/sdo/commonj/sdo/SDOXMLFileWriter.h:1.7 pecl/sdo/commonj/sdo/SDOXMLFileWriter.h:1.8 --- pecl/sdo/commonj/sdo/SDOXMLFileWriter.h:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDOXMLFileWriter.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _SDOXMLFILEWRITER_H_ #define _SDOXMLFILEWRITER_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XMLQName.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/XMLQName.cpp diff -u pecl/sdo/commonj/sdo/XMLQName.cpp:1.7 pecl/sdo/commonj/sdo/XMLQName.cpp:1.8 --- pecl/sdo/commonj/sdo/XMLQName.cpp:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/XMLQName.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/XMLQName.h" namespace commonj http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SAX2Attribute.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SAX2Attribute.cpp diff -u pecl/sdo/commonj/sdo/SAX2Attribute.cpp:1.7 pecl/sdo/commonj/sdo/SAX2Attribute.cpp:1.8 --- pecl/sdo/commonj/sdo/SAX2Attribute.cpp:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SAX2Attribute.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/SAX2Attribute.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/TypeList.cpp?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/TypeList.cpp diff -u pecl/sdo/commonj/sdo/TypeList.cpp:1.9 pecl/sdo/commonj/sdo/TypeList.cpp:1.10 --- pecl/sdo/commonj/sdo/TypeList.cpp:1.9 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/TypeList.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 511929 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 511929 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef SDO_EXPORTS #define SDO_EXPORTS http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXMLString.cpp?r1=1.11&r2=1.12&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXMLString.cpp diff -u pecl/sdo/commonj/sdo/SDOXMLString.cpp:1.11 pecl/sdo/commonj/sdo/SDOXMLString.cpp:1.12 --- pecl/sdo/commonj/sdo/SDOXMLString.cpp:1.11 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDOXMLString.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 509659 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 509659 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/SDOXMLString.h" #include <iostream> http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataObjectInstance.h?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/DataObjectInstance.h diff -u pecl/sdo/commonj/sdo/DataObjectInstance.h:1.9 pecl/sdo/commonj/sdo/DataObjectInstance.h:1.10 --- pecl/sdo/commonj/sdo/DataObjectInstance.h:1.9 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DataObjectInstance.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 489558 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 489558 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef commonj_sdo_DataObjectInstance_h #define commonj_sdo_DataObjectInstance_h http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/CopyHelper.h?r1=1.10&r2=1.11&diff_format=u Index: pecl/sdo/commonj/sdo/CopyHelper.h diff -u pecl/sdo/commonj/sdo/CopyHelper.h:1.10 pecl/sdo/commonj/sdo/CopyHelper.h:1.11 --- pecl/sdo/commonj/sdo/CopyHelper.h:1.10 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/CopyHelper.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 483011 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 483011 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _COPYHELPER_H_ #define _COPYHELPER_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXSDBufferWriter.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXSDBufferWriter.cpp diff -u pecl/sdo/commonj/sdo/SDOXSDBufferWriter.cpp:1.7 pecl/sdo/commonj/sdo/SDOXSDBufferWriter.cpp:1.8 --- pecl/sdo/commonj/sdo/SDOXSDBufferWriter.cpp:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDOXSDBufferWriter.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/SDOXSDBufferWriter.h" #include "commonj/sdo/SDORuntimeException.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/ChangeSummary.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/ChangeSummary.cpp diff -u pecl/sdo/commonj/sdo/ChangeSummary.cpp:1.8 pecl/sdo/commonj/sdo/ChangeSummary.cpp:1.9 --- pecl/sdo/commonj/sdo/ChangeSummary.cpp:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/ChangeSummary.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/Logger.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SequenceImpl.cpp?r1=1.12&r2=1.13&diff_format=u Index: pecl/sdo/commonj/sdo/SequenceImpl.cpp diff -u pecl/sdo/commonj/sdo/SequenceImpl.cpp:1.12 pecl/sdo/commonj/sdo/SequenceImpl.cpp:1.13 --- pecl/sdo/commonj/sdo/SequenceImpl.cpp:1.12 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SequenceImpl.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 506932 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 506932 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/disable_warn.h" #include "commonj/sdo/Property.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SchemaInfo.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/SchemaInfo.h diff -u pecl/sdo/commonj/sdo/SchemaInfo.h:1.8 pecl/sdo/commonj/sdo/SchemaInfo.h:1.9 --- pecl/sdo/commonj/sdo/SchemaInfo.h:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SchemaInfo.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 553836 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _SCHEMAINFO_H_ #define _SCHEMAINFO_H_ @@ -49,9 +49,12 @@ SDO_SPI const SDOXMLString& getTargetNamespaceURI() const {return targetNamespaceURI;} SDO_SPI void setTargetNamespaceURI(const SDOXMLString& URI) {targetNamespaceURI = URI;} + SDO_SPI bool isElementFormDefaultQualified() {return elementFormDefaultQualified;} + SDO_SPI void setElementFormDefaultQualified(bool qualified) {elementFormDefaultQualified = qualified;} private: SAX2Namespaces schemaNamespaces; - SDOXMLString targetNamespaceURI; + SDOXMLString targetNamespaceURI; + bool elementFormDefaultQualified; }; } // End - namespace sdo http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/ChangeSummaryBuilder.cpp?r1=1.11&r2=1.12&diff_format=u Index: pecl/sdo/commonj/sdo/ChangeSummaryBuilder.cpp diff -u pecl/sdo/commonj/sdo/ChangeSummaryBuilder.cpp:1.11 pecl/sdo/commonj/sdo/ChangeSummaryBuilder.cpp:1.12 --- pecl/sdo/commonj/sdo/ChangeSummaryBuilder.cpp:1.11 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/ChangeSummaryBuilder.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 511929 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 511929 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/ChangeSummaryBuilder.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/Logger.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/Logger.h diff -u pecl/sdo/commonj/sdo/Logger.h:1.7 pecl/sdo/commonj/sdo/Logger.h:1.8 --- pecl/sdo/commonj/sdo/Logger.h:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/Logger.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 453262 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 453262 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef SDO_LOGGER_H #define SDO_LOGGER_H http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOSchemaSAX2Parser.cpp?r1=1.16&r2=1.17&diff_format=u Index: pecl/sdo/commonj/sdo/SDOSchemaSAX2Parser.cpp diff -u pecl/sdo/commonj/sdo/SDOSchemaSAX2Parser.cpp:1.16 pecl/sdo/commonj/sdo/SDOSchemaSAX2Parser.cpp:1.17 --- pecl/sdo/commonj/sdo/SDOSchemaSAX2Parser.cpp:1.16 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDOSchemaSAX2Parser.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 534152 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 553836 $ $Date: 2007/08/24 15:20:21 $ */ #include "libxml/uri.h" #include "commonj/sdo/SDOSchemaSAX2Parser.h" @@ -41,8 +41,12 @@ SDOSchemaSAX2Parser::SDOSchemaSAX2Parser(SchemaInfo& schemaInf, ParserErrorSetter* insetter, - bool loadImpNamespace) - : schemaInfo(schemaInf), SAX2Parser(insetter), loadImportNamespace(loadImpNamespace) + PARSED_LOCATIONS& parsedLocs, + DEFINED_NAMESPACES& definedNSs) + : schemaInfo(schemaInf), + SAX2Parser(insetter), + parsedLocations(parsedLocs), + definedNamespaces(definedNSs) { bInSchema = false; bInvalidElement = false; @@ -226,13 +230,21 @@ if (attributes[i].getName().equalsIgnoreCase("targetNamespace")) { schemaInfo.setTargetNamespaceURI(attributes[i].getValue()); + } + + if (attributes[i].getName().equalsIgnoreCase("elementFormDefault")) + { + if (attributes[i].getValue().equals("qualified")) + { + schemaInfo.setElementFormDefaultQualified(true); + } } } - currentType.uri = schemaInfo.getTargetNamespaceURI(); currentType.name = "RootType"; currentType.localname="RootType"; + definedNamespaces.push_back(currentType.uri); return; } // end schema handling @@ -532,38 +544,37 @@ } } - - void SDOSchemaSAX2Parser::free(xmlChar* absoluteUri) - { - delete &schemaInfo; - delete this; - xmlFree(absoluteUri); - } - ParsedLocations::~ParsedLocations() - { - for( iterator iter = begin(); iter != end(); iter++ ) - iter->second->free(iter->first); - } - SDOSchemaSAX2Parser* ParserErrorSetter::parseIfNot(const void* location, bool loadImportNamespace, const void* base) + + int SDOSchemaSAX2Parser::parseURI(const SDOXMLString& location, const SDOXMLString& base) { - xmlChar*const absoluteUri = xmlBuildURI((xmlChar*)location, (xmlChar*)base); + xmlChar* absoluteUri = xmlBuildURI(location, base); if (! absoluteUri) - SDO_THROW_EXCEPTION("parseIfNot", SDOFileNotFoundException, (char*)location); - LocationParserMap::iterator iter = parsedLocations.find(absoluteUri); - if (parsedLocations.end() == iter) - { - SDOSchemaSAX2Parser*const schemaParser = new SDOSchemaSAX2Parser(*new SchemaInfo(), this, loadImportNamespace); - try { - if (0 == schemaParser->parse((char*)absoluteUri)) - return parsedLocations[ absoluteUri ] = schemaParser; - } - catch (SDORuntimeException e) - {} - schemaParser->free(absoluteUri); - return 0; + { + SDO_THROW_EXCEPTION("parseURI", SDOFileNotFoundException, location); } + SDOXMLString absUri(absoluteUri); xmlFree(absoluteUri); - return iter->second; + + // Determine if this location has been parsed already + PARSED_LOCATIONS::iterator iter; + iter = parsedLocations.find(absUri); + if (iter != parsedLocations.end()) + { + schemaInfo.setTargetNamespaceURI(iter->second); + return 0; + } + + + try + { + int rc = parse(absUri); + // add new location to map + parsedLocations[absUri] = schemaInfo.getTargetNamespaceURI(); + return rc; + } + catch (SDORuntimeException) {} + + return -1; } // ============================================================================ @@ -580,61 +591,70 @@ if (!bInSchema) return; - TypeDefinitionsImpl* typedefs; SDOXMLString importNamespace = attributes.getValue("namespace"); SDOXMLString schemaLocation = attributes.getValue("schemaLocation"); + + SchemaInfo schemaInf; + SDOSchemaSAX2Parser schemaParser(schemaInf, setter, parsedLocations, definedNamespaces); + if (!schemaLocation.isNull()) { - SDOSchemaSAX2Parser*const schemaParser = setter->parseIfNot((const char*)schemaLocation, false, getCurrentFile()); - if (!schemaParser) + if (0 != schemaParser.parseURI(schemaLocation, getCurrentFile())) return; - typedefs = &schemaParser->getTypeDefinitions(); } else { // schemaLocation isn't present. Try loading namespace for import - if (loadImportNamespace - && localname.equalsIgnoreCase("import") + if (localname.equalsIgnoreCase("import") && !importNamespace.isNull()) { - SDOSchemaSAX2Parser*const sp = setter->parseIfNot((const char*)importNamespace); - if (!sp) + // Do not attempt to import namespaces alredy defined + for (unsigned int i = 0; i < definedNamespaces.size(); i++) + { + if (definedNamespaces[i].equals(importNamespace)) + { + return; + } + } + + if (0 != schemaParser.parseURI(importNamespace, SDOXMLString())) return; - typedefs = &sp->getTypeDefinitions(); } else { return; } } - - XMLDAS_TypeDefs types = typedefs->types; - XMLDAS_TypeDefs::iterator iter; - for (iter=types.begin(); iter != types.end(); iter++) - { - if ((*iter).second.name.equals("RootType") + + // Add the parsed types to this parsers list + TypeDefinitionsImpl& typedefs = schemaParser.getTypeDefinitions(); + XMLDAS_TypeDefs types = typedefs.types; + XMLDAS_TypeDefs::iterator iter; + for (iter=types.begin(); iter != types.end(); iter++) + { + if ((*iter).second.name.equals("RootType") && currentType.name.equals("RootType") - && (*iter).second.uri.equals(currentType.uri)) + && (*iter).second.uri.equals(currentType.uri)) { - // This must be true for an import/include to be + // This must be true for an import/include to be // legally positioned - + XMLDAS_TypeDefs::iterator find = typeDefinitions.types.find( (*iter).first); - + std::list<PropertyDefinitionImpl>::iterator propit; std::list<PropertyDefinitionImpl>::iterator currpropit; bool found; - + for (propit = (*iter).second.properties.begin() ; - propit != (*iter).second.properties.end(); ++ propit) + propit != (*iter).second.properties.end(); ++ propit) { found = false; // do not merge properties whose names clash for ( currpropit = currentType.properties.begin(); - currpropit != currentType.properties.end(); - ++currpropit) + currpropit != currentType.properties.end(); + ++currpropit) { if ((*currpropit).name.equals((*propit).name)) { @@ -644,16 +664,16 @@ } if (!found) { - currentType.properties.push_back(*propit); + currentType.properties.push_back(*propit); } } } - else - { - typeDefinitions.types.insert(*iter); - } + else + { + typeDefinitions.types.insert(*iter); } - + } + } @@ -733,7 +753,23 @@ thisProperty.name, thisProperty.localname); - thisProperty.namespaceURI = schemaInfo.getTargetNamespaceURI(); + // Set the property's namespace if elementForm is "qualified" + bool elementFormQualified = schemaInfo.isElementFormDefaultQualified(); + SDOXMLString elementForm = attributes.getValue("form"); + if (!elementForm.isNull()) + { + elementFormQualified = false; + if (elementForm.equals("qualified")) + { + elementFormQualified = true; + } + } + + if (elementFormQualified + || currentType.name.equals("RootType")) + { + thisProperty.namespaceURI = schemaInfo.getTargetNamespaceURI(); + } setType(thisProperty, attributes, namespaces); http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXSDStreamWriter.cpp?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXSDStreamWriter.cpp diff -u pecl/sdo/commonj/sdo/SDOXSDStreamWriter.cpp:1.9 pecl/sdo/commonj/sdo/SDOXSDStreamWriter.cpp:1.10 --- pecl/sdo/commonj/sdo/SDOXSDStreamWriter.cpp:1.9 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDOXSDStreamWriter.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/SDOXSDStreamWriter.h" #include <sstream> http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/PropertyDefinitionImpl.h?r1=1.6&r2=1.7&diff_format=u Index: pecl/sdo/commonj/sdo/PropertyDefinitionImpl.h diff -u pecl/sdo/commonj/sdo/PropertyDefinitionImpl.h:1.6 pecl/sdo/commonj/sdo/PropertyDefinitionImpl.h:1.7 --- pecl/sdo/commonj/sdo/PropertyDefinitionImpl.h:1.6 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/PropertyDefinitionImpl.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 486565 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 486565 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _PROPERTYDefinitionImpl_H_ #define _PROPERTYDefinitionImpl_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataGraph.cpp?r1=1.10&r2=1.11&diff_format=u Index: pecl/sdo/commonj/sdo/DataGraph.cpp diff -u pecl/sdo/commonj/sdo/DataGraph.cpp:1.10 pecl/sdo/commonj/sdo/DataGraph.cpp:1.11 --- pecl/sdo/commonj/sdo/DataGraph.cpp:1.10 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DataGraph.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/disable_warn.h" #include "commonj/sdo/DataGraph.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/ChangeSummaryImpl.cpp?r1=1.13&r2=1.14&diff_format=u Index: pecl/sdo/commonj/sdo/ChangeSummaryImpl.cpp diff -u pecl/sdo/commonj/sdo/ChangeSummaryImpl.cpp:1.13 pecl/sdo/commonj/sdo/ChangeSummaryImpl.cpp:1.14 --- pecl/sdo/commonj/sdo/ChangeSummaryImpl.cpp:1.13 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/ChangeSummaryImpl.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 509659 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 509659 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/ChangeSummaryImpl.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXMLWriter.h?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXMLWriter.h diff -u pecl/sdo/commonj/sdo/SDOXMLWriter.h:1.9 pecl/sdo/commonj/sdo/SDOXMLWriter.h:1.10 --- pecl/sdo/commonj/sdo/SDOXMLWriter.h:1.9 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDOXMLWriter.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 546667 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 546667 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _SDOXMLWRITER_H_ #define _SDOXMLWRITER_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/Type.h?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/Type.h diff -u pecl/sdo/commonj/sdo/Type.h:1.9 pecl/sdo/commonj/sdo/Type.h:1.10 --- pecl/sdo/commonj/sdo/Type.h:1.9 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/Type.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 510951 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 510951 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _SDO_TYPE_H_ #define _SDO_TYPE_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/RefCountingObject.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/RefCountingObject.cpp diff -u pecl/sdo/commonj/sdo/RefCountingObject.cpp:1.8 pecl/sdo/commonj/sdo/RefCountingObject.cpp:1.9 --- pecl/sdo/commonj/sdo/RefCountingObject.cpp:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/RefCountingObject.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/RefCountingObject.h" #include "commonj/sdo/Logging.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/Sequence.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/Sequence.h diff -u pecl/sdo/commonj/sdo/Sequence.h:1.8 pecl/sdo/commonj/sdo/Sequence.h:1.9 --- pecl/sdo/commonj/sdo/Sequence.h:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/Sequence.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 506932 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 506932 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _SEQUENCE_H_ #define _SEQUENCE_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XSDTypeInfo.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/XSDTypeInfo.cpp diff -u pecl/sdo/commonj/sdo/XSDTypeInfo.cpp:1.7 pecl/sdo/commonj/sdo/XSDTypeInfo.cpp:1.8 --- pecl/sdo/commonj/sdo/XSDTypeInfo.cpp:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/XSDTypeInfo.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/XSDTypeInfo.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XMLDocument.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/XMLDocument.h diff -u pecl/sdo/commonj/sdo/XMLDocument.h:1.7 pecl/sdo/commonj/sdo/XMLDocument.h:1.8 --- pecl/sdo/commonj/sdo/XMLDocument.h:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/XMLDocument.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _XMLDOCUMENT_H_ #define _XMLDOCUMENT_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOUtils.h?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/SDOUtils.h diff -u pecl/sdo/commonj/sdo/SDOUtils.h:1.9 pecl/sdo/commonj/sdo/SDOUtils.h:1.10 --- pecl/sdo/commonj/sdo/SDOUtils.h:1.9 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SDOUtils.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 524004 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 524004 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _SDOUTILS_H_ #define _SDOUTILS_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/Setting.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/Setting.h diff -u pecl/sdo/commonj/sdo/Setting.h:1.7 pecl/sdo/commonj/sdo/Setting.h:1.8 --- pecl/sdo/commonj/sdo/Setting.h:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/Setting.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef SETTING_H #define SETTING_H http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataGraph.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/DataGraph.h diff -u pecl/sdo/commonj/sdo/DataGraph.h:1.8 pecl/sdo/commonj/sdo/DataGraph.h:1.9 --- pecl/sdo/commonj/sdo/DataGraph.h:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/DataGraph.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _DATAGRAPH_H_ #define _DATAGRAPH_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/TypeDefinitions.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/TypeDefinitions.h diff -u pecl/sdo/commonj/sdo/TypeDefinitions.h:1.7 pecl/sdo/commonj/sdo/TypeDefinitions.h:1.8 --- pecl/sdo/commonj/sdo/TypeDefinitions.h:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/TypeDefinitions.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 524004 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 524004 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _TYPEDefinitions_H_ #define _TYPEDefinitions_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataObjectImpl.cpp?r1=1.19&r2=1.20&diff_format=u Index: pecl/sdo/commonj/sdo/DataObjectImpl.cpp diff -u pecl/sdo/commonj/sdo/DataObjectImpl.cpp:1.19 pecl/sdo/commonj/sdo/DataObjectImpl.cpp:1.20 --- pecl/sdo/commonj/sdo/DataObjectImpl.cpp:1.19 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/DataObjectImpl.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 527087 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 527087 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/disable_warn.h" #include "commonj/sdo/DataObjectImpl.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SAX2Parser.cpp?r1=1.10&r2=1.11&diff_format=u Index: pecl/sdo/commonj/sdo/SAX2Parser.cpp diff -u pecl/sdo/commonj/sdo/SAX2Parser.cpp:1.10 pecl/sdo/commonj/sdo/SAX2Parser.cpp:1.11 --- pecl/sdo/commonj/sdo/SAX2Parser.cpp:1.10 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SAX2Parser.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 510021 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 510021 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/SAX2Parser.h" #include "libxml/SAX2.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SdoRuntime.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SdoRuntime.h diff -u pecl/sdo/commonj/sdo/SdoRuntime.h:1.7 pecl/sdo/commonj/sdo/SdoRuntime.h:1.8 --- pecl/sdo/commonj/sdo/SdoRuntime.h:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SdoRuntime.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef SDO_RUNTIME_H #define SDO_RUNTIME_H http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOString.h?r1=1.5&r2=1.6&diff_format=u Index: pecl/sdo/commonj/sdo/SDOString.h diff -u pecl/sdo/commonj/sdo/SDOString.h:1.5 pecl/sdo/commonj/sdo/SDOString.h:1.6 --- pecl/sdo/commonj/sdo/SDOString.h:1.5 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDOString.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ // #include "commonj/sdo/disable_warn.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XpathHelper.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/XpathHelper.h diff -u pecl/sdo/commonj/sdo/XpathHelper.h:1.8 pecl/sdo/commonj/sdo/XpathHelper.h:1.9 --- pecl/sdo/commonj/sdo/XpathHelper.h:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/XpathHelper.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef XPATH_HELPER_H #define XPATH_HELPER_H http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SAX2Parser.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/SAX2Parser.h diff -u pecl/sdo/commonj/sdo/SAX2Parser.h:1.8 pecl/sdo/commonj/sdo/SAX2Parser.h:1.9 --- pecl/sdo/commonj/sdo/SAX2Parser.h:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SAX2Parser.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _SAX2PARSER_H_ #define _SAX2PARSER_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XpathHelper.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/XpathHelper.cpp diff -u pecl/sdo/commonj/sdo/XpathHelper.cpp:1.7 pecl/sdo/commonj/sdo/XpathHelper.cpp:1.8 --- pecl/sdo/commonj/sdo/XpathHelper.cpp:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/XpathHelper.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/XpathHelper.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/Property.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/Property.cpp diff -u pecl/sdo/commonj/sdo/Property.cpp:1.7 pecl/sdo/commonj/sdo/Property.cpp:1.8 --- pecl/sdo/commonj/sdo/Property.cpp:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/Property.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include <iostream> using namespace std; http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/LogWriter.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/LogWriter.h diff -u pecl/sdo/commonj/sdo/LogWriter.h:1.7 pecl/sdo/commonj/sdo/LogWriter.h:1.8 --- pecl/sdo/commonj/sdo/LogWriter.h:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/LogWriter.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef SDO_LOGWriter_H #define SDO_LOGWriter_H http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/TypeDefinitionsImpl.cpp?r1=1.5&r2=1.6&diff_format=u Index: pecl/sdo/commonj/sdo/TypeDefinitionsImpl.cpp diff -u pecl/sdo/commonj/sdo/TypeDefinitionsImpl.cpp:1.5 pecl/sdo/commonj/sdo/TypeDefinitionsImpl.cpp:1.6 --- pecl/sdo/commonj/sdo/TypeDefinitionsImpl.cpp:1.5 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/TypeDefinitionsImpl.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 524004 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 524004 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/TypeDefinitionsImpl.h" namespace commonj http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/CopyHelper.cpp?r1=1.12&r2=1.13&diff_format=u Index: pecl/sdo/commonj/sdo/CopyHelper.cpp diff -u pecl/sdo/commonj/sdo/CopyHelper.cpp:1.12 pecl/sdo/commonj/sdo/CopyHelper.cpp:1.13 --- pecl/sdo/commonj/sdo/CopyHelper.cpp:1.12 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/CopyHelper.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 532769 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 532769 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/Property.h" #include "commonj/sdo/Type.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XSDPropertyInfo.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/XSDPropertyInfo.cpp diff -u pecl/sdo/commonj/sdo/XSDPropertyInfo.cpp:1.8 pecl/sdo/commonj/sdo/XSDPropertyInfo.cpp:1.9 --- pecl/sdo/commonj/sdo/XSDPropertyInfo.cpp:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/XSDPropertyInfo.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/XSDPropertyInfo.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataObjectListImpl.cpp?r1=1.16&r2=1.17&diff_format=u Index: pecl/sdo/commonj/sdo/DataObjectListImpl.cpp diff -u pecl/sdo/commonj/sdo/DataObjectListImpl.cpp:1.16 pecl/sdo/commonj/sdo/DataObjectListImpl.cpp:1.17 --- pecl/sdo/commonj/sdo/DataObjectListImpl.cpp:1.16 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DataObjectListImpl.cpp Fri Aug 24 15:20:22 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 527087 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 527087 $ $Date: 2007/08/24 15:20:22 $ */ #include "commonj/sdo/DataObjectListImpl.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XMLQName.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/XMLQName.h diff -u pecl/sdo/commonj/sdo/XMLQName.h:1.7 pecl/sdo/commonj/sdo/XMLQName.h:1.8 --- pecl/sdo/commonj/sdo/XMLQName.h:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/XMLQName.h Fri Aug 24 15:20:22 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:22 $ */ #ifndef _XMLQName_H_ #define _XMLQName_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SAX2Namespaces.cpp?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/SAX2Namespaces.cpp diff -u pecl/sdo/commonj/sdo/SAX2Namespaces.cpp:1.9 pecl/sdo/commonj/sdo/SAX2Namespaces.cpp:1.10 --- pecl/sdo/commonj/sdo/SAX2Namespaces.cpp:1.9 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SAX2Namespaces.cpp Fri Aug 24 15:20:22 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 549789 $ $Date: 2007/08/24 15:20:22 $ */ #include "commonj/sdo/SAX2Namespaces.h" @@ -88,7 +88,7 @@ void SAX2Namespaces::empty() { - namespaceMap.empty(); + namespaceMap.clear(); } } // End - namespace sdo http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDO.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/SDO.h diff -u pecl/sdo/commonj/sdo/SDO.h:1.8 pecl/sdo/commonj/sdo/SDO.h:1.9 --- pecl/sdo/commonj/sdo/SDO.h:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDO.h Fri Aug 24 15:20:22 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:22 $ */ #include "commonj/sdo/Property.h" #include "commonj/sdo/Type.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DASType.h?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/DASType.h diff -u pecl/sdo/commonj/sdo/DASType.h:1.9 pecl/sdo/commonj/sdo/DASType.h:1.10 --- pecl/sdo/commonj/sdo/DASType.h:1.9 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DASType.h Fri Aug 24 15:20:22 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:22 $ */ #ifndef _DASTYPE_H_ #define _DASTYPE_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/export.h?r1=1.10&r2=1.11&diff_format=u Index: pecl/sdo/commonj/sdo/export.h diff -u pecl/sdo/commonj/sdo/export.h:1.10 pecl/sdo/commonj/sdo/export.h:1.11 --- pecl/sdo/commonj/sdo/export.h:1.10 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/export.h Fri Aug 24 15:20:22 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:22 $ */ #define SDO4CPP_VERSION 20051202 http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXMLBufferWriter.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXMLBufferWriter.cpp diff -u pecl/sdo/commonj/sdo/SDOXMLBufferWriter.cpp:1.7 pecl/sdo/commonj/sdo/SDOXMLBufferWriter.cpp:1.8 --- pecl/sdo/commonj/sdo/SDOXMLBufferWriter.cpp:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDOXMLBufferWriter.cpp Fri Aug 24 15:20:22 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:22 $ */ #include "commonj/sdo/SDOXMLBufferWriter.h" #include "commonj/sdo/SDORuntimeException.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XSDHelper.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/XSDHelper.cpp diff -u pecl/sdo/commonj/sdo/XSDHelper.cpp:1.7 pecl/sdo/commonj/sdo/XSDHelper.cpp:1.8 --- pecl/sdo/commonj/sdo/XSDHelper.cpp:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/XSDHelper.cpp Fri Aug 24 15:20:22 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:22 $ */ #include "commonj/sdo/XSDHelper.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXSDWriter.cpp?r1=1.11&r2=1.12&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXSDWriter.cpp diff -u pecl/sdo/commonj/sdo/SDOXSDWriter.cpp:1.11 pecl/sdo/commonj/sdo/SDOXSDWriter.cpp:1.12 --- pecl/sdo/commonj/sdo/SDOXSDWriter.cpp:1.11 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDOXSDWriter.cpp Fri Aug 24 15:20:22 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 518720 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 518720 $ $Date: 2007/08/24 15:20:22 $ */ #include "commonj/sdo/SDOXSDWriter.h" #include "iostream" http://cvs.php.net/viewvc.cgi/pecl/sdo/tests/SCA/phpunit/TestSuite.php?r1=1.4&r2=1.5&diff_format=u Index: pecl/sdo/tests/SCA/phpunit/TestSuite.php diff -u pecl/sdo/tests/SCA/phpunit/TestSuite.php:1.4 pecl/sdo/tests/SCA/phpunit/TestSuite.php:1.5 --- pecl/sdo/tests/SCA/phpunit/TestSuite.php:1.4 Fri Jun 22 14:32:34 2007 +++ pecl/sdo/tests/SCA/phpunit/TestSuite.php Fri Aug 24 15:20:26 2007 @@ -51,6 +51,7 @@ require_once 'RestRpc/RestRpcTest.php'; require_once 'eBaySoap/eBaySoapTest.php'; require_once 'TargetTests/SCA_TargetTest.php'; +require_once 'RegressionTests/SCA_RegressionTestSuite.php'; //require_once 'LogTests/SCALoggerTest.php' ; //require_once 'LogTests/SCALogFilterTest.php' ; @@ -82,6 +83,8 @@ $suite->addTest(new PHPUnit_Framework_TestSuite("SCA_eBaySoapTest")); $suite->addTest(new PHPUnit_Framework_TestSuite("SCA_JsonRpcTest")); $suite->addTest(new PHPUnit_Framework_TestSuite("SCA_TargetTest")); + $suite->addTest(SCA_RegressionTestSuite::suite()); + // TODO // interface to logger has changed - rework the tests // $suite->addTest( new PHPUnit_Framework_TestSuite("SCALoggerTest")); http://cvs.php.net/viewvc.cgi/pecl/sdo/tests/DAS/XML/phpunit/XMLDASTest.php?r1=1.3&r2=1.4&diff_format=u Index: pecl/sdo/tests/DAS/XML/phpunit/XMLDASTest.php diff -u pecl/sdo/tests/DAS/XML/phpunit/XMLDASTest.php:1.3 pecl/sdo/tests/DAS/XML/phpunit/XMLDASTest.php:1.4 --- pecl/sdo/tests/DAS/XML/phpunit/XMLDASTest.php:1.3 Fri Jun 22 14:32:39 2007 +++ pecl/sdo/tests/DAS/XML/phpunit/XMLDASTest.php Fri Aug 24 15:20:26 2007 @@ -575,7 +575,7 @@ $this->assertEquals(SOAP_NAMESPACE, $port->address->getTypeNamespaceURI(), "testSoap - wrong namespace URI for address;"); $stringified = $xmldas->saveString($wsdl_doc); - $this->assertFalse(strpos($stringified, '<port><soap:address') === FALSE, "testSoap - wrong namespace prefix for address;"); + $this->assertFalse(strpos($stringified, '<wsdl:port><soap:address') === FALSE, "testSoap - wrong namespace prefix for address;"); } catch (SDO_Exception $e) { $this->assertTrue(false, "testSoap - Unexpected Exception Caught: " . $e->getMessage()); } http://cvs.php.net/viewvc.cgi/pecl/sdo/SCA/SCA.php?r1=1.6&r2=1.7&diff_format=u Index: pecl/sdo/SCA/SCA.php diff -u pecl/sdo/SCA/SCA.php:1.6 pecl/sdo/SCA/SCA.php:1.7 --- pecl/sdo/SCA/SCA.php:1.6 Fri Jun 22 14:32:34 2007 +++ pecl/sdo/SCA/SCA.php Fri Aug 24 15:20:26 2007 @@ -1,5 +1,5 @@ <?php -/* +/** +-----------------------------------------------------------------------------+ | (c) Copyright IBM Corporation 2006, 2007. | | All Rights Reserved. | @@ -22,7 +22,7 @@ | Chris Miller. | | | +-----------------------------------------------------------------------------+ -$Id: SCA.php,v 1.6 2007/06/22 14:32:34 mfp Exp $ +$Id: SCA.php,v 1.7 2007/08/24 15:20:26 mfp Exp $ */ /** @@ -97,7 +97,8 @@ public static function sendHttpHeader($header) { if (self::$http_header_catcher === null) { - header ($header); + self::$logger->log("sending http header: $header"); + header($header); } else { self::$http_header_catcher->catchHeader($header); } @@ -124,32 +125,32 @@ self::$logger = SCA_LogFactory::create(); // Turn on logging here by removing the comment from the following line - // self::$logger->startLog(); + // self::$logger->startLog(); self::$logger->log('Entering'); self::$logger->log("Called from $calling_component_filename"); if (isset($_SERVER['HTTP_HOST'])) - self::$logger->log('$_SERVER[\'HTTP_HOST\'] = ' . $_SERVER['HTTP_HOST'] ); + self::$logger->log('$_SERVER[\'HTTP_HOST\'] = ' . $_SERVER['HTTP_HOST']); if (isset($_SERVER['REQUEST_METHOD'])) - self::$logger->log('$_SERVER[\'REQUEST_METHOD\'] = ' . $_SERVER['REQUEST_METHOD'] ); + self::$logger->log('$_SERVER[\'REQUEST_METHOD\'] = ' . $_SERVER['REQUEST_METHOD']); if (isset($_SERVER['CONTENT_TYPE']) ) - self::$logger->log('$_SERVER[\'CONTENT_TYPE\'] = ' . $_SERVER['CONTENT_TYPE'] ); + self::$logger->log('$_SERVER[\'CONTENT_TYPE\'] = ' . $_SERVER['CONTENT_TYPE']); // contains the X.wsdl in http://..../X.php/X.wsdl if (isset($_SERVER[ 'PATH_INFO' ])) - self::$logger->log('$_SERVER[\'PATH_INFO\'] = ' . $_SERVER['PATH_INFO'] ); + self::$logger->log('$_SERVER[\'PATH_INFO\'] = ' . $_SERVER['PATH_INFO']); if (isset($_SERVER[ 'PHP_SELF' ])) - self::$logger->log('$_SERVER[\'PHP_SELF\'] = ' . $_SERVER['PHP_SELF'] ); + self::$logger->log('$_SERVER[\'PHP_SELF\'] = ' . $_SERVER['PHP_SELF']); if (isset($_SERVER[ 'REQUEST_URI' ])) - self::$logger->log('$_SERVER[\'REQUEST_URI\'] = ' . $_SERVER['REQUEST_URI'] ); + self::$logger->log('$_SERVER[\'REQUEST_URI\'] = ' . $_SERVER['REQUEST_URI']); if (isset($_GET[ 'wsdl' ])) - self::$logger->log('$_GET[\'wsdl\'] = ' . $_GET['wsdl'] ); + self::$logger->log('$_GET[\'wsdl\'] = ' . $_GET['wsdl']); /** * The instance check around the class - if (!class_exists... - @@ -172,7 +173,7 @@ * HTTP request and we have the expected ?wsdl, ?smd etc. on the URL * 3. Consider this is a web request otherwise, since we have been included * - * We would get caught out if a non-SCA script were simply to simply + * We would get caught out if a non-SCA script were simply to * to include a component rather than including SCA and using getService * to get a proxy to it. */ @@ -191,8 +192,6 @@ $service_description->script_name = $_SERVER['SCRIPT_NAME']; $service_description->http_host = $http_host; - $class_name = SCA_Helper::guessClassName($calling_component_filename); - foreach ($service_description->binding as $binding_string) { SCA::$logger->log("Applying tests for a $binding_string binding"); @@ -213,12 +212,11 @@ } } - /** - * There are other reasons you can get to here - a component loaded - * locally, for example, or loaded as a result of a SOAP request - * but some other component is the real destination. - * None of them are errors though, so nothing needs to be done. - */ + /* There are other reasons you can get to here - a component loaded + * locally, for example, or loaded as a result of a SOAP request + * but some other component is the real destination. + * None of them are errors though, so nothing needs to be done. + */ self::$logger->log('Request was not ATOM, JSON, SOAP, or a request for a .smd or .wsdl file.'); } @@ -243,29 +241,17 @@ * This is where decisions about what type of service is to be made, * are made. * - * @param string $target + * @param string $target the file name - could be a php file, wsdl, json smd etc + * @param string $type what sort of binding if ambiguous - could be local, soap, jsonrpc, atom, xmlrpc, ... + * @param array $binding_config array of parameters found in the annotations - ebaysoap for example needs * @return proxy - * @throws SCA_RuntimeException + * @throws SCA_RuntimeException if the target is null or empty string */ public static function getService($target, $type = null, $binding_config = null) { self::$logger->log("Entering"); - self::$logger->log("Target is $target , Type is $type"); - - // automatically create a tuscany proxy if SCA is embedded in tuscany C++ SCA - // there isn't really a sound reason for doing this but the following - // path manipulation code crashes with php running in embedded mode. - // needs further investigation - if (self::$is_embedded ) { - return new SCA_TuscanyProxy($target); - } - /** - * Calculate the directory against which we will resolve relative paths - * If getService has been called directly from a client script, - * this is the immediate caller, just one step back up the call stack - */ - $backtrace = debug_backtrace(); + $backtrace = debug_backtrace(); $immediate_caller_filename = $backtrace[0]['file']; if ($target === null) { @@ -278,12 +264,20 @@ throw new SCA_RuntimeException($msg); } - SCA::$logger->log("immediate caller = $immediate_caller_filename"); + self::$logger->log("Target is $target , Type is $type"); + + // automatically create a tuscany proxy if SCA is embedded in tuscany C++ SCA + // there isn't really a sound reason for doing this but the following + // path manipulation code crashes with php running in embedded mode. + // needs further investigation + if (self::$is_embedded ) { + return new SCA_TuscanyProxy($target); + } // set up the type in the case where getService has been // called from a client script and the type has defaulted to null - if ($type == null && (strstr($target, '.php') == '.php') && (strstr($target, 'http:') || strstr($target,'https:'))) { + if ($type == null && (strstr($target, '.php') == '.php') && (strstr($target, 'http:') || strstr($target, 'https:'))) { throw new SCA_RuntimeException("The target $target appears to be for a remote component, but needs a binding to be specified"); } @@ -291,34 +285,36 @@ if (strstr($target, '.wsdl') == '.wsdl' || strstr($target, '?wsdl') == '?wsdl') { // end with .wsdl or ?wsdl SCA::$logger->log("Inferring from presence of .wsdl or ?wsdl that a soap proxy is required for this target."); $type = 'soap'; - } else if (strstr($target, '.smd') == '.smd' || strstr($target,'?smd') == '?smd') { + } else if (strstr($target, '.smd') == '.smd' || strstr($target, '?smd') == '?smd') { SCA::$logger->log("Inferring from presence of .smd or ?smd that a jsonrpc proxy is required for this target."); $type = 'jsonrpc'; } else if (strstr($target, '.php') == '.php') { // .php on the end - SCA::$logger->log("A local proxy is required for this target."); + SCA::$logger->log("Inferring from the fact that the target ends in .php that a local proxy is required for this target."); $type = 'local'; } } - if (isset($type) && $type !== null) { - if (!isset($binding_config)) { - $binding_config = null; - } - SCA::$logger->log("A $type proxy is required for target $target."); - $base_path_for_relative_paths = dirname($immediate_caller_filename); - return SCA_Binding_Factory::createProxy($type, - $target, - $base_path_for_relative_paths, - $binding_config); + if (!isset($type) || $type == null) { + $msg = "The right binding to use could not be inferred from the target {$target}. The binding must be specified as the second argument to SCA::getService()." ; + throw new SCA_RuntimeException($msg); } - $file = basename($target); - $dir = dirname($target); - $msg = "The right binding to use could not be inferred from the target {$target}. The binding must be specified as the second argument to getService()." ; + /** + * Calculate the directory against which we will resolve relative paths + * If getService has been called directly from a client script, + * this is the immediate caller, just one step back up the call stack + */ + $base_path_for_relative_paths = dirname($immediate_caller_filename); + + SCA::$logger->log("About to create a $type proxy for target $target. Base path for relative paths is $base_path_for_relative_paths"); - throw new SCA_RuntimeException($msg); + $proxy = SCA_Binding_Factory::createProxy($type, + $target, + $base_path_for_relative_paths, + $binding_config); self::$logger->log("Exiting"); + return $proxy; } /** @@ -336,9 +332,8 @@ * instance variables. The call(s) to getService may recurse back through here * if those dependencies also have dependencies * - * @param name of the class + * @param string $class_name name of the class * @return class instance - * @throws SCA_Exeption */ public static function createInstanceAndFillInReferences($class_name) { @@ -363,7 +358,7 @@ $reference_proxy = SCA::getService($ref_value); } - $prop = $reflection->getProperty($ref_name); + $prop = $reflection->getProperty($ref_name); // add the reference information to the proxy // this is added just in case there are any @@ -381,12 +376,14 @@ /** * Instantiate the component + * @param string $class_name class to instantiate + * @return object instance of the class */ public static function createInstance($class_name) { self::$logger->log("Entering"); self::$logger->log("Class name of component to instantiate is $class_name"); - $instance = new $class_name; + $instance = new $class_name; return $instance; } @@ -396,17 +393,18 @@ * instance variables. The call(s) to getService may recurse back through here * if those dependencies also have dependencies * - * @param instance of a class which may or may not contain references to other components - * @return class instance - * @throws SCA_Exeption + * @param object $instance instance of a class which may or may not contain references to other components + * @return object instance */ public static function fillInReferences($instance) { self::$logger->log("Entering"); $class_name = get_class($instance); - $file = SCA_Helper::getFileContainingClass($class_name); + $file = SCA_Helper::getFileContainingClass($class_name); + $path_to_resolve_relative_paths_against = dirname($file); + self::$logger->log("Path to resolve relative paths against is $path_to_resolve_relative_paths_against"); $reader = new SCA_AnnotationReader($instance); $references = $reader->reflectReferencesFull(); @@ -414,12 +412,12 @@ $reflection = new ReflectionObject($instance); foreach ($references as $ref_name => $ref_type) { - self::$logger->log("Reference name = $ref_name, ref_type = " . print_r($ref_type,true)); - $ref_value = $ref_type->getBinding(); - $prop = $reflection->getProperty($ref_name); + // self::$logger->log("Reference name = $ref_name, ref_type = " . print_r($ref_type,true)); + self::$logger->log("Reference name = $ref_name"); - $reference_proxy = SCA_Binding_Factory::createProxy( - $ref_type->getBindingType(), + $ref_value = $ref_type->getBinding(); + $prop = $reflection->getProperty($ref_name); + $reference_proxy = SCA_Binding_Factory::createProxy($ref_type->getBindingType(), $ref_value, $path_to_resolve_relative_paths_against, $ref_type->getBindingConfig()); // NB recursion here @@ -442,15 +440,15 @@ * Create an array containing the service descriptions from the annotations * found in the class file. * - * @param object ( Class file containing the service annotations ) - * @return array ( Containing the service decscriptions ) + * @param string $class_file Class file containing the service annotations ) + * @return object The service description object * @throws SCA_RuntimeException ... when things go wrong */ public static function constructServiceDescription($class_file) { $class_name = SCA_Helper::guessClassName($class_file); - if ( ! class_exists($class_name, false)){ + if ( ! class_exists($class_name, false)) { // The code analyzer marks the following include with a variable name as // unsafe. It is safe, however as the class file name can only come from // a getService call or an annotation. @@ -478,55 +476,42 @@ * This function can be called directly by a component to * create a dataobject from the namespaces defined in the @types annotations. * - * @param string $namespace_uri Namespace identifying the xsd - * @param string $type_name Element being reference in the xsd - * @return object Empty Data Object structure + * @param string $namespace_uri Namespace identifying the xsd + * @param string $type_name Element being reference in the xsd + * @return object Empty Data Object structure */ public static function createDataObject( $namespace_uri, $type_name ) { - $xmldas = null ; // Find out who/what called this function so that the type annotations // that define the xml used to create a 'das' can be scanned. - $backtrace = debug_backtrace(); - $caller = $backtrace[0]; - $filepath = $caller['file']; - // the key to the xmldas array. - $keyname = md5( serialize( $filepath ) ) ; + $backtrace = debug_backtrace(); + $caller = $backtrace[0]; + $filepath = $caller['file']; + $keyname = md5(serialize($filepath)); // Check if there is a matching xsd in the xmldas array - if ( array_key_exists( $keyname, self::$xml_das_array ) ) { + if ( array_key_exists($keyname, self::$xml_das_array) ) { $xmldas = self::$xml_das_array[ $keyname ] ; - } else { // The trap will only trigger if the Annotations cannot be found // normally this is because a SCA Client Component has incorrectly // attempted to use this method, rather than the 'createDataObject' // method of either the 'Proxy, or LocalProxy. try { - $class_name = SCA_Helper::guessClassName( $filepath ); - $xmldas = SCA_Helper::getXmldas( $class_name, null ) ; + $class_name = SCA_Helper::guessClassName($filepath); + $xmldas = SCA_Helper::getXmldas($class_name, null); self::$xml_das_array[ $keyname ] = $xmldas ; - } catch( ReflectionException $e ) { - $msg = $e->getMessage() ; - throw new SCA_RuntimeException( "SCA::createdDataObject can only be used from a Service Component" ); + $msg = $e->getMessage(); + throw new SCA_RuntimeException( "A PHP ReflectionException was thrown with message $msg. " + . "This is usually the result of calling SCA::createDataObject from a user script. " + . "User scripts should only call createDataObject on an SCA Proxy object."); } } return $xmldas->createDataObject($namespace_uri, $type_name); } - // public static function createDataObject( $namespace_uri, $type_name) - // { - // /* we have been called directly by SCA::createDataObject(), find calling class */ - // $backtrace = debug_backtrace(); - // $caller = $backtrace[0]; - // $file_name = $caller['file']; - // $class_name = SCA_Helper::guessClassName($file_name); - // - // return SCA_Helper::createDataObject($namespace_uri, - // $type_name, $class_name); - // } /** * This function can be called directly by a php script to dispatch a request to @@ -535,16 +520,17 @@ * by in a script that is just a wrapper script and is not acting as a client for * the service. This can happen if you want keep php files that define service * outside of the htdocs directory - * - * @param string $class_name The class_name that implements the target service + * + * @param string $class_name The class_name that implements the target service + * @return void */ public static function dispatch($class_name) { - $file_name = SCA_Helper::getFileContainingClass($class_name); + $file_name = SCA_Helper::getFileContainingClass($class_name); $_SERVER['SCRIPT_FILENAME'] = $file_name; SCA::initComponent($file_name); } - }/* End SCA Class */ + } /** http://cvs.php.net/viewvc.cgi/pecl/sdo/SCA/SCA_Logger.php?r1=1.4&r2=1.5&diff_format=u Index: pecl/sdo/SCA/SCA_Logger.php diff -u pecl/sdo/SCA/SCA_Logger.php:1.4 pecl/sdo/SCA/SCA_Logger.php:1.5 --- pecl/sdo/SCA/SCA_Logger.php:1.4 Fri May 4 15:05:41 2007 +++ pecl/sdo/SCA/SCA_Logger.php Fri Aug 24 15:20:26 2007 @@ -22,7 +22,7 @@ | Chris Miller. | | | +-----------------------------------------------------------------------------+ -$Id: SCA_Logger.php,v 1.4 2007/05/04 15:05:41 mfp Exp $ +$Id: SCA_Logger.php,v 1.5 2007/08/24 15:20:26 mfp Exp $ */ require 'SCA/SCA_LogInterface.php' ; @@ -247,6 +247,10 @@ * */ public function startLog() { + if ($this->run == SCA_LOGGER_START) + // we are already started; this is a second or subsequent call to startLog() - do nothing + return; + $dirpath = SCA_Helper::getTempDir().'/log'; $file = 'SCA'; $command = SCA_LOGGER_UPDATE; @@ -265,6 +269,9 @@ $this->logfile = "{$this->dirpath}/{$this->file}.{$this->extn}" ; + // turn on if you cannot remember where the log is written to +// trigger_error("SCA logging started; logging to $this->logfile"); + date_default_timezone_set('UTC'); /* Delete an existing file, or get the last message index */ @@ -316,7 +323,7 @@ * @return array Contains the contents of the log file */ public function fromLog( $categorisation = null ) { - $this->stopLog(); //lock + // $this->stopLog(); //lock $logList = array() ; if ( $categorisation === null ) @@ -324,7 +331,7 @@ $logList = $this->_getMsg(null, $this->logfile, $categorisation ); - $this->startLog(); //unlock + // $this->startLog(); //unlock return $logList ; @@ -377,7 +384,7 @@ */ private function _tolog( $msg , $filename = "", $line = "", $level = null ) { - $this->stopLog() ; //lock + // $this->stopLog() ; //lock $stack_depth = substr('....', 1, 2 ) ; $calling_class = $filename ; $calling_method = $line ; @@ -409,7 +416,7 @@ file_put_contents($this->logfile, $log_msg, FILE_APPEND ); - $this->startLog() ; //unlock + // $this->startLog() ; //unlock }/* End to log function */ http://cvs.php.net/viewvc.cgi/pecl/sdo/tests/SDO/phpt/bug9867.phpt?r1=1.1&r2=1.2&diff_format=u Index: pecl/sdo/tests/SDO/phpt/bug9867.phpt diff -u /dev/null pecl/sdo/tests/SDO/phpt/bug9867.phpt:1.2 --- /dev/null Fri Aug 24 15:20:28 2007 +++ pecl/sdo/tests/SDO/phpt/bug9867.phpt Fri Aug 24 15:20:26 2007 @@ -0,0 +1,80 @@ +--TEST-- +SDO test for namespaces +--INI-- +display_errors=off +--SKIPIF-- +<?php +if (!extension_loaded("sdo")) + echo "skip sdo not loaded"; +?> +--FILE-- +<?php + +$person_xsd = <<<EOF +<?xml version="1.0" encoding="UTF-8"?> +<schema xmlns="http://www.w3.org/2001/XMLSchema" + targetNamespace="http://www.test.com/info" + xmlns:info="http://www.test.com/info"> + <complexType name="nameType"> + <sequence> + <element name="first" type="string"></element> + <element name="last" type="string"></element> + </sequence> + </complexType> + <complexType name="personType"> + <sequence> + <element name="name" type="info:nameType"></element> + </sequence> + </complexType> +</schema> +EOF; + +$types_xsd = <<< EOF + <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns:ns0="http://www.test.com/info" + targetNamespace="http://Component" + elementNameDefault="qualified"> + <xs:import schemaLocation="person.xsd" namespace="http://www.test.com/info"/> + <xs:element name="add"> + <xs:complexType> + <xs:sequence> + <xs:element name="person" type="ns0:personType" nillable="true"/> + </xs:sequence> + </xs:complexType> + </xs:element> + </xs:schema> +EOF; + +file_put_contents('person.xsd', $person_xsd); +file_put_contents('types.xsd', $types_xsd); + +$xmldas = SDO_DAS_XML::create('types.xsd'); + +unlink('person.xsd'); +unlink('types.xsd'); + +$xdoc = $xmldas->createDocument('', 'add'); +$add = $xdoc->getRootDataObject(); + +$person = $xmldas->createDataObject('http://www.test.com/info','personType'); +$name = $person->createDataObject('name'); +$name->first = "Will"; +$name->last = "Shakespeare"; + +$add->person = $person; + +$xmlstr = $xmldas->saveString($xdoc, 2); +echo $xmlstr; + + +?> +--EXPECT-- +<?xml version="1.0" encoding="UTF-8"?> +<tns:add xmlns:tns="http://Component" xmlns:tns2="http://www.test.com/info" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <person> + <name> + <first>Will</first> + <last>Shakespeare</last> + </name> + </person> +</tns:add> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pecl/sdo/tests/SDO/phpt/bug8694.phpt?r1=1.4&r2=1.5&diff_format=u Index: pecl/sdo/tests/SDO/phpt/bug8694.phpt diff -u pecl/sdo/tests/SDO/phpt/bug8694.phpt:1.4 pecl/sdo/tests/SDO/phpt/bug8694.phpt:1.5 --- pecl/sdo/tests/SDO/phpt/bug8694.phpt:1.4 Fri Jun 22 14:32:38 2007 +++ pecl/sdo/tests/SDO/phpt/bug8694.phpt Fri Aug 24 15:20:26 2007 @@ -6,8 +6,7 @@ <?php if (!extension_loaded("sdo")) echo "skip sdo not loaded"; -else if (phpversion('sdo') <= '1.2.2') - echo "skip test requires version > 1.2.2"; +echo "skip bug8694 is bogus"; ?> --FILE-- <?php http://cvs.php.net/viewvc.cgi/pecl/sdo/tests/SCA/phpunit/RegressionTests/SCA_RegressionTestSuite.php?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: pecl/sdo/tests/SCA/phpunit/RegressionTests/SCA_RegressionTestSuite.php diff -u pecl/sdo/tests/SCA/phpunit/RegressionTests/SCA_RegressionTestSuite.php:1.1.2.1 pecl/sdo/tests/SCA/phpunit/RegressionTests/SCA_RegressionTestSuite.php:1.1.2.2 --- pecl/sdo/tests/SCA/phpunit/RegressionTests/SCA_RegressionTestSuite.php:1.1.2.1 Wed Aug 22 13:02:13 2007 +++ pecl/sdo/tests/SCA/phpunit/RegressionTests/SCA_RegressionTestSuite.php Fri Aug 24 15:20:26 2007 @@ -32,7 +32,7 @@ require_once 'PHPUnit/Framework.php'; require_once 'PHPUnit/TextUI/TestRunner.php'; -require_once 'Tuscany1566Test.php'; +//require_once 'Tuscany1566Test.php'; require_once 'Bug11774Test.php'; class SCA_RegressionTestSuite { @@ -44,7 +44,7 @@ public static function suite() { $suite = new PHPUnit_Framework_TestSuite(); - $suite->addTest(new PHPUnit_Framework_TestSuite("Tuscany1566Test")); +// $suite->addTest(new PHPUnit_Framework_TestSuite("Tuscany1566Test")); $suite->addTest(new PHPUnit_Framework_TestSuite("Bug11774Test")); return $suite; http://cvs.php.net/viewvc.cgi/pecl/sdo/tests/SCA/phpunit/RestRpc/RestRpcTestService.response?r1=1.2&r2=1.3&diff_format=u Index: pecl/sdo/tests/SCA/phpunit/RestRpc/RestRpcTestService.response diff -u pecl/sdo/tests/SCA/phpunit/RestRpc/RestRpcTestService.response:1.2 pecl/sdo/tests/SCA/phpunit/RestRpc/RestRpcTestService.response:1.3 --- pecl/sdo/tests/SCA/phpunit/RestRpc/RestRpcTestService.response:1.2 Fri May 4 15:05:52 2007 +++ pecl/sdo/tests/SCA/phpunit/RestRpc/RestRpcTestService.response Fri Aug 24 15:20:26 2007 @@ -1,2 +1,2 @@ <?xml version="1.0" encoding="UTF-8"?> -<HelloType xmlns="http://www.example.org/Hello" xsi:type="HelloType" xmlns:tns="http://www.example.org/Hello" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><name>name</name><greeting>Hello Fred</greeting><reversed>derF olleH</reversed></HelloType> +<HelloType xsi:type="tns2:HelloType" xmlns:tns2="http://www.example.org/Hello" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><name>name</name><greeting>Hello Fred</greeting><reversed>derF olleH</reversed></HelloType> http://cvs.php.net/viewvc.cgi/pecl/sdo/tests/SCA/phpunit/RestRpc/RestRpcTest.php?r1=1.2&r2=1.3&diff_format=u Index: pecl/sdo/tests/SCA/phpunit/RestRpc/RestRpcTest.php diff -u pecl/sdo/tests/SCA/phpunit/RestRpc/RestRpcTest.php:1.2 pecl/sdo/tests/SCA/phpunit/RestRpc/RestRpcTest.php:1.3 --- pecl/sdo/tests/SCA/phpunit/RestRpc/RestRpcTest.php:1.2 Fri May 4 15:05:52 2007 +++ pecl/sdo/tests/SCA/phpunit/RestRpc/RestRpcTest.php Fri Aug 24 15:20:26 2007 @@ -106,7 +106,6 @@ } -// Call SCA_JsonRpcTest::main() if this source file is executed directly. if (!defined("PHPUnit_MAIN_METHOD")) { define("PHPUnit_MAIN_METHOD", "SCA_RestRpcTest::main"); SCA_RestRpcTest::main(); http://cvs.php.net/viewvc.cgi/pecl/sdo/SCA/Bindings/soap/ServiceRequestHandler.php?r1=1.3&r2=1.4&diff_format=u Index: pecl/sdo/SCA/Bindings/soap/ServiceRequestHandler.php diff -u pecl/sdo/SCA/Bindings/soap/ServiceRequestHandler.php:1.3 pecl/sdo/SCA/Bindings/soap/ServiceRequestHandler.php:1.4 --- pecl/sdo/SCA/Bindings/soap/ServiceRequestHandler.php:1.3 Fri Jun 22 14:32:38 2007 +++ pecl/sdo/SCA/Bindings/soap/ServiceRequestHandler.php Fri Aug 24 15:20:26 2007 @@ -72,7 +72,8 @@ $class_name = SCA_Helper::guessClassName($calling_component_filename); $service_wrapper = new SCA_Bindings_soap_Wrapper($class_name, $handler); $server->setObject($service_wrapper); - $server->handle(); + global $HTTP_RAW_POST_DATA; + $server->handle($HTTP_RAW_POST_DATA); } } http://cvs.php.net/viewvc.cgi/pecl/sdo/SCA/Bindings/soap/ServiceDescriptionGenerator.php?r1=1.4&r2=1.5&diff_format=u Index: pecl/sdo/SCA/Bindings/soap/ServiceDescriptionGenerator.php diff -u pecl/sdo/SCA/Bindings/soap/ServiceDescriptionGenerator.php:1.4 pecl/sdo/SCA/Bindings/soap/ServiceDescriptionGenerator.php:1.5 --- pecl/sdo/SCA/Bindings/soap/ServiceDescriptionGenerator.php:1.4 Fri Jun 22 14:32:38 2007 +++ pecl/sdo/SCA/Bindings/soap/ServiceDescriptionGenerator.php Fri Aug 24 15:20:26 2007 @@ -288,9 +288,9 @@ /*********************************************************************** * Find the <types/> element and replace it with the generated one ***********************************************************************/ - $types_pos = strpos($str, '<types/>'); + $types_pos = strpos($str, '<wsdl:types/>'); $front = substr($str, 0, $types_pos); // the bit before <types/> - $back = substr($str, $types_pos + 8); // the bit after <types/> + $back = substr($str, $types_pos + 13); // the bit after <types/> $str = $front . $types_element . $back; $our_comment = "<!-- this line identifies this file as WSDL generated by SCA for PHP. Do not remove -->"; http://cvs.php.net/viewvc.cgi/pecl/sdo/tests/SCA/phpt/004.phpt?r1=1.4&r2=1.5&diff_format=u Index: pecl/sdo/tests/SCA/phpt/004.phpt diff -u pecl/sdo/tests/SCA/phpt/004.phpt:1.4 pecl/sdo/tests/SCA/phpt/004.phpt:1.5 --- pecl/sdo/tests/SCA/phpt/004.phpt:1.4 Fri Jun 22 14:32:37 2007 +++ pecl/sdo/tests/SCA/phpt/004.phpt Fri Aug 24 15:20:26 2007 @@ -13,7 +13,7 @@ ?> --EXPECT-- <?xml version="1.0" encoding="UTF-8"?> -<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns2="http://Component" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" targetNamespace="http://Component"> +<wsdl:definitions xmlns:tns2="http://Component" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" targetNamespace="http://Component"> <types> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns0="http://www.test.com/info" @@ -52,49 +52,49 @@ </xs:schema> </types> - <message name="reverseRequest"> - <part name="reverseRequest" element="tns2:reverse"/> - </message> - <message name="reverseResponse"> - <part name="return" element="tns2:reverseResponse"/> - </message> - <message name="addRequest"> - <part name="addRequest" element="tns2:add"/> - </message> - <message name="addResponse"> - <part name="return" element="tns2:addResponse"/> - </message> - <portType name="ComponentPortType"> - <operation name="reverse"> - <input message="tns2:reverseRequest"/> - <output message="tns2:reverseResponse"/> - </operation> - <operation name="add"> - <input message="tns2:addRequest"/> - <output message="tns2:addResponse"/> - </operation> - </portType> - <binding name="ComponentBinding" type="tns2:ComponentPortType"> + <wsdl:message name="reverseRequest"> + <wsdl:part name="reverseRequest" element="tns2:reverse"/> + </wsdl:message> + <wsdl:message name="reverseResponse"> + <wsdl:part name="return" element="tns2:reverseResponse"/> + </wsdl:message> + <wsdl:message name="addRequest"> + <wsdl:part name="addRequest" element="tns2:add"/> + </wsdl:message> + <wsdl:message name="addResponse"> + <wsdl:part name="return" element="tns2:addResponse"/> + </wsdl:message> + <wsdl:portType name="ComponentPortType"> + <wsdl:operation name="reverse"> + <wsdl:input message="tns2:reverseRequest"/> + <wsdl:output message="tns2:reverseResponse"/> + </wsdl:operation> + <wsdl:operation name="add"> + <wsdl:input message="tns2:addRequest"/> + <wsdl:output message="tns2:addResponse"/> + </wsdl:operation> + </wsdl:portType> + <wsdl:binding name="ComponentBinding" type="tns2:ComponentPortType"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> - <operation name="reverse"> + <wsdl:operation name="reverse"> <soap:operation soapAction=""/> - <input> + <wsdl:input> <soap:body use="literal"/> - </input> - <output> + </wsdl:input> + <wsdl:output> <soap:body use="literal"/> - </output> - </operation> - <operation name="add"> + </wsdl:output> + </wsdl:operation> + <wsdl:operation name="add"> <soap:operation soapAction=""/> - <input> + <wsdl:input> <soap:body use="literal"/> - </input> - <output> + </wsdl:input> + <wsdl:output> <soap:body use="literal"/> - </output> - </operation> - </binding> - <service name="ComponentService"> - <port name="ComponentPort" binding="tns2:ComponentBinding"> + </wsdl:output> + </wsdl:operation> + </wsdl:binding> + <wsdl:service name="ComponentService"> + <wsdl:port name="ComponentPort" binding="tns2:ComponentBinding"> <soap:address \ No newline at end of file http://cvs.php.net/viewvc.cgi/pecl/sdo/tests/SCA/phpt/002.phpt?r1=1.3&r2=1.4&diff_format=u Index: pecl/sdo/tests/SCA/phpt/002.phpt diff -u pecl/sdo/tests/SCA/phpt/002.phpt:1.3 pecl/sdo/tests/SCA/phpt/002.phpt:1.4 --- pecl/sdo/tests/SCA/phpt/002.phpt:1.3 Fri Jun 22 14:32:37 2007 +++ pecl/sdo/tests/SCA/phpt/002.phpt Fri Aug 24 15:20:26 2007 @@ -4,19 +4,19 @@ <?php if (!extension_loaded("sdo")) echo "skip sdo not loaded"; -else if (phpversion('sdo') <= '1.2.2') - echo "skip test until pecl bug 11388 resolved"; ?> --FILE-- <?php $HTTP_RAW_POST_DATA = <<<EOF <?xml version="1.0" encoding="UTF-8"?> -<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://Component"><SOAP-ENV:Body><ns1:reverse xmlns="http://Component" xmlns:tns="http://Component" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="reverse"> +<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://Component"> +<SOAP-ENV:Body> +<ns1:reverse xmlns="http://Component" xmlns:tns="http://Component" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="reverse"> <in>IBM</in> -</ns1:reverse></SOAP-ENV:Body></SOAP-ENV:Envelope> - - +</ns1:reverse> +</SOAP-ENV:Body> +</SOAP-ENV:Envelope> EOF; require "SCA/SCA.php"; @@ -33,4 +33,4 @@ ?> --EXPECT-- <?xml version="1.0" encoding="UTF-8"?> -<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://Component"><SOAP-ENV:Body><ns1:reverseResponse xmlns="http://Component"><reverseReturn>MBI</reverseReturn></ns1:reverseResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> \ No newline at end of file +<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://Component"><SOAP-ENV:Body><ns1:reverseResponse><reverseReturn>MBI</reverseReturn></ns1:reverseResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pecl/sdo/tests/SCA/phpt/003.phpt?r1=1.3&r2=1.4&diff_format=u Index: pecl/sdo/tests/SCA/phpt/003.phpt diff -u pecl/sdo/tests/SCA/phpt/003.phpt:1.3 pecl/sdo/tests/SCA/phpt/003.phpt:1.4 --- pecl/sdo/tests/SCA/phpt/003.phpt:1.3 Fri Jun 22 14:32:37 2007 +++ pecl/sdo/tests/SCA/phpt/003.phpt Fri Aug 24 15:20:26 2007 @@ -4,15 +4,15 @@ <?php if (!extension_loaded("sdo")) echo "skip sdo not loaded"; -else if (phpversion('sdo') <= '1.2.2') - echo "skip test until pecl bug 11388 resolved"; ?> --FILE-- <?php $HTTP_RAW_POST_DATA = <<<EOF <?xml version="1.0" encoding="UTF-8"?> -<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://Component"><SOAP-ENV:Body><ns1:add xmlns="http://Component" xmlns:tns="http://Component" xmlns:tns2="http://www.test.com/info" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="add"> +<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://Component"> +<SOAP-ENV:Body> +<ns1:add xmlns="http://Component" xmlns:tns="http://Component" xmlns:tns2="http://www.test.com/info" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="add"> <tns2:person> <tns2:name> <first>William</first> @@ -28,9 +28,9 @@ <type>home</type> <number>123-456</number> </tns2:phone> -</ns1:add></SOAP-ENV:Body></SOAP-ENV:Envelope> - - +</ns1:add> +</SOAP-ENV:Body> +</SOAP-ENV:Envelope> EOF; require "SCA/SCA.php"; @@ -47,4 +47,4 @@ ?> --EXPECT-- <?xml version="1.0" encoding="UTF-8"?> -<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://Component"><SOAP-ENV:Body><ns1:addResponse xmlns="http://Component"><addReturn><name><first>William</first><last>Shakespeare</last></name><phone><type>home</type><number>123-456</number></phone><address><street>456 Evergreen</street><city>Austin</city><state>TX</state></address></addReturn></ns1:addResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> \ No newline at end of file +<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://Component"><SOAP-ENV:Body><ns1:addResponse><addReturn><name><first>William</first><last>Shakespeare</last></name><phone><type>home</type><number>123-456</number></phone><address><street>456 Evergreen</street><city>Austin</city><state>TX</state></address></addReturn></ns1:addResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> \ No newline at end of file
http://cvs.php.net/viewvc.cgi/pecl/sdo/DEV_BRANCH?r1=1.3&r2=1.4&diff_format=u Index: pecl/sdo/DEV_BRANCH diff -u pecl/sdo/DEV_BRANCH:1.3 pecl/sdo/DEV_BRANCH:1.4 --- pecl/sdo/DEV_BRANCH:1.3 Tue Jul 10 10:42:56 2007 +++ pecl/sdo/DEV_BRANCH Fri Aug 24 15:20:20 2007 @@ -1 +1 @@ -EIDER \ No newline at end of file +FULMAR \ No newline at end of file http://cvs.php.net/viewvc.cgi/pecl/sdo/php_sdo_das_xml.h?r1=1.13&r2=1.14&diff_format=u Index: pecl/sdo/php_sdo_das_xml.h diff -u pecl/sdo/php_sdo_das_xml.h:1.13 pecl/sdo/php_sdo_das_xml.h:1.14 --- pecl/sdo/php_sdo_das_xml.h:1.13 Fri Sep 29 15:03:15 2006 +++ pecl/sdo/php_sdo_das_xml.h Fri Aug 24 15:20:20 2007 @@ -1,6 +1,6 @@ /* +----------------------------------------------------------------------+ -| (c) Copyright IBM Corporation 2005, 2006. | +| (c) Copyright IBM Corporation 2005, 2007. | | All Rights Reserved. | +----------------------------------------------------------------------+ | | @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_sdo_das_xml.h,v 1.13 2006/09/29 15:03:15 cem Exp $ */ +/* $Id: php_sdo_das_xml.h,v 1.14 2007/08/24 15:20:20 mfp Exp $ */ #ifndef PHP_SDO_DAS_XML_H #define PHP_SDO_DAS_XML_H @@ -57,6 +57,7 @@ PHP_METHOD(SDO_DAS_XML_Document, setXMLDeclaration); PHP_METHOD(SDO_DAS_XML_Document, setXMLVersion); PHP_METHOD(SDO_DAS_XML_Document, setEncoding); +PHP_METHOD(SDO_DAS_XML_Document, __toString); #endif /* PHP_SDO_DAS_XML_H */ http://cvs.php.net/viewvc.cgi/pecl/sdo/SDO_DAS_XML_Document.cpp?r1=1.16&r2=1.17&diff_format=u Index: pecl/sdo/SDO_DAS_XML_Document.cpp diff -u pecl/sdo/SDO_DAS_XML_Document.cpp:1.16 pecl/sdo/SDO_DAS_XML_Document.cpp:1.17 --- pecl/sdo/SDO_DAS_XML_Document.cpp:1.16 Fri May 4 15:05:47 2007 +++ pecl/sdo/SDO_DAS_XML_Document.cpp Fri Aug 24 15:20:20 2007 @@ -1,6 +1,6 @@ /* +----------------------------------------------------------------------+ -| (c) Copyright IBM Corporation 2005. | +| (c) Copyright IBM Corporation 2005, 2007. | | All Rights Reserved. | +----------------------------------------------------------------------+ | | @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -static char rcs_id[] = "$Id: SDO_DAS_XML_Document.cpp,v 1.16 2007/05/04 15:05:47 mfp Exp $"; +static char rcs_id[] = "$Id: SDO_DAS_XML_Document.cpp,v 1.17 2007/08/24 15:20:20 mfp Exp $"; #ifdef PHP_WIN32 /* disable warning about identifier lengths in browser information */ @@ -64,6 +64,8 @@ sdo_xmldoc_setXMLVersion_args, ZEND_ACC_PUBLIC) ZEND_ME(SDO_DAS_XML_Document, setEncoding, sdo_xmldoc_setEncoding_args, ZEND_ACC_PUBLIC) + ZEND_ME(SDO_DAS_XML_Document, __toString, 0, + ZEND_ACC_PUBLIC) {NULL, NULL, NULL} }; /* }}} */ @@ -124,6 +126,45 @@ } /* }}} */ +/* {{{ sdo_das_xml_document_cast_object +*/ +#if PHP_MAJOR_VERSION > 5 || (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION > 1) +static int sdo_das_xml_document_cast_object(zval *readobj, zval *writeobj, int type TSRMLS_DC) +{ + int should_free = 0; +#else +static int sdo_das_xml_document_cast_object(zval *readobj, zval *writeobj, int type, int should_free TSRMLS_DC) +{ +#endif + xmldocument_object *xmldocument; + ostringstream print_buf; + int rc = SUCCESS; + + xmldocument = (xmldocument_object *) zend_object_store_get_object(readobj TSRMLS_CC); + + try { + /* I don't think Tuscany provides a way to get back to the original + * DataFactory from the XML document, so I'm (expensively and probably + * inaccurately) creating a temporary one. + */ + DataFactoryPtr dataFactoryPtr = DataFactory::getDataFactory(); + XMLHelperPtr xmlHelperPtr = HelperProvider::getXMLHelper((DataFactory *)dataFactoryPtr); + print_buf << xmlHelperPtr->save(xmldocument->xmlDocumentPtr); + + std::string print_string = print_buf.str(); + ZVAL_STRINGL(writeobj, (char *)print_string.c_str(), print_string.length(), 1); + + } catch (SDORuntimeException e) { + ZVAL_NULL(writeobj); + sdo_throw_runtimeexception(&e TSRMLS_CC); + rc = FAILURE; + } + + return rc; + +} +/* }}} */ + /* {{{ sdo_das_xml_document_minit * * Initializes SDO_DAS_XML_Document class @@ -140,6 +181,7 @@ sizeof(zend_object_handlers)); sdo_das_xml_doc_object_handlers.add_ref = SDO_FUNC_ADDREF(das_xml_document); sdo_das_xml_doc_object_handlers.del_ref = SDO_FUNC_DELREF(das_xml_document); + sdo_das_xml_doc_object_handlers.cast_object = sdo_das_xml_document_cast_object; sdo_das_xml_doc_object_handlers.clone_obj = NULL; } /* }}} */ @@ -299,6 +341,18 @@ } /* }}} SDO_DAS_XML_Document::setEncoding */ +/* {{{ SDO_DAS_XML_Document::__toString + */ +PHP_METHOD(SDO_DAS_XML_Document, __toString) +{ +#if PHP_MAJOR_VERSION > 5 || (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION > 1) + sdo_das_xml_document_cast_object(getThis(), return_value, IS_STRING TSRMLS_CC); +#else + sdo_das_xml_document_cast_object(getThis(), return_value, IS_STRING, 0 TSRMLS_CC); +#endif +} +/* }}} */ + /* * Local variables: * tab-width: 4 http://cvs.php.net/viewvc.cgi/pecl/sdo/SDO_DataObject.cpp?r1=1.29&r2=1.30&diff_format=u Index: pecl/sdo/SDO_DataObject.cpp diff -u pecl/sdo/SDO_DataObject.cpp:1.29 pecl/sdo/SDO_DataObject.cpp:1.30 --- pecl/sdo/SDO_DataObject.cpp:1.29 Fri May 4 15:05:47 2007 +++ pecl/sdo/SDO_DataObject.cpp Fri Aug 24 15:20:20 2007 @@ -1,6 +1,6 @@ /* +----------------------------------------------------------------------+ -| Copyright IBM Corporation 2005, 2006. | +| Copyright IBM Corporation 2005, 2007. | | All Rights Reserved. | +----------------------------------------------------------------------+ | | @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -static char rcs_id[] = "$Id: SDO_DataObject.cpp,v 1.29 2007/05/04 15:05:47 mfp Exp $"; +static char rcs_id[] = "$Id: SDO_DataObject.cpp,v 1.30 2007/08/24 15:20:20 mfp Exp $"; #ifdef PHP_WIN32 #include <iostream> @@ -827,7 +827,9 @@ /* the property is set, so we must also compare its value */ ZVAL_STRING(&offset, (char *)propertyName, 0); zval *value1 = sdo_do_read_dimension(object1, &offset, BP_VAR_R TSRMLS_CC); + zval_add_ref(&value1); zval *value2 = sdo_do_read_dimension(object2, &offset, BP_VAR_R TSRMLS_CC); + zval_add_ref(&value2); int rc = compare_function(&result, value1, value2 TSRMLS_CC); zval_ptr_dtor(&value1); zval_ptr_dtor(&value2); http://cvs.php.net/viewvc.cgi/pecl/sdo/MakePackage.php?r1=1.34&r2=1.35&diff_format=u Index: pecl/sdo/MakePackage.php diff -u pecl/sdo/MakePackage.php:1.34 pecl/sdo/MakePackage.php:1.35 --- pecl/sdo/MakePackage.php:1.34 Fri Jun 22 14:32:33 2007 +++ pecl/sdo/MakePackage.php Fri Aug 24 15:20:20 2007 @@ -1,5 +1,5 @@ <?php - /* $Id: MakePackage.php,v 1.34 2007/06/22 14:32:33 mfp Exp $ */ + /* $Id: MakePackage.php,v 1.35 2007/08/24 15:20:20 mfp Exp $ */ require_once('PEAR/PackageFileManager.php'); $packagexml = new PEAR_PackageFileManager; if (PEAR::isError($packagexml)) { @@ -155,23 +155,34 @@ // . " * Experimental support for service names following the PEAR coding standard\n" // . " * Experimental support for a manual service request dispatching interface on SCA.php\n" // , +// 'notes' => +// " * Fixes for PECL bugs:\n" +// . " - PECL#10925 - Don't treat magic PHP methods as service operations\n" +// . " - PECL#10989 - don't automatically make all types in the wsdl nillable\n" +// . " - PECL#10994 - Business Exceptions Data Returned to Client\n" +// . " - PECL#11004 - WSDL Generated Does Not Validate\n" +// . " - PECL#11012 - Visual Studio Consumption of SCA Generated WSDL\n" +// . " * Other:\n" +// . " - Pick up revision 546761 of Tuscany SDO code.\n" +// . " - Include new eBay soap binding\n" +// . " - Tactical version of the in memory caching of the data model enabled for eBay binding\n" +// . " - Unit tests keep going to conclusion even when extensions are missing\n" +// . " - Added the eServiceStore example - shows several components which can be make local or\n" +// . " remote with only a swift change of the @binding annotations.\n" +// , 'notes' => " * Fixes for PECL bugs:\n" - . " - PECL#10925 - Don't treat magic PHP methods as service operations\n" - . " - PECL#10989 - don't automatically make all types in the wsdl nillable\n" - . " - PECL#10994 - Business Exceptions Data Returned to Client\n" - . " - PECL#11004 - WSDL Generated Does Not Validate\n" - . " - PECL#11012 - Visual Studio Consumption of SCA Generated WSDL\n" + . " - TUSCANY-1362 - Incorrect operation of code that checks whether schema is loaded before going out on the net to retrieve it.\n" + . " - TUSCANY-1112 - (which is PECL 9867) Incorrect namespaces in generated XML\n" + . " - TUSCANY-1564 - (which is PECL 11774) xsi:type not always set for complexType\n" + . " - TUSCANY-1566 - Elements coming out in wrong namespace (found by Caroline and reported in the phpsoa group under \"Experiences with Atompub\"\n" . " * Other:\n" - . " - Pick up revision 546761 of Tuscany SDO code.\n" - . " - Include new eBay soap binding\n" - . " - Tactical version of the in memory caching of the data model enabled for eBay binding\n" - . " - Unit tests keep going to conclusion even when extensions are missing\n" - . " - Added the eServiceStore example - shows several components which can be make local or\n" - . " remote with only a swift change of the @binding annotations.\n" + . " - Pick up revision 568244 of Tuscany SDO code.\n" + . " - There is a new Rest Resource binding, with tests and examples.\n" + . " - There is a new simpledb binding with examples\n" , 'simpleoutput' => true, - 'version' => '1.2.2', + 'version' => '1.2.3', 'baseinstalldir' => 'SDO', 'state' => 'stable', 'license' => 'Apache 2.0', http://cvs.php.net/viewvc.cgi/pecl/sdo/php_sdo_int.h?r1=1.26&r2=1.27&diff_format=u Index: pecl/sdo/php_sdo_int.h diff -u pecl/sdo/php_sdo_int.h:1.26 pecl/sdo/php_sdo_int.h:1.27 --- pecl/sdo/php_sdo_int.h:1.26 Fri Jun 22 14:32:33 2007 +++ pecl/sdo/php_sdo_int.h Fri Aug 24 15:20:20 2007 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_sdo_int.h,v 1.26 2007/06/22 14:32:33 mfp Exp $ */ +/* $Id: php_sdo_int.h,v 1.27 2007/08/24 15:20:20 mfp Exp $ */ #ifndef PHP_SDO_INT_H #define PHP_SDO_INT_H @@ -37,7 +37,7 @@ -#define SDO_VERSION "1.2.2" +#define SDO_VERSION "1.2.3" #define SDO_NAMESPACE_URI "namespaceURI" #define SDO_TYPE_NAME "typeName" http://cvs.php.net/viewvc.cgi/pecl/sdo/SDO_DAS_XML.cpp?r1=1.24&r2=1.25&diff_format=u Index: pecl/sdo/SDO_DAS_XML.cpp diff -u pecl/sdo/SDO_DAS_XML.cpp:1.24 pecl/sdo/SDO_DAS_XML.cpp:1.25 --- pecl/sdo/SDO_DAS_XML.cpp:1.24 Fri Jun 22 14:32:33 2007 +++ pecl/sdo/SDO_DAS_XML.cpp Fri Aug 24 15:20:20 2007 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -static char rcs_id[] = "$Id: SDO_DAS_XML.cpp,v 1.24 2007/06/22 14:32:33 mfp Exp $"; +static char rcs_id[] = "$Id: SDO_DAS_XML.cpp,v 1.25 2007/08/24 15:20:20 mfp Exp $"; #ifdef PHP_WIN32 /* disable warning about identifier lengths in browser information */ @@ -264,24 +264,7 @@ int error_count; try { - /* - * The second (boolean) parameter tells Tuscany whether to try loading - * imported schema from the namespaceURI if the schemaLocation attribute - * is omitted. I've turned this on to support some dodgy schema out - * there, but if it causes problems, perhaps a phpini setting may be - * required. - */ - /* Turned this off, for the soap and wsdl schema, on 21 June 07. - * Every load of the wsdl and soap schema was - * taking at least a second, sometimes more than 30, when run from the - * other end of a broadband link. Matthew Peters - */ - if (strstr(file_name,"2003-02-11.xsd")) { - xmldas->xsdHelperPtr->defineFile(file_name, false); - } else { - xmldas->xsdHelperPtr->defineFile(file_name, true); - } - + xmldas->xsdHelperPtr->defineFile(file_name); error_count = xmldas->xsdHelperPtr->getErrorCount(); if (error_count > 0) { ostringstream print_buf; http://cvs.php.net/viewvc.cgi/pecl/sdo/package.xml?r1=1.28&r2=1.29&diff_format=u Index: pecl/sdo/package.xml diff -u pecl/sdo/package.xml:1.28 pecl/sdo/package.xml:1.29 --- pecl/sdo/package.xml:1.28 Fri Jun 22 14:55:38 2007 +++ pecl/sdo/package.xml Fri Aug 24 15:20:20 2007 @@ -32,23 +32,19 @@ </maintainer> </maintainers> <release> - <version>1.2.2</version> - <date>2007-06-20</date> + <version>1.2.3</version> + <date>2007-08-24</date> <license>Apache 2.0</license> <state>stable</state> <notes>* Fixes for PECL bugs: - - PECL#10925 - Don't treat magic PHP methods as service operations - - PECL#10989 - don't automatically make all types in the wsdl nillable - - PECL#10994 - Business Exceptions Data Returned to Client - - PECL#11004 - WSDL Generated Does Not Validate - - PECL#11012 - Visual Studio Consumption of SCA Generated WSDL + - TUSCANY-1362 - Incorrect operation of code that checks whether schema is loaded before going out on the net to retrieve it. + - TUSCANY-1112 - (which is PECL 9867) Incorrect namespaces in generated XML + - TUSCANY-1564 - (which is PECL 11774) xsi:type not always set for complexType + - TUSCANY-1566 - Elements coming out in wrong namespace (found by Caroline and reported in the phpsoa group under "Experiences with Atompub" * Other: - - Pick up revision 546761 of Tuscany SDO code. - - Include new eBay soap binding - - Tactical version of the in memory caching of the data model enabled for eBay binding - - Unit tests keep going to conclusion even when extensions are missing - - Added the eServiceStore example - shows several components which can be make local or - remote with only a swift change of the @binding annotations. + - Pick up revision 568244 of Tuscany SDO code. + - There is a new Rest Resource binding, with tests and examples. + - There is a new simpledb binding with examples </notes> <deps> <dep type="php" rel="ge" version="5.1.0" optional="no"/> @@ -75,6 +71,25 @@ <dir name="local"> <file role="php" name="Proxy.php"/> </dir> <!-- /SCA/Bindings/local --> + <dir name="message"> + <file role="php" name="Mapper.php"/> + <file role="php" name="MessageProviderDescription.xsd"/> + <file role="php" name="Proxy.php"/> + <file role="php" name="RequestTester.php"/> + <file role="php" name="SAM_Client.php"/> + <file role="php" name="ServiceDescriptionGenerator.php"/> + <file role="php" name="ServiceRequestHandler.php"/> + <file role="php" name="Wrapper.php"/> + </dir> <!-- /SCA/Bindings/message --> + <dir name="restresource"> + <file role="php" name="Proxy.php"/> + <file role="php" name="README"/> + <file role="php" name="RequestTester.php"/> + <file role="php" name="ResourceTemplate.php"/> + <file role="php" name="Server.php"/> + <file role="php" name="ServiceRequestHandler.php"/> + <file role="php" name="Wrapper.php"/> + </dir> <!-- /SCA/Bindings/restresource --> <dir name="restrpc"> <file role="php" name="Proxy.php"/> <file role="php" name="README"/> @@ -543,6 +558,15 @@ <file role="test" name="HelloService.php"/> </dir> <!-- /examples/SCA/Local/ScriptCallingLocalSCAComponent --> </dir> <!-- /examples/SCA/Local --> + <dir name="RestResource"> + <file role="test" name="Orders.html"/> + <file role="test" name="Orders.php"/> + <file role="test" name="Orders.xml"/> + <file role="test" name="Orders.xsd"/> + <file role="test" name="OrdersClient.html"/> + <file role="test" name="OrdersClient.php"/> + <file role="test" name="README"/> + </dir> <!-- /examples/SCA/RestResource --> <dir name="Soap"> <dir name="SCAComponentCallingRemoteSCAComponent"> <file role="test" name="HelloClient.php"/> @@ -730,6 +754,20 @@ <file role="test" name="SCALogFilterTest.php"/> <file role="test" name="SCALoggerTest.php"/> </dir> <!-- /tests/SCA/phpunit/LogTests --> + <dir name="RegressionTests"> + <file role="test" name="Bug11774.xsd"/> + <file role="test" name="Bug11774Test.php"/> + <file role="test" name="SCA_RegressionTestSuite.php"/> + <file role="test" name="Tuscany1566Test.php"/> + </dir> <!-- /tests/SCA/phpunit/RegressionTests --> + <dir name="RestResource"> + <file role="test" name="enumerate.response"/> + <file role="test" name="Orders.php"/> + <file role="test" name="Orders.xml"/> + <file role="test" name="Orders.xsd"/> + <file role="test" name="RestResourceTest.php"/> + <file role="test" name="retrieve.response"/> + </dir> <!-- /tests/SCA/phpunit/RestResource --> <dir name="RestRpc"> <file role="test" name="Hello.xsd"/> <file role="test" name="RestRpcTest.php"/> @@ -778,6 +816,7 @@ <file role="test" name="bug8694.phpt"/> <file role="test" name="bug9243.phpt"/> <file role="test" name="bug9487.phpt"/> + <file role="test" name="bug9867.phpt"/> <file role="test" name="bug9991.phpt"/> <file role="test" name="bug10049.phpt"/> <file role="test" name="bug10842.phpt"/> @@ -1056,5 +1095,21 @@ remote with only a swift change of the @binding annotations. </notes> </release> + <release> + <version>1.2.3</version> + <date>2007-08-24</date> + <license>Apache 2.0</license> + <state>stable</state> + <notes>* Fixes for PECL bugs: + - TUSCANY-1362 - Incorrect operation of code that checks whether schema is loaded before going out on the net to retrieve it. + - TUSCANY-1112 - (which is PECL 9867) Incorrect namespaces in generated XML + - TUSCANY-1564 - (which is PECL 11774) xsi:type not always set for complexType + - TUSCANY-1566 - Elements coming out in wrong namespace (found by Caroline and reported in the phpsoa group under "Experiences with Atompub" + * Other: + - Pick up revision 568244 of Tuscany SDO code. + - There is a new Rest Resource binding, with tests and examples. + - There is a new simpledb binding with examples + </notes> + </release> </changelog> </package> http://cvs.php.net/viewvc.cgi/pecl/sdo/tests/SCA/phpunit/SoapBinding/HandlerTest.php?r1=1.2&r2=1.3&diff_format=u Index: pecl/sdo/tests/SCA/phpunit/SoapBinding/HandlerTest.php diff -u pecl/sdo/tests/SCA/phpunit/SoapBinding/HandlerTest.php:1.2 pecl/sdo/tests/SCA/phpunit/SoapBinding/HandlerTest.php:1.3 --- pecl/sdo/tests/SCA/phpunit/SoapBinding/HandlerTest.php:1.2 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/tests/SCA/phpunit/SoapBinding/HandlerTest.php Fri Aug 24 15:20:20 2007 @@ -21,7 +21,6 @@ public function setUp() { - $this->markTestSkipped("Skip until pecl bug 11388 fixed"); if ( ! class_exists('SCA_Bindings_soap_Proxy')) { $this->markTestSkipped("Cannot execute any SCA soap tests as the SCA soap binding is not loaded"); return; @@ -78,7 +77,6 @@ public function testSoapHandlerProcessesCorrectCallCorrectly() { - $this->markTestSkipped("the ob_start() is failing on Linux with 5.2.3"); global $HTTP_RAW_POST_DATA; // make it look to the component as if it is on the receiving end of a SOAP request $_SERVER['HTTP_HOST'] = 'localhost'; http://cvs.php.net/viewvc.cgi/pecl/sdo/tests/SCA/phpunit/SoapBinding/ProxyTest.php?r1=1.2&r2=1.3&diff_format=u Index: pecl/sdo/tests/SCA/phpunit/SoapBinding/ProxyTest.php diff -u pecl/sdo/tests/SCA/phpunit/SoapBinding/ProxyTest.php:1.2 pecl/sdo/tests/SCA/phpunit/SoapBinding/ProxyTest.php:1.3 --- pecl/sdo/tests/SCA/phpunit/SoapBinding/ProxyTest.php:1.2 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/tests/SCA/phpunit/SoapBinding/ProxyTest.php Fri Aug 24 15:20:20 2007 @@ -76,7 +76,7 @@ { require_once "PHPUnit/TextUI/TestRunner.php"; - $suite = new PHPUnit_Framework_TestSuite("SCA_SoapProxyTest"); + $suite = new PHPUnit_Framework_TestSuite("SCA_Bindings_soap_ProxyTest"); $result = PHPUnit_TextUI_TestRunner::run($suite); } http://cvs.php.net/viewvc.cgi/pecl/sdo/tests/SCA/phpunit/SoapBinding/MapperTest.php?r1=1.2&r2=1.3&diff_format=u Index: pecl/sdo/tests/SCA/phpunit/SoapBinding/MapperTest.php diff -u pecl/sdo/tests/SCA/phpunit/SoapBinding/MapperTest.php:1.2 pecl/sdo/tests/SCA/phpunit/SoapBinding/MapperTest.php:1.3 --- pecl/sdo/tests/SCA/phpunit/SoapBinding/MapperTest.php:1.2 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/tests/SCA/phpunit/SoapBinding/MapperTest.php Fri Aug 24 15:20:20 2007 @@ -7,6 +7,7 @@ include_once "SCA/SCA.php"; require_once 'SCA/Bindings/soap/ServiceDescriptionGenerator.php'; require_once 'SCA/Bindings/soap/Mapper.php'; +require_once 'SCA/Bindings/soap/Proxy.php'; class SCA_Bindings_soap_MapperTest extends PHPUnit_Framework_TestCase { @@ -100,12 +101,12 @@ $xml = $th->toXML($request); $this->assertContains('<?xml version="1.0" encoding="UTF-8"?>',$xml); - $this->assertContains('<BOGUS xmlns="http://TypeHandlerTest1">',$xml); - $this->assertContains('<a>hello</a>',$xml); + $this->assertContains('<BOGUS>',$xml); + $this->assertContains('<tns2:a>hello</tns2:a>',$xml); /* there's a difference in the number of trailing zeros which seems to be platform-specific */ - $this->assertRegExp('?<b>1\.100e\+0*</b>?', $xml); - $this->assertContains('<c>99</c>',$xml); - $this->assertContains('<d>true</d>',$xml); + $this->assertRegExp('?<tns2:b>1\.100e\+0*</tns2:b>?', $xml); + $this->assertContains('<tns2:c>99</tns2:c>',$xml); + $this->assertContains('<tns2:d>true</tns2:d>',$xml); $this->assertContains('</BOGUS>',$xml); } @@ -121,12 +122,12 @@ $xml = $th->toXML($request); $this->assertContains('<?xml version="1.0" encoding="UTF-8"?>',$xml); - $this->assertContains('<BOGUS xmlns="http://TypeHandlerTest2">',$xml); - $this->assertContains('<p1>',$xml); + $this->assertContains('<BOGUS>',$xml); + $this->assertContains('<tns2:p1>',$xml); $this->assertContains('<name>William Shakespeare</name>',$xml); $this->assertContains('<dob>April 1564, most likely 23rd</dob>',$xml); $this->assertContains('<pob>Stratford-upon-Avon, Warwickshire</pob>',$xml); - $this->assertContains('</p1>',$xml); + $this->assertContains('</tns2:p1>',$xml); $this->assertContains('</BOGUS>',$xml); } @@ -143,11 +144,11 @@ $xml = $th->toXML($request); $this->assertContains('<?xml version="1.0" encoding="UTF-8"?>',$xml); - $this->assertContains('<BOGUS xmlns="http://TypeHandlerTest1">',$xml); - $this->assertContains('<a xsi:nil="true"/>',$xml); - $this->assertContains('<b xsi:nil="true"/>',$xml); - $this->assertContains('<c xsi:nil="true"/>',$xml); - $this->assertContains('<d xsi:nil="true"/>',$xml); + $this->assertContains('<BOGUS>',$xml); + $this->assertContains('<tns2:a xsi:nil="true"/>',$xml); + $this->assertContains('<tns2:b xsi:nil="true"/>',$xml); + $this->assertContains('<tns2:c xsi:nil="true"/>',$xml); + $this->assertContains('<tns2:d xsi:nil="true"/>',$xml); $this->assertContains('</BOGUS>',$xml); } http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/TypeDefinitionImpl.h?r1=1.5&r2=1.6&diff_format=u Index: pecl/sdo/commonj/sdo/TypeDefinitionImpl.h diff -u pecl/sdo/commonj/sdo/TypeDefinitionImpl.h:1.5 pecl/sdo/commonj/sdo/TypeDefinitionImpl.h:1.6 --- pecl/sdo/commonj/sdo/TypeDefinitionImpl.h:1.5 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/TypeDefinitionImpl.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _TYPEDefinitionImpl_H_ #define _TYPEDefinitionImpl_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXMLBufferWriter.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXMLBufferWriter.h diff -u pecl/sdo/commonj/sdo/SDOXMLBufferWriter.h:1.7 pecl/sdo/commonj/sdo/SDOXMLBufferWriter.h:1.8 --- pecl/sdo/commonj/sdo/SDOXMLBufferWriter.h:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SDOXMLBufferWriter.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _SDOXMLBUFFERWRITER_H_ #define _SDOXMLBUFFERWRITER_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/PropertyList.h?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/PropertyList.h diff -u pecl/sdo/commonj/sdo/PropertyList.h:1.9 pecl/sdo/commonj/sdo/PropertyList.h:1.10 --- pecl/sdo/commonj/sdo/PropertyList.h:1.9 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/PropertyList.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 479634 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 479634 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _PROPERTYLIST_H_ #define _PROPERTYLIST_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XMLDocument.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/XMLDocument.cpp diff -u pecl/sdo/commonj/sdo/XMLDocument.cpp:1.7 pecl/sdo/commonj/sdo/XMLDocument.cpp:1.8 --- pecl/sdo/commonj/sdo/XMLDocument.cpp:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/XMLDocument.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/XMLDocument.h" namespace commonj http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXSDFileWriter.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXSDFileWriter.h diff -u pecl/sdo/commonj/sdo/SDOXSDFileWriter.h:1.7 pecl/sdo/commonj/sdo/SDOXSDFileWriter.h:1.8 --- pecl/sdo/commonj/sdo/SDOXSDFileWriter.h:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SDOXSDFileWriter.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _SDOXSDFILEWRITER_H_ #define _SDOXSDFILEWRITER_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/Sequence.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/Sequence.cpp diff -u pecl/sdo/commonj/sdo/Sequence.cpp:1.7 pecl/sdo/commonj/sdo/Sequence.cpp:1.8 --- pecl/sdo/commonj/sdo/Sequence.cpp:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/Sequence.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/Property.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DASValue.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/DASValue.h diff -u pecl/sdo/commonj/sdo/DASValue.h:1.8 pecl/sdo/commonj/sdo/DASValue.h:1.9 --- pecl/sdo/commonj/sdo/DASValue.h:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/DASValue.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _SDO_DASValue_H_ #define _SDO_DASValue_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/EqualityHelper.cpp?r1=1.11&r2=1.12&diff_format=u Index: pecl/sdo/commonj/sdo/EqualityHelper.cpp diff -u pecl/sdo/commonj/sdo/EqualityHelper.cpp:1.11 pecl/sdo/commonj/sdo/EqualityHelper.cpp:1.12 --- pecl/sdo/commonj/sdo/EqualityHelper.cpp:1.11 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/EqualityHelper.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 509676 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 509676 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/Property.h" #include "commonj/sdo/Type.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/TypeDefinitions.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/TypeDefinitions.cpp diff -u pecl/sdo/commonj/sdo/TypeDefinitions.cpp:1.7 pecl/sdo/commonj/sdo/TypeDefinitions.cpp:1.8 --- pecl/sdo/commonj/sdo/TypeDefinitions.cpp:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/TypeDefinitions.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 524004 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 524004 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/TypeDefinitions.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXSDWriter.h?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXSDWriter.h diff -u pecl/sdo/commonj/sdo/SDOXSDWriter.h:1.9 pecl/sdo/commonj/sdo/SDOXSDWriter.h:1.10 --- pecl/sdo/commonj/sdo/SDOXSDWriter.h:1.9 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SDOXSDWriter.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _SDOXSDWRITER_H_ #define _SDOXSDWRITER_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/disable_warn.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/disable_warn.h diff -u pecl/sdo/commonj/sdo/disable_warn.h:1.7 pecl/sdo/commonj/sdo/disable_warn.h:1.8 --- pecl/sdo/commonj/sdo/disable_warn.h:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/disable_warn.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _DISABLE_WARN_H_ #define _DISABLE_WARN_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/Logger.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/Logger.cpp diff -u pecl/sdo/commonj/sdo/Logger.cpp:1.8 pecl/sdo/commonj/sdo/Logger.cpp:1.9 --- pecl/sdo/commonj/sdo/Logger.cpp:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/Logger.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/Logger.h" #include <iostream> http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SettingList.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/SettingList.h diff -u pecl/sdo/commonj/sdo/SettingList.h:1.8 pecl/sdo/commonj/sdo/SettingList.h:1.9 --- pecl/sdo/commonj/sdo/SettingList.h:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SettingList.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef SETTINGLIST_H #define SETTINGLIST_H http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/ChangeSummaryImpl.h?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/ChangeSummaryImpl.h diff -u pecl/sdo/commonj/sdo/ChangeSummaryImpl.h:1.9 pecl/sdo/commonj/sdo/ChangeSummaryImpl.h:1.10 --- pecl/sdo/commonj/sdo/ChangeSummaryImpl.h:1.9 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/ChangeSummaryImpl.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _CHANGESUMMARYIMPL_H_ #define _CHANGESUMMARYIMPL_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XSDHelperImpl.cpp?r1=1.12&r2=1.13&diff_format=u Index: pecl/sdo/commonj/sdo/XSDHelperImpl.cpp diff -u pecl/sdo/commonj/sdo/XSDHelperImpl.cpp:1.12 pecl/sdo/commonj/sdo/XSDHelperImpl.cpp:1.13 --- pecl/sdo/commonj/sdo/XSDHelperImpl.cpp:1.12 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/XSDHelperImpl.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 524004 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 550013 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/SDOXMLFileWriter.h" // Include first to avoid libxml compile problems! #include "commonj/sdo/SDOXMLStreamWriter.h" // Include first to avoid libxml compile problems! @@ -56,7 +56,7 @@ XSDHelperImpl::XSDHelperImpl(DataFactoryPtr df) { - dataFactory = (DataFactory*)df; + dataFactory = df; if (!dataFactory) { dataFactory = DataFactory::getDataFactory(); @@ -78,60 +78,53 @@ * */ - const char* XSDHelperImpl::defineFile(const char* schema, bool loadImportNamespace) + const char* XSDHelperImpl::defineFile(const char* schema) { clearErrors(); - SDOSchemaSAX2Parser* schemaParser; + SDOSchemaSAX2Parser schemaParser(schemaInfo, this, parsedLocations, definedNamespaces); - /* Build URI allowing for Windows path - */ - xmlChar*const uri = xmlCanonicPath((xmlChar*)schema); - try - { - schemaParser = parseIfNot(uri, loadImportNamespace); - } - catch(...) + // Build URI allowing for Windows path + xmlChar* uri = xmlCanonicPath((xmlChar*)schema); + SDOXMLString schemaUri(uri); + if (uri) { xmlFree(uri); - throw; } - xmlFree(uri); - if (schemaParser) - { - defineTypes(schemaParser->getTypeDefinitions()); - return schemaParser->getTargetNamespaceURI(); - } - return 0; + if (0 != schemaParser.parseURI(schemaUri, SDOXMLString())) + return 0; + defineTypes(schemaParser.getTypeDefinitions()); + return schemaInfo.getTargetNamespaceURI(); } - const char* XSDHelperImpl::defineFile(const SDOString& schema, bool loadImportNamespace) + + const char* XSDHelperImpl::defineFile(const SDOString& schema) { - return defineFile(schema.c_str(), loadImportNamespace); + return defineFile(schema.c_str()); } - const char* XSDHelperImpl::define(std::istream& schema, bool loadImportNamespace) + const char* XSDHelperImpl::define(std::istream& schema) { - SDOSchemaSAX2Parser schemaParser(schemaInfo, this, loadImportNamespace); + SDOSchemaSAX2Parser schemaParser(schemaInfo, this, parsedLocations, definedNamespaces); clearErrors(); schema >> schemaParser; defineTypes(schemaParser.getTypeDefinitions()); return schemaInfo.getTargetNamespaceURI(); } - const char* XSDHelperImpl::define(const char* schema, bool loadImportNamespace) + const char* XSDHelperImpl::define(const char* schema) { std::istringstream str(schema); - SDOSchemaSAX2Parser schemaParser(schemaInfo, this, loadImportNamespace); + SDOSchemaSAX2Parser schemaParser(schemaInfo, this, parsedLocations, definedNamespaces); clearErrors(); str >> schemaParser; defineTypes(schemaParser.getTypeDefinitions()); return schemaInfo.getTargetNamespaceURI(); return define(str); } - const char* XSDHelperImpl::define(const SDOString& schema, bool loadImportNamespace) + const char* XSDHelperImpl::define(const SDOString& schema) { std::istringstream str(schema); - SDOSchemaSAX2Parser schemaParser(schemaInfo, this, loadImportNamespace); + SDOSchemaSAX2Parser schemaParser(schemaInfo, this, parsedLocations, definedNamespaces); clearErrors(); str >> schemaParser; defineTypes(schemaParser.getTypeDefinitions()); http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/TypeDefinition.h?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/TypeDefinition.h diff -u pecl/sdo/commonj/sdo/TypeDefinition.h:1.9 pecl/sdo/commonj/sdo/TypeDefinition.h:1.10 --- pecl/sdo/commonj/sdo/TypeDefinition.h:1.9 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/TypeDefinition.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _TYPEDefinition_H_ #define _TYPEDefinition_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SAX2Attributes.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SAX2Attributes.h diff -u pecl/sdo/commonj/sdo/SAX2Attributes.h:1.7 pecl/sdo/commonj/sdo/SAX2Attributes.h:1.8 --- pecl/sdo/commonj/sdo/SAX2Attributes.h:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SAX2Attributes.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _SAX2ATTRIBUTES_H_ #define _SAX2ATTRIBUTES_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DASType.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/DASType.cpp diff -u pecl/sdo/commonj/sdo/DASType.cpp:1.8 pecl/sdo/commonj/sdo/DASType.cpp:1.9 --- pecl/sdo/commonj/sdo/DASType.cpp:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/DASType.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/DASType.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/TypeImpl.h?r1=1.11&r2=1.12&diff_format=u Index: pecl/sdo/commonj/sdo/TypeImpl.h diff -u pecl/sdo/commonj/sdo/TypeImpl.h:1.11 pecl/sdo/commonj/sdo/TypeImpl.h:1.12 --- pecl/sdo/commonj/sdo/TypeImpl.h:1.11 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/TypeImpl.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 546667 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 546667 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _TYPEIMPL_H_ #define _TYPEIMPL_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataFactory.cpp?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/DataFactory.cpp diff -u pecl/sdo/commonj/sdo/DataFactory.cpp:1.9 pecl/sdo/commonj/sdo/DataFactory.cpp:1.10 --- pecl/sdo/commonj/sdo/DataFactory.cpp:1.9 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DataFactory.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/DataFactory.h" #include "commonj/sdo/DataFactoryImpl.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/GroupEvent.h?r1=1.5&r2=1.6&diff_format=u Index: pecl/sdo/commonj/sdo/GroupEvent.h diff -u pecl/sdo/commonj/sdo/GroupEvent.h:1.5 pecl/sdo/commonj/sdo/GroupEvent.h:1.6 --- pecl/sdo/commonj/sdo/GroupEvent.h:1.5 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/GroupEvent.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _GROUPEVENT_H_ #define _GROUPEVENT_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/HelperProvider.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/HelperProvider.cpp diff -u pecl/sdo/commonj/sdo/HelperProvider.cpp:1.7 pecl/sdo/commonj/sdo/HelperProvider.cpp:1.8 --- pecl/sdo/commonj/sdo/HelperProvider.cpp:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/HelperProvider.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/HelperProvider.h" #include "commonj/sdo/XSDHelperImpl.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/GroupDefinition.cpp?r1=1.5&r2=1.6&diff_format=u Index: pecl/sdo/commonj/sdo/GroupDefinition.cpp diff -u pecl/sdo/commonj/sdo/GroupDefinition.cpp:1.5 pecl/sdo/commonj/sdo/GroupDefinition.cpp:1.6 --- pecl/sdo/commonj/sdo/GroupDefinition.cpp:1.5 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/GroupDefinition.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/GroupDefinition.h" namespace commonj http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XSDTypeInfo.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/XSDTypeInfo.h diff -u pecl/sdo/commonj/sdo/XSDTypeInfo.h:1.7 pecl/sdo/commonj/sdo/XSDTypeInfo.h:1.8 --- pecl/sdo/commonj/sdo/XSDTypeInfo.h:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/XSDTypeInfo.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _XSDTypeInfo_H_ #define _XSDTypeInfo_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/LogWriter.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/LogWriter.cpp diff -u pecl/sdo/commonj/sdo/LogWriter.cpp:1.7 pecl/sdo/commonj/sdo/LogWriter.cpp:1.8 --- pecl/sdo/commonj/sdo/LogWriter.cpp:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/LogWriter.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/LogWriter.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOSPI.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SDOSPI.h diff -u pecl/sdo/commonj/sdo/SDOSPI.h:1.7 pecl/sdo/commonj/sdo/SDOSPI.h:1.8 --- pecl/sdo/commonj/sdo/SDOSPI.h:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDOSPI.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/DataFactory.h" #include "commonj/sdo/ChangeSummary.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SAX2Attributes.cpp?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/SAX2Attributes.cpp diff -u pecl/sdo/commonj/sdo/SAX2Attributes.cpp:1.9 pecl/sdo/commonj/sdo/SAX2Attributes.cpp:1.10 --- pecl/sdo/commonj/sdo/SAX2Attributes.cpp:1.9 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SAX2Attributes.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 511929 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 511929 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/SAX2Attributes.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DefaultLogWriter.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/DefaultLogWriter.h diff -u pecl/sdo/commonj/sdo/DefaultLogWriter.h:1.8 pecl/sdo/commonj/sdo/DefaultLogWriter.h:1.9 --- pecl/sdo/commonj/sdo/DefaultLogWriter.h:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DefaultLogWriter.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef SDO_DefaultLOGWriter_H #define SDO_DefaultLOGWriter_H http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/RefCountingObject.h?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/RefCountingObject.h diff -u pecl/sdo/commonj/sdo/RefCountingObject.h:1.9 pecl/sdo/commonj/sdo/RefCountingObject.h:1.10 --- pecl/sdo/commonj/sdo/RefCountingObject.h:1.9 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/RefCountingObject.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _REFCOUNTINGOBJECT_H #define _REFCOUNTINGOBJECT_H http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/Type.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/Type.cpp diff -u pecl/sdo/commonj/sdo/Type.cpp:1.7 pecl/sdo/commonj/sdo/Type.cpp:1.8 --- pecl/sdo/commonj/sdo/Type.cpp:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/Type.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/Type.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/PropertyImpl.h?r1=1.10&r2=1.11&diff_format=u Index: pecl/sdo/commonj/sdo/PropertyImpl.h diff -u pecl/sdo/commonj/sdo/PropertyImpl.h:1.10 pecl/sdo/commonj/sdo/PropertyImpl.h:1.11 --- pecl/sdo/commonj/sdo/PropertyImpl.h:1.10 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/PropertyImpl.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 509991 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 509991 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _PROPERTYIMPL_H_ #define _PROPERTYIMPL_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXMLFileWriter.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXMLFileWriter.cpp diff -u pecl/sdo/commonj/sdo/SDOXMLFileWriter.cpp:1.7 pecl/sdo/commonj/sdo/SDOXMLFileWriter.cpp:1.8 --- pecl/sdo/commonj/sdo/SDOXMLFileWriter.cpp:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDOXMLFileWriter.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/SDOXMLFileWriter.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XMLHelper.h?r1=1.11&r2=1.12&diff_format=u Index: pecl/sdo/commonj/sdo/XMLHelper.h diff -u pecl/sdo/commonj/sdo/XMLHelper.h:1.11 pecl/sdo/commonj/sdo/XMLHelper.h:1.12 --- pecl/sdo/commonj/sdo/XMLHelper.h:1.11 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/XMLHelper.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 479634 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 479634 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _XMLHELPER_H_ #define _XMLHELPER_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XSDHelperImpl.h?r1=1.11&r2=1.12&diff_format=u Index: pecl/sdo/commonj/sdo/XSDHelperImpl.h diff -u pecl/sdo/commonj/sdo/XSDHelperImpl.h:1.11 pecl/sdo/commonj/sdo/XSDHelperImpl.h:1.12 --- pecl/sdo/commonj/sdo/XSDHelperImpl.h:1.11 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/XSDHelperImpl.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 524004 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 549789 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _XSDHELPERIMPL_H_ #define _XSDHELPERIMPL_H_ @@ -31,6 +31,7 @@ #include "commonj/sdo/SchemaInfo.h" #include "commonj/sdo/TypeDefinitionsImpl.h" #include "commonj/sdo/ParserErrorSetter.h" +#include "commonj/sdo/SDOSchemaSAX2Parser.h" namespace commonj { @@ -64,11 +65,11 @@ * The return value is the URI of the root Type * */ - virtual const char* defineFile(const char* schemaFile, bool loadImportNamespace = false); - virtual const char* defineFile(const SDOString& schemaFile, bool loadImportNamespace = false); - virtual const char* define(std::istream& schema, bool loadImportNamespace = false); - virtual const char* define(const char* schema, bool loadImportNamespace = false); - virtual const char* define(const SDOString& schema, bool loadImportNamespace = false); + virtual const char* defineFile(const char* schemaFile); + virtual const char* defineFile(const SDOString& schemaFile); + virtual const char* define(std::istream& schema); + virtual const char* define(const char* schema); + virtual const char* define(const SDOString& schema); /** getErrorCount gets number of parse errors * @@ -159,7 +160,10 @@ std::vector<char*> parseErrors; - TypeDefinitions definedTypes; + TypeDefinitions definedTypes; + SDOSchemaSAX2Parser::PARSED_LOCATIONS parsedLocations; + + SDOSchemaSAX2Parser::DEFINED_NAMESPACES definedNamespaces; }; } // End - namespace sdo http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDORuntimeException.cpp?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/SDORuntimeException.cpp diff -u pecl/sdo/commonj/sdo/SDORuntimeException.cpp:1.9 pecl/sdo/commonj/sdo/SDORuntimeException.cpp:1.10 --- pecl/sdo/commonj/sdo/SDORuntimeException.cpp:1.9 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDORuntimeException.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 509544 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 509544 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/SDORuntimeException.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataFactoryImpl.cpp?r1=1.18&r2=1.19&diff_format=u Index: pecl/sdo/commonj/sdo/DataFactoryImpl.cpp diff -u pecl/sdo/commonj/sdo/DataFactoryImpl.cpp:1.18 pecl/sdo/commonj/sdo/DataFactoryImpl.cpp:1.19 --- pecl/sdo/commonj/sdo/DataFactoryImpl.cpp:1.18 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DataFactoryImpl.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 510951 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 547318 $ $Date: 2007/08/24 15:20:20 $ */ ////////////////////////////////////////////////////////////////////// // DataFactoryImpl.cpp: implementation of the DataFactory class. @@ -75,10 +75,6 @@ // abstract addType(Type::SDOTypeNamespaceURI,"ChangeSummary"); - rootElementName.erase(); - - - } // =================================================================== @@ -97,24 +93,6 @@ delete typeIter->second; } } - - rootElementName.erase(); - -} - -// =================================================================== -// get the root element name -// =================================================================== -// const char* DataFactoryImpl::getRootElementName() const -const SDOString& DataFactoryImpl::getRootElementName() const -{ - return rootElementName; -} - - -void DataFactoryImpl::setRootElementName(const SDOString& ren) -{ - rootElementName = ren; } // =================================================================== @@ -123,7 +101,6 @@ DataFactoryImpl::DataFactoryImpl(const DataFactoryImpl& inmdg) { isResolved = false; - setRootElementName(inmdg.getRootElementName()); copyTypes(inmdg); } @@ -135,7 +112,6 @@ if (this != &inmdg) { copyTypes(inmdg); - setRootElementName(inmdg.getRootElementName()); } return *this; } http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SdoRuntime.cpp?r1=1.10&r2=1.11&diff_format=u Index: pecl/sdo/commonj/sdo/SdoRuntime.cpp diff -u pecl/sdo/commonj/sdo/SdoRuntime.cpp:1.10 pecl/sdo/commonj/sdo/SdoRuntime.cpp:1.11 --- pecl/sdo/commonj/sdo/SdoRuntime.cpp:1.10 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SdoRuntime.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/SdoRuntime.h" #include <iostream> http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/PropertySetting.cpp?r1=1.10&r2=1.11&diff_format=u Index: pecl/sdo/commonj/sdo/PropertySetting.cpp diff -u pecl/sdo/commonj/sdo/PropertySetting.cpp:1.10 pecl/sdo/commonj/sdo/PropertySetting.cpp:1.11 --- pecl/sdo/commonj/sdo/PropertySetting.cpp:1.10 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/PropertySetting.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 482588 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 482588 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/PropertySetting.h" #include "SDOString.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XSDPropertyInfo.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/XSDPropertyInfo.h diff -u pecl/sdo/commonj/sdo/XSDPropertyInfo.h:1.8 pecl/sdo/commonj/sdo/XSDPropertyInfo.h:1.9 --- pecl/sdo/commonj/sdo/XSDPropertyInfo.h:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/XSDPropertyInfo.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _XSDPropertyInfo_H_ #define _XSDPropertyInfo_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/TypeDefinitionImpl.cpp?r1=1.5&r2=1.6&diff_format=u Index: pecl/sdo/commonj/sdo/TypeDefinitionImpl.cpp diff -u pecl/sdo/commonj/sdo/TypeDefinitionImpl.cpp:1.5 pecl/sdo/commonj/sdo/TypeDefinitionImpl.cpp:1.6 --- pecl/sdo/commonj/sdo/TypeDefinitionImpl.cpp:1.5 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/TypeDefinitionImpl.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/TypeDefinitionImpl.h" namespace commonj http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXMLStreamWriter.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXMLStreamWriter.cpp diff -u pecl/sdo/commonj/sdo/SDOXMLStreamWriter.cpp:1.8 pecl/sdo/commonj/sdo/SDOXMLStreamWriter.cpp:1.9 --- pecl/sdo/commonj/sdo/SDOXMLStreamWriter.cpp:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDOXMLStreamWriter.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/SDOXMLStreamWriter.h" #include <sstream> http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XMLDocumentImpl.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/XMLDocumentImpl.h diff -u pecl/sdo/commonj/sdo/XMLDocumentImpl.h:1.7 pecl/sdo/commonj/sdo/XMLDocumentImpl.h:1.8 --- pecl/sdo/commonj/sdo/XMLDocumentImpl.h:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/XMLDocumentImpl.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _XMLDocumentImpl_H_ #define _XMLDocumentImpl_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDODate.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/SDODate.cpp diff -u pecl/sdo/commonj/sdo/SDODate.cpp:1.8 pecl/sdo/commonj/sdo/SDODate.cpp:1.9 --- pecl/sdo/commonj/sdo/SDODate.cpp:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDODate.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 495235 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 495235 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/SDODate.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/TypeDefinition.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/TypeDefinition.cpp diff -u pecl/sdo/commonj/sdo/TypeDefinition.cpp:1.7 pecl/sdo/commonj/sdo/TypeDefinition.cpp:1.8 --- pecl/sdo/commonj/sdo/TypeDefinition.cpp:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/TypeDefinition.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/TypeDefinition.h" #include "commonj/sdo/TypeDefinitionImpl.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/ChangedDataObjectListImpl.h?r1=1.10&r2=1.11&diff_format=u Index: pecl/sdo/commonj/sdo/ChangedDataObjectListImpl.h diff -u pecl/sdo/commonj/sdo/ChangedDataObjectListImpl.h:1.10 pecl/sdo/commonj/sdo/ChangedDataObjectListImpl.h:1.11 --- pecl/sdo/commonj/sdo/ChangedDataObjectListImpl.h:1.10 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/ChangedDataObjectListImpl.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 479634 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 479634 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _ChangedDataObjectListImplIMPL_H_ #define _ChangedDataObjectListImplIMPL_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SettingList.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/SettingList.cpp diff -u pecl/sdo/commonj/sdo/SettingList.cpp:1.8 pecl/sdo/commonj/sdo/SettingList.cpp:1.9 --- pecl/sdo/commonj/sdo/SettingList.cpp:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SettingList.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 511929 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 511929 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/SDORuntimeException.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XMLHelper.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/XMLHelper.cpp diff -u pecl/sdo/commonj/sdo/XMLHelper.cpp:1.7 pecl/sdo/commonj/sdo/XMLHelper.cpp:1.8 --- pecl/sdo/commonj/sdo/XMLHelper.cpp:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/XMLHelper.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/XMLHelper.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOSchemaSAX2Parser.h?r1=1.10&r2=1.11&diff_format=u Index: pecl/sdo/commonj/sdo/SDOSchemaSAX2Parser.h diff -u pecl/sdo/commonj/sdo/SDOSchemaSAX2Parser.h:1.10 pecl/sdo/commonj/sdo/SDOSchemaSAX2Parser.h:1.11 --- pecl/sdo/commonj/sdo/SDOSchemaSAX2Parser.h:1.10 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SDOSchemaSAX2Parser.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 492097 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 549789 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _SDOSCHEMASAX2PARSER_H_ #define _SDOSCHEMASAX2PARSER_H_ @@ -37,8 +37,6 @@ namespace sdo { - - /** * SDOSAX2Parser implements SAX2Parser. * This class gets called back by the libxml library, and @@ -49,10 +47,13 @@ { public: + typedef std::map<SDOXMLString, SDOXMLString> PARSED_LOCATIONS; + typedef std::vector<SDOXMLString> DEFINED_NAMESPACES; SDOSchemaSAX2Parser(SchemaInfo& schemaInfo, ParserErrorSetter* insetter, - bool loadImportNamespace = false); + PARSED_LOCATIONS& parsedLocations, + DEFINED_NAMESPACES& definedNamepaces); virtual ~SDOSchemaSAX2Parser(); @@ -73,7 +74,6 @@ virtual void stream(std::istream& input); virtual int parse(const char* filename); - virtual void endDocument(); @@ -84,7 +84,8 @@ friend std::istream& operator>>(std::istream& input, SDOSchemaSAX2Parser& parser); friend std::istringstream& operator>>(std::istringstream& input, SDOSchemaSAX2Parser& parser); - void free(xmlChar* absoluteUri); + + int parseURI(const SDOXMLString& location, const SDOXMLString& base); private: @@ -223,8 +224,9 @@ TypeDefinitionsImpl typeDefinitions; - bool loadImportNamespace; - + PARSED_LOCATIONS& parsedLocations; + DEFINED_NAMESPACES& definedNamespaces; + }; http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/PropertyDefinitionImpl.cpp?r1=1.5&r2=1.6&diff_format=u Index: pecl/sdo/commonj/sdo/PropertyDefinitionImpl.cpp diff -u pecl/sdo/commonj/sdo/PropertyDefinitionImpl.cpp:1.5 pecl/sdo/commonj/sdo/PropertyDefinitionImpl.cpp:1.6 --- pecl/sdo/commonj/sdo/PropertyDefinitionImpl.cpp:1.5 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/PropertyDefinitionImpl.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/PropertyDefinitionImpl.h" namespace commonj http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXMLString.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXMLString.h diff -u pecl/sdo/commonj/sdo/SDOXMLString.h:1.7 pecl/sdo/commonj/sdo/SDOXMLString.h:1.8 --- pecl/sdo/commonj/sdo/SDOXMLString.h:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SDOXMLString.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/disable_warn.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SequenceImpl.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/SequenceImpl.h diff -u pecl/sdo/commonj/sdo/SequenceImpl.h:1.8 pecl/sdo/commonj/sdo/SequenceImpl.h:1.9 --- pecl/sdo/commonj/sdo/SequenceImpl.h:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SequenceImpl.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 517787 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 517787 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _SEQUENCEIMPL_H_ #define _SEQUENCEIMPL_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataObjectListImpl.h?r1=1.13&r2=1.14&diff_format=u Index: pecl/sdo/commonj/sdo/DataObjectListImpl.h diff -u pecl/sdo/commonj/sdo/DataObjectListImpl.h:1.13 pecl/sdo/commonj/sdo/DataObjectListImpl.h:1.14 --- pecl/sdo/commonj/sdo/DataObjectListImpl.h:1.13 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/DataObjectListImpl.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 502599 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 502599 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _DATAOBJECTLISTIMPL_H_ #define _DATAOBJECTLISTIMPL_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataObject.h?r1=1.11&r2=1.12&diff_format=u Index: pecl/sdo/commonj/sdo/DataObject.h diff -u pecl/sdo/commonj/sdo/DataObject.h:1.11 pecl/sdo/commonj/sdo/DataObject.h:1.12 --- pecl/sdo/commonj/sdo/DataObject.h:1.11 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/DataObject.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 506932 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 506932 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _DATAOBJECT_H_ #define _DATAOBJECT_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XMLHelperImpl.h?r1=1.11&r2=1.12&diff_format=u Index: pecl/sdo/commonj/sdo/XMLHelperImpl.h diff -u pecl/sdo/commonj/sdo/XMLHelperImpl.h:1.11 pecl/sdo/commonj/sdo/XMLHelperImpl.h:1.12 --- pecl/sdo/commonj/sdo/XMLHelperImpl.h:1.11 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/XMLHelperImpl.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 479634 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 547318 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _XMLHELPERIMPL_H_ #define _XMLHELPERIMPL_H_ @@ -172,12 +172,8 @@ DataFactoryPtr dataFactory; SDOXMLString targetNamespaceURI; - XMLDocumentPtr createDocument(DataObjectPtr dataObject); - -// const TypeImpl* findRoot(DataFactory* df, -// const char* rootElementURI); - const TypeImpl* findRoot(DataFactory* df, - const SDOString& rootElementURI); + const TypeImpl* findRoot(DataFactory* df, + const SDOString& rootElementURI); DataFactoryPtr getDataFactory(); }; http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/GroupEvent.cpp?r1=1.5&r2=1.6&diff_format=u Index: pecl/sdo/commonj/sdo/GroupEvent.cpp diff -u pecl/sdo/commonj/sdo/GroupEvent.cpp:1.5 pecl/sdo/commonj/sdo/GroupEvent.cpp:1.6 --- pecl/sdo/commonj/sdo/GroupEvent.cpp:1.5 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/GroupEvent.cpp Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:20 $ */ #include "commonj/sdo/GroupEvent.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/PropertySetting.h?r1=1.10&r2=1.11&diff_format=u Index: pecl/sdo/commonj/sdo/PropertySetting.h diff -u pecl/sdo/commonj/sdo/PropertySetting.h:1.10 pecl/sdo/commonj/sdo/PropertySetting.h:1.11 --- pecl/sdo/commonj/sdo/PropertySetting.h:1.10 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/PropertySetting.h Fri Aug 24 15:20:20 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 482588 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 482588 $ $Date: 2007/08/24 15:20:20 $ */ #ifndef _PROPERTYSETTING_H_ #define _PROPERTYSETTING_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DASValues.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/DASValues.h diff -u pecl/sdo/commonj/sdo/DASValues.h:1.8 pecl/sdo/commonj/sdo/DASValues.h:1.9 --- pecl/sdo/commonj/sdo/DASValues.h:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/DASValues.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _SDO_DASValues_H_ #define _SDO_DASValues_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataObjectList.h?r1=1.12&r2=1.13&diff_format=u Index: pecl/sdo/commonj/sdo/DataObjectList.h diff -u pecl/sdo/commonj/sdo/DataObjectList.h:1.12 pecl/sdo/commonj/sdo/DataObjectList.h:1.13 --- pecl/sdo/commonj/sdo/DataObjectList.h:1.12 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/DataObjectList.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 502599 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 502599 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _DATAOBJECTLIST_H_ #define _DATAOBJECTLIST_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/TypeList.h?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/TypeList.h diff -u pecl/sdo/commonj/sdo/TypeList.h:1.9 pecl/sdo/commonj/sdo/TypeList.h:1.10 --- pecl/sdo/commonj/sdo/TypeList.h:1.9 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/TypeList.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 479634 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 479634 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _TYPELIST_H_ #define _TYPELIST_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataGraphImpl.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/DataGraphImpl.h diff -u pecl/sdo/commonj/sdo/DataGraphImpl.h:1.8 pecl/sdo/commonj/sdo/DataGraphImpl.h:1.9 --- pecl/sdo/commonj/sdo/DataGraphImpl.h:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/DataGraphImpl.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _DATAGRAPHIMPL_H_ #define _DATAGRAPHIMPL_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/GroupDefinition.h?r1=1.5&r2=1.6&diff_format=u Index: pecl/sdo/commonj/sdo/GroupDefinition.h diff -u pecl/sdo/commonj/sdo/GroupDefinition.h:1.5 pecl/sdo/commonj/sdo/GroupDefinition.h:1.6 --- pecl/sdo/commonj/sdo/GroupDefinition.h:1.5 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/GroupDefinition.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _GROUPDEFINITION_H_ #define _GROUPDEFINITION_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataObject.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/DataObject.cpp diff -u pecl/sdo/commonj/sdo/DataObject.cpp:1.8 pecl/sdo/commonj/sdo/DataObject.cpp:1.9 --- pecl/sdo/commonj/sdo/DataObject.cpp:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/DataObject.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/DataObject.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/Logging.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/Logging.h diff -u pecl/sdo/commonj/sdo/Logging.h:1.8 pecl/sdo/commonj/sdo/Logging.h:1.9 --- pecl/sdo/commonj/sdo/Logging.h:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/Logging.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/Logger.h" #include "commonj/sdo/SDORuntimeException.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOSAX2Parser.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/SDOSAX2Parser.h diff -u pecl/sdo/commonj/sdo/SDOSAX2Parser.h:1.8 pecl/sdo/commonj/sdo/SDOSAX2Parser.h:1.9 --- pecl/sdo/commonj/sdo/SDOSAX2Parser.h:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SDOSAX2Parser.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 547318 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _SDOSAX2PARSER_H_ #define _SDOSAX2PARSER_H_ @@ -106,9 +106,16 @@ friend std::istream& operator>>(std::istream& input, SDOSAX2Parser& parser); friend std::istringstream& operator>>(std::istringstream& input, SDOSAX2Parser& parser); + void setRootElementName(const SDOXMLString& name); + const SDOXMLString& getRootElementName() const {return rootElementName;} + void setRootElementURI(const SDOXMLString& uri); + const SDOXMLString& getRootElementURI() const {return rootElementURI;} + private: SDOXMLString targetNamespaceURI; + SDOXMLString rootElementName; + SDOXMLString rootElementURI; DataFactoryPtr dataFactory; DataObjectPtr& rootDataObject; http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/HelperProvider.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/HelperProvider.h diff -u pecl/sdo/commonj/sdo/HelperProvider.h:1.7 pecl/sdo/commonj/sdo/HelperProvider.h:1.8 --- pecl/sdo/commonj/sdo/HelperProvider.h:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/HelperProvider.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 453262 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 453262 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _HELPERPROVIDER_H_ #define _HELPERPROVIDER_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/RefCountingPointer.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/RefCountingPointer.h diff -u pecl/sdo/commonj/sdo/RefCountingPointer.h:1.8 pecl/sdo/commonj/sdo/RefCountingPointer.h:1.9 --- pecl/sdo/commonj/sdo/RefCountingPointer.h:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/RefCountingPointer.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _REFCOUNTINGPOINTER_H #define _REFCOUNTINGPOINTER_H http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXSDStreamWriter.h?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXSDStreamWriter.h diff -u pecl/sdo/commonj/sdo/SDOXSDStreamWriter.h:1.9 pecl/sdo/commonj/sdo/SDOXSDStreamWriter.h:1.10 --- pecl/sdo/commonj/sdo/SDOXSDStreamWriter.h:1.9 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SDOXSDStreamWriter.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _SDOXSDSTREAMWRITER_H_ #define _SDOXSDSTREAMWRITER_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/ParserErrorSetter.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/ParserErrorSetter.cpp diff -u pecl/sdo/commonj/sdo/ParserErrorSetter.cpp:1.7 pecl/sdo/commonj/sdo/ParserErrorSetter.cpp:1.8 --- pecl/sdo/commonj/sdo/ParserErrorSetter.cpp:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/ParserErrorSetter.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ // ParserErrorSetter.cpp: class allowing parser to push errors back. // http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/ChangedDataObjectListImpl.cpp?r1=1.10&r2=1.11&diff_format=u Index: pecl/sdo/commonj/sdo/ChangedDataObjectListImpl.cpp diff -u pecl/sdo/commonj/sdo/ChangedDataObjectListImpl.cpp:1.10 pecl/sdo/commonj/sdo/ChangedDataObjectListImpl.cpp:1.11 --- pecl/sdo/commonj/sdo/ChangedDataObjectListImpl.cpp:1.10 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/ChangedDataObjectListImpl.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 511929 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 511929 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/ChangedDataObjectListImpl.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/ChangedDataObjectList.h?r1=1.10&r2=1.11&diff_format=u Index: pecl/sdo/commonj/sdo/ChangedDataObjectList.h diff -u pecl/sdo/commonj/sdo/ChangedDataObjectList.h:1.10 pecl/sdo/commonj/sdo/ChangedDataObjectList.h:1.11 --- pecl/sdo/commonj/sdo/ChangedDataObjectList.h:1.10 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/ChangedDataObjectList.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 479634 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 479634 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _CHANGEDDATAOBJECTLIST_H_ #define _CHANGEDDATAOBJECTLIST_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOSAX2Parser.cpp?r1=1.12&r2=1.13&diff_format=u Index: pecl/sdo/commonj/sdo/SDOSAX2Parser.cpp diff -u pecl/sdo/commonj/sdo/SDOSAX2Parser.cpp:1.12 pecl/sdo/commonj/sdo/SDOSAX2Parser.cpp:1.13 --- pecl/sdo/commonj/sdo/SDOSAX2Parser.cpp:1.12 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDOSAX2Parser.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 511929 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 547318 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/SDOSAX2Parser.h" @@ -56,7 +56,9 @@ ignoreEvents(false), dealingWithChangeSummary(false), csbuilder(0), - SAX2Parser(insetter) + SAX2Parser(insetter), + rootElementName(""), + rootElementURI("") { @@ -82,9 +84,20 @@ changeSummary = false; IDMap.empty(); IDRefs.empty(); + rootElementURI = ""; + rootElementName = ""; } - + void SDOSAX2Parser::setRootElementName(const SDOXMLString& name) + { + rootElementName = name; + } + + void SDOSAX2Parser::setRootElementURI(const SDOXMLString& uri) + { + rootElementURI = uri; + } + void SDOSAX2Parser::startDocument() { LOGINFO(INFO,"SDOSAX2Parser: startDocument"); @@ -815,19 +828,31 @@ if (!targetNamespaceURI.isNull() && !targetNamespaceURI.equals("")) { tns = targetNamespaceURI; + rootElementURI = tns; + } + else + { + rootElementURI = URI; } // Check for localname as a property of the RootType // if we do not already know the type if (typeName.isNull()) { - const Type& rootType = dataFactory->getType(tns, "RootType"); - propertyName = getSDOName(rootType, localname); - const Type& newType = - ((TypeImpl&)(rootType)).getRealPropertyType(propertyName); + try { + const Type& rootType = dataFactory->getType(tns, "RootType"); + propertyName = getSDOName(rootType, localname); + const Type& newType = + ((TypeImpl&)(rootType)).getRealPropertyType(propertyName); - typeURI = newType.getURI(); - typeName = newType.getName(); + typeURI = newType.getURI(); + typeName = newType.getName(); + } + catch (const SDOTypeNotFoundException&) + { + typeURI = Type::SDOTypeNamespaceURI.c_str(); + typeName = "OpenDataObject"; + } } // Create the root DataObject @@ -840,7 +865,7 @@ else { DataFactory* df = dataFactory; - ((DataFactoryImpl*)df)->setRootElementName((const char*)localname); + rootElementName = localname; } // NOTE: always creating DO doesn't cater for DataType as top element http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/PropertyDefinition.h?r1=1.10&r2=1.11&diff_format=u Index: pecl/sdo/commonj/sdo/PropertyDefinition.h diff -u pecl/sdo/commonj/sdo/PropertyDefinition.h:1.10 pecl/sdo/commonj/sdo/PropertyDefinition.h:1.11 --- pecl/sdo/commonj/sdo/PropertyDefinition.h:1.10 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/PropertyDefinition.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 479634 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 479634 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _PROPERTYDefinition_H_ #define _PROPERTYDefinition_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataObjectImpl.h?r1=1.17&r2=1.18&diff_format=u Index: pecl/sdo/commonj/sdo/DataObjectImpl.h diff -u pecl/sdo/commonj/sdo/DataObjectImpl.h:1.17 pecl/sdo/commonj/sdo/DataObjectImpl.h:1.18 --- pecl/sdo/commonj/sdo/DataObjectImpl.h:1.17 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DataObjectImpl.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 527087 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 527087 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _DATAOBJECTIMPL_H_ #define _DATAOBJECTIMPL_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DASProperty.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/DASProperty.cpp diff -u pecl/sdo/commonj/sdo/DASProperty.cpp:1.8 pecl/sdo/commonj/sdo/DASProperty.cpp:1.9 --- pecl/sdo/commonj/sdo/DASProperty.cpp:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DASProperty.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/DASProperty.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/Property.h?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/Property.h diff -u pecl/sdo/commonj/sdo/Property.h:1.9 pecl/sdo/commonj/sdo/Property.h:1.10 --- pecl/sdo/commonj/sdo/Property.h:1.9 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/Property.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _PROPERTY_H_ #define _PROPERTY_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/PropertyDefinition.cpp?r1=1.10&r2=1.11&diff_format=u Index: pecl/sdo/commonj/sdo/PropertyDefinition.cpp diff -u pecl/sdo/commonj/sdo/PropertyDefinition.cpp:1.10 pecl/sdo/commonj/sdo/PropertyDefinition.cpp:1.11 --- pecl/sdo/commonj/sdo/PropertyDefinition.cpp:1.10 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/PropertyDefinition.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 479634 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 479634 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/PropertyDefinition.h" #include "commonj/sdo/PropertyDefinitionImpl.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/EqualityHelper.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/EqualityHelper.h diff -u pecl/sdo/commonj/sdo/EqualityHelper.h:1.8 pecl/sdo/commonj/sdo/EqualityHelper.h:1.9 --- pecl/sdo/commonj/sdo/EqualityHelper.h:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/EqualityHelper.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _EQUALITYHELPER_H_ #define _EQUALITYHELPER_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SAX2Namespaces.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/SAX2Namespaces.h diff -u pecl/sdo/commonj/sdo/SAX2Namespaces.h:1.8 pecl/sdo/commonj/sdo/SAX2Namespaces.h:1.9 --- pecl/sdo/commonj/sdo/SAX2Namespaces.h:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SAX2Namespaces.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _SAX2NAMESPACES_H_ #define _SAX2NAMESPACES_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXMLStreamWriter.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXMLStreamWriter.h diff -u pecl/sdo/commonj/sdo/SDOXMLStreamWriter.h:1.8 pecl/sdo/commonj/sdo/SDOXMLStreamWriter.h:1.9 --- pecl/sdo/commonj/sdo/SDOXMLStreamWriter.h:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDOXMLStreamWriter.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _SDOXMLSTREAMWRITER_H_ #define _SDOXMLSTREAMWRITER_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataGraphImpl.cpp?r1=1.10&r2=1.11&diff_format=u Index: pecl/sdo/commonj/sdo/DataGraphImpl.cpp diff -u pecl/sdo/commonj/sdo/DataGraphImpl.cpp:1.10 pecl/sdo/commonj/sdo/DataGraphImpl.cpp:1.11 --- pecl/sdo/commonj/sdo/DataGraphImpl.cpp:1.10 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DataGraphImpl.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/DataGraphImpl.h" #include "commonj/sdo/DataObjectImpl.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/TypeImpl.cpp?r1=1.13&r2=1.14&diff_format=u Index: pecl/sdo/commonj/sdo/TypeImpl.cpp diff -u pecl/sdo/commonj/sdo/TypeImpl.cpp:1.13 pecl/sdo/commonj/sdo/TypeImpl.cpp:1.14 --- pecl/sdo/commonj/sdo/TypeImpl.cpp:1.13 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/TypeImpl.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 546667 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 546667 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/Logger.h" @@ -2328,7 +2328,6 @@ unsigned int TypeImpl::convertToBytes(const SDOValue& sdoValue, char* outptr, unsigned int max) const { - unsigned int i; switch (typeEnum) { case BytesType: http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDORuntimeException.h?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/SDORuntimeException.h diff -u pecl/sdo/commonj/sdo/SDORuntimeException.h:1.9 pecl/sdo/commonj/sdo/SDORuntimeException.h:1.10 --- pecl/sdo/commonj/sdo/SDORuntimeException.h:1.9 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDORuntimeException.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #if !defined SDO_EXCEPTIONS_H #define SDO_EXCEPTIONS_H http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataFactory.h?r1=1.12&r2=1.13&diff_format=u Index: pecl/sdo/commonj/sdo/DataFactory.h diff -u pecl/sdo/commonj/sdo/DataFactory.h:1.12 pecl/sdo/commonj/sdo/DataFactory.h:1.13 --- pecl/sdo/commonj/sdo/DataFactory.h:1.12 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DataFactory.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _DATAFACTORY_H_ #define _DATAFACTORY_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DASValue.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/DASValue.cpp diff -u pecl/sdo/commonj/sdo/DASValue.cpp:1.8 pecl/sdo/commonj/sdo/DASValue.cpp:1.9 --- pecl/sdo/commonj/sdo/DASValue.cpp:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DASValue.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/DASValue.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XMLHelperImpl.cpp?r1=1.11&r2=1.12&diff_format=u Index: pecl/sdo/commonj/sdo/XMLHelperImpl.cpp diff -u pecl/sdo/commonj/sdo/XMLHelperImpl.cpp:1.11 pecl/sdo/commonj/sdo/XMLHelperImpl.cpp:1.12 --- pecl/sdo/commonj/sdo/XMLHelperImpl.cpp:1.11 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/XMLHelperImpl.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 509659 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 549872 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/SDOXMLFileWriter.h" // Include first to avoid libxml compile problems! #include "commonj/sdo/SDOXMLStreamWriter.h" // Include first to avoid libxml compile problems! @@ -67,60 +67,7 @@ return dataFactory; } - XMLDocumentPtr XMLHelperImpl::createDocument(DataObjectPtr dataObject) - { - - SDOXMLString rootElementName = ""; - SDOXMLString rootElementURI = ""; - if (dataObject) - { - // Set the root element name to the name of the containment property - // or null if there is no container - try - { - DataObjectPtr cont = dataObject->getContainer(); - if (cont != 0) - { - const Property& containmentProp = dataObject->getContainmentProperty(); - rootElementName = containmentProp.getName(); - rootElementURI = cont->getType().getURI(); - } - else - { - DataFactory* df = dataFactory; - rootElementURI = dataObject->getType().getURI(); - rootElementName = ((DataFactoryImpl*)df)->getRootElementName().c_str(); - } - } - catch (SDOPropertyNotFoundException&) - {} - } - return new XMLDocumentImpl(dataObject, rootElementURI, rootElementName); - } - - -// const TypeImpl* XMLHelperImpl::findRoot(DataFactory* df, -// const char* rootElementURI) -// { -// if (rootElementURI != 0) -// { -// return ((DataFactoryImpl*)df)->findTypeImpl -// (rootElementURI, "RootType"); -// } - -// const TypeList& tl = df->getTypes(); -// for (int i=0;i<tl.size();i++) -// { -// if (!strcmp("RootType",tl[i].getName())) -// { -// return ((DataFactoryImpl*)df)->findTypeImpl(tl[i].getURI(), "RootType"); -// } -// } - -// return 0; - -// } const TypeImpl* XMLHelperImpl::findRoot(DataFactory* df, const SDOString& rootElementURI) { @@ -171,56 +118,6 @@ } } -// XMLDocumentPtr XMLHelperImpl::createDocument(const char* elementname, -// const char* rootElementURI) -// { -// DataFactory* dp = (DataFactory*)getDataFactory(); -// if (dp == 0) return 0; - -// const TypeImpl* rType = findRoot(dp,rootElementURI); -// if (rType == 0) -// { -// std::string msg("createDocument - cannot find element "); -// if (elementname != 0) msg += elementname; -// SDO_THROW_EXCEPTION("createDocument", SDOUnsupportedOperationException, -// msg.c_str()); -// } - -// if ((elementname != 0) && (strlen(elementname) != 0)) -// { -// PropertyImpl* pl = rType->getPropertyImpl(elementname); -// if (pl == 0) -// { -// std::string msg("createDocument - cannot find element "); -// msg += elementname; -// SDO_THROW_EXCEPTION("createDocument", SDOUnsupportedOperationException, -// msg.c_str()); -// } - -// const Type& tp = pl->getType(); -// DataObjectPtr dob = dp->create(tp); -// return new XMLDocumentImpl(dob, -// tp.getURI(), /*tp.getName()*/ elementname); -// } -// else -// { -// const Property& pl = rType->getProperty((unsigned int)0); -// const Type& tp = pl.getType(); -// DataObjectPtr dob = dp->create(tp); -// return new XMLDocumentImpl(dob, -// tp.getURI(), /*tp.getName()*/ pl.getName()); -// } - -// std::string msg("createDocument - unable to find root type in namespace "); -// if (rootElementURI != 0) -// msg += rootElementURI; -// else -// msg += " NULL"; -// SDO_THROW_EXCEPTION("createDocument", SDOUnsupportedOperationException, -// msg.c_str()); -// } - - // +++ XMLDocumentPtr XMLHelperImpl::createDocument(const SDOString& elementname, const SDOString& rootElementURI) @@ -251,7 +148,7 @@ const Type& tp = pl->getType(); DataObjectPtr dob = dp->create(tp); return new XMLDocumentImpl(dob, - tp.getURI(), /*tp.getName()*/ + tp.getURI(), elementname.c_str()); } else @@ -260,7 +157,7 @@ const Type& tp = pl.getType(); DataObjectPtr dob = dp->create(tp); return new XMLDocumentImpl(dob, - tp.getURI(), /*tp.getName()*/ pl.getName()); + tp.getURI(), pl.getName()); } std::string msg("createDocument - unable to find root type in namespace "); @@ -269,14 +166,23 @@ msg.c_str()); } - // --- - XMLDocumentPtr XMLHelperImpl::createDocument( DataObjectPtr dataObject, const char* rootElementURI, const char* rootElementName) { - return new XMLDocumentImpl(dataObject, rootElementURI, rootElementName); + SDOString uri; + SDOString name = rootElementName; + if (0 == rootElementURI) + uri = ""; + else + uri = rootElementURI; + if (0 == rootElementName) + name = ""; + else + name = rootElementName; + + return createDocument(dataObject, uri, name); } XMLDocumentPtr XMLHelperImpl::createDocument( DataObjectPtr dataObject, @@ -292,14 +198,17 @@ { DataObjectPtr rootDataObject; clearErrors(); - SDOSAX2Parser sdoParser(getDataFactory(), targetNamespaceURI, rootDataObject, - this); + SDOSAX2Parser sdoParser(getDataFactory(), + targetNamespaceURI, + rootDataObject, + this); if (sdoParser.parse(xmlFile) == 0) { - return createDocument(rootDataObject); + return createDocument(rootDataObject, (const char*)sdoParser.getRootElementURI(), sdoParser.getRootElementName()); } return 0; } + XMLDocumentPtr XMLHelperImpl::loadFile( const SDOString& xmlFile, const SDOString& targetNamespaceURI) @@ -312,7 +221,7 @@ this); if (sdoParser.parse(xmlFile.c_str()) == 0) { - return createDocument(rootDataObject); + return createDocument(rootDataObject, (const char*)sdoParser.getRootElementURI(), sdoParser.getRootElementName()); } return 0; } @@ -323,12 +232,15 @@ const char* targetNamespaceURI) { DataObjectPtr rootDataObject; - SDOSAX2Parser sdoParser(getDataFactory(), targetNamespaceURI, rootDataObject, - this); + SDOSAX2Parser sdoParser(getDataFactory(), + targetNamespaceURI, + rootDataObject, + this); clearErrors(); inXml>>sdoParser; - return createDocument(rootDataObject); - } + return createDocument(rootDataObject, (const char*)sdoParser.getRootElementURI(), sdoParser.getRootElementName()); + } + XMLDocumentPtr XMLHelperImpl::load( std::istream& inXml, const SDOString& targetNamespaceURI) @@ -340,7 +252,7 @@ this); clearErrors(); inXml>>sdoParser; - return createDocument(rootDataObject); + return createDocument(rootDataObject, (const char*)sdoParser.getRootElementURI(), sdoParser.getRootElementName()); } XMLDocumentPtr XMLHelperImpl::load( http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXSDFileWriter.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXSDFileWriter.cpp diff -u pecl/sdo/commonj/sdo/SDOXSDFileWriter.cpp:1.7 pecl/sdo/commonj/sdo/SDOXSDFileWriter.cpp:1.8 --- pecl/sdo/commonj/sdo/SDOXSDFileWriter.cpp:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDOXSDFileWriter.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/SDOXSDFileWriter.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/ChangeSummary.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/ChangeSummary.h diff -u pecl/sdo/commonj/sdo/ChangeSummary.h:1.8 pecl/sdo/commonj/sdo/ChangeSummary.h:1.9 --- pecl/sdo/commonj/sdo/ChangeSummary.h:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/ChangeSummary.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _CHANGESUMMARY_H_ #define _CHANGESUMMARY_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/PropertyImpl.cpp?r1=1.14&r2=1.15&diff_format=u Index: pecl/sdo/commonj/sdo/PropertyImpl.cpp diff -u pecl/sdo/commonj/sdo/PropertyImpl.cpp:1.14 pecl/sdo/commonj/sdo/PropertyImpl.cpp:1.15 --- pecl/sdo/commonj/sdo/PropertyImpl.cpp:1.14 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/PropertyImpl.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 509991 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 509991 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/export.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DASProperty.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/DASProperty.h diff -u pecl/sdo/commonj/sdo/DASProperty.h:1.8 pecl/sdo/commonj/sdo/DASProperty.h:1.9 --- pecl/sdo/commonj/sdo/DASProperty.h:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DASProperty.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _DASPROPERTY_H_ #define _DASPROPERTY_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XSDHelper.h?r1=1.11&r2=1.12&diff_format=u Index: pecl/sdo/commonj/sdo/XSDHelper.h diff -u pecl/sdo/commonj/sdo/XSDHelper.h:1.11 pecl/sdo/commonj/sdo/XSDHelper.h:1.12 --- pecl/sdo/commonj/sdo/XSDHelper.h:1.11 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/XSDHelper.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 524004 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 549789 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _XSDHELPER_H_ #define _XSDHELPER_H_ @@ -53,11 +53,11 @@ * */ - SDO_API virtual const char* defineFile(const char* schemaFile, bool loadImportNamespace = false) = 0; - SDO_API virtual const char* defineFile(const SDOString& schemaFile, bool loadImportNamespace = false) = 0; - SDO_API virtual const char* define(std::istream& schema, bool loadImportNamespace = false) = 0; - SDO_API virtual const char* define(const char* schema, bool loadImportNamespace = false) = 0; - SDO_API virtual const char* define(const SDOString& schema, bool loadImportNamespace = false) = 0; + SDO_API virtual const char* defineFile(const char* schemaFile) = 0; + SDO_API virtual const char* defineFile(const SDOString& schemaFile) = 0; + SDO_API virtual const char* define(std::istream& schema) = 0; + SDO_API virtual const char* define(const char* schema) = 0; + SDO_API virtual const char* define(const SDOString& schema) = 0; /** generate buildsXSD from types/properties * http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDODate.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SDODate.h diff -u pecl/sdo/commonj/sdo/SDODate.h:1.7 pecl/sdo/commonj/sdo/SDODate.h:1.8 --- pecl/sdo/commonj/sdo/SDODate.h:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDODate.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _SDO_SDODATE_H_ #define _SDO_SDODATE_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataObjectList.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/DataObjectList.cpp diff -u pecl/sdo/commonj/sdo/DataObjectList.cpp:1.8 pecl/sdo/commonj/sdo/DataObjectList.cpp:1.9 --- pecl/sdo/commonj/sdo/DataObjectList.cpp:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DataObjectList.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/DataObjectList.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SdoCheck.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SdoCheck.cpp diff -u pecl/sdo/commonj/sdo/SdoCheck.cpp:1.7 pecl/sdo/commonj/sdo/SdoCheck.cpp:1.8 --- pecl/sdo/commonj/sdo/SdoCheck.cpp:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SdoCheck.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/SdoCheck.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataObjectInstance.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/DataObjectInstance.cpp diff -u pecl/sdo/commonj/sdo/DataObjectInstance.cpp:1.8 pecl/sdo/commonj/sdo/DataObjectInstance.cpp:1.9 --- pecl/sdo/commonj/sdo/DataObjectInstance.cpp:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/DataObjectInstance.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/DataObjectInstance.h" using commonj::sdo::CopyHelper; http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/Setting.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/Setting.cpp diff -u pecl/sdo/commonj/sdo/Setting.cpp:1.8 pecl/sdo/commonj/sdo/Setting.cpp:1.9 --- pecl/sdo/commonj/sdo/Setting.cpp:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/Setting.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 509659 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 509659 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/Setting.h" #include "commonj/sdo/TypeImpl.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXMLWriter.cpp?r1=1.14&r2=1.15&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXMLWriter.cpp diff -u pecl/sdo/commonj/sdo/SDOXMLWriter.cpp:1.14 pecl/sdo/commonj/sdo/SDOXMLWriter.cpp:1.15 --- pecl/sdo/commonj/sdo/SDOXMLWriter.cpp:1.14 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SDOXMLWriter.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 546760 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 568508 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/SDOXMLWriter.h" #include "commonj/sdo/SDOXMLString.h" @@ -131,10 +131,6 @@ // For the root DataObject we need to determine the element name SDOXMLString elementURI = doc->getRootElementURI(); - if (elementURI.isNull() || elementURI.equals("")) - { - elementURI = rootTypeURI; - } SDOXMLString elementName = doc->getRootElementName(); if (elementName.isNull() || elementName.equals("")) { @@ -702,6 +698,15 @@ // First we need to write the startElement if (isRoot) { + // For the root element we will now gather all the namespace information + addNamespace(elementURI, true); + + // We always add the xsi namespace. TODO we should omit if we can + namespaceMap[s_xsiNS] = s_xsi; + + DataObjectImpl* d = (DataObjectImpl*)(DataObject*)dataObject; + addToNamespaces(d); + if (elementURI.equals(s_commonjsdo)) { tnsURI = ""; @@ -710,52 +715,32 @@ { tnsURI = elementURI; } + } + // Write the startElement for non-root object + SDOXMLString theName=elementName; - if (tnsURI.equals("")) { - rc = xmlTextWriterStartElementNS(writer, NULL, elementName, NULL); - } - else + // If an elementURI is specified then the elementForm is "qualified" + if (!elementURI.isNull() + && !elementURI.equals("") + && !elementURI.equals(s_commonjsdo) + //&& !elementURI.equals(tnsURI) + ) + { + // Locate the namespace prefix + std::map<SDOXMLString,SDOXMLString>::iterator it = namespaceMap.find(elementURI); + if (it != namespaceMap.end()) { - rc = xmlTextWriterStartElementNS(writer, NULL, elementName, elementURI); - } - if (rc < 0) { - SDO_THROW_EXCEPTION("writeDO", SDOXMLParserException, "xmlTextWriterStartElementNS failed"); + theName = (*it).second; + theName += ":"; + theName += elementName; } - - // For the root element we will now gather all the namespace information - addNamespace(elementURI, true); - - // We always add the xsi namespace. TODO we should omit if we can - namespaceMap[s_xsiNS] = s_xsi; - - DataObjectImpl* d = (DataObjectImpl*)(DataObject*)dataObject; - addToNamespaces(d); } - else - { - // Write the startElement for non-root object - SDOXMLString theName=elementName; - if (!elementURI.isNull() - && !elementURI.equals("") - && !elementURI.equals(s_commonjsdo) - && !elementURI.equals(tnsURI)) - { - // Locate the namespace prefix - std::map<SDOXMLString,SDOXMLString>::iterator it = namespaceMap.find(elementURI); - if (it != namespaceMap.end()) - { - theName = (*it).second; - theName += ":"; - theName += elementName; - } - } + rc = xmlTextWriterStartElement(writer, theName); + if (rc < 0) { + SDO_THROW_EXCEPTION("writeDO", SDOXMLParserException, "xmlTextWriterStartElement failed"); + } - rc = xmlTextWriterStartElement(writer, theName); - if (rc < 0) { - SDO_THROW_EXCEPTION("writeDO", SDOXMLParserException, "xmlTextWriterStartElement failed"); - } - } // End - startElement is written // ----------------------------- @@ -797,7 +782,7 @@ { SDOXMLString theName=typeName; - if (!typeURI.isNull() && !typeURI.equals(tnsURI) && !typeURI.equals("")) + if (!typeURI.isNull() && !typeURI.equals("")) { std::map<SDOXMLString,SDOXMLString>::iterator it = namespaceMap.find(typeURI); if (it != namespaceMap.end()) @@ -1004,8 +989,25 @@ // many-valued. if (!pi && !seqProp.isMany()) continue; + // Write the startElement for non-root object + SDOXMLString theName=seqPropName; + + if (!seqPropURI.isNull() + && !seqPropURI.equals("") + && !seqPropURI.equals(s_commonjsdo)) + { + // Locate the namespace prefix + std::map<SDOXMLString,SDOXMLString>::iterator it = namespaceMap.find(seqPropURI); + if (it != namespaceMap.end()) + { + theName = (*it).second; + theName += ":"; + theName += seqPropName; + } + } + xmlTextWriterStartElement(writer, theName); + /* Use our wrapper function just in case the element has CDATA in it */ - xmlTextWriterStartElement(writer, seqPropName); writeXMLElement(writer, seqPropName, sequence->getCStringValue(i)); @@ -1142,7 +1144,27 @@ } else { - xmlTextWriterStartElementNS(writer, NULL, propertyName, NULL); + // Write the startElement for non-root object + SDOXMLString theName=propertyName; + + if (!propertyTypeURI.isNull() + && !propertyTypeURI.equals("") + && !propertyTypeURI.equals(s_commonjsdo) + /* && !propertyTypeURI.equals(tnsURI) */) + { + // Locate the namespace prefix + std::map<SDOXMLString,SDOXMLString>::iterator it = namespaceMap.find(propertyTypeURI); + if (it != namespaceMap.end()) + { + theName = (*it).second; + theName += ":"; + theName += propertyName; + } + } + + xmlTextWriterStartElement(writer, theName); + + //xmlTextWriterStartElementNS(writer, NULL, propertyName, NULL); if (dataObject->isNull(pl[i])) { xmlTextWriterWriteAttributeNS(writer, s_xsi, s_nil, NULL, s_true); @@ -1296,6 +1318,8 @@ { bool xsiTypeNeeded = false; + const Type& propertyType = prop.getType(); + // If this is a defined property with property information // we use the uri and name from the definition XSDPropertyInfo* pi = getPropertyInfo(prop); @@ -1310,7 +1334,6 @@ { elementName = prop.getName(); - const Type& propertyType = prop.getType(); SDOXMLString propTypeName = propertyType.getName(); SDOXMLString propTypeURI = propertyType.getURI(); DataObjectImpl* dataObjectImpl = (DataObjectImpl*)(DataObject*)dataObject; @@ -1365,12 +1388,17 @@ else { // The property has been defined programatically so we will - // assume it is the namespace fo the parent DataObject - elementURI = typeImpl.getURI(); + // assume elementForm is "unqualified" + elementURI = ""; } } + if (propertyType.isAbstractType()) + { + xsiTypeNeeded = true; + } + return xsiTypeNeeded; } http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/PropertyList.cpp?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/PropertyList.cpp diff -u pecl/sdo/commonj/sdo/PropertyList.cpp:1.9 pecl/sdo/commonj/sdo/PropertyList.cpp:1.10 --- pecl/sdo/commonj/sdo/PropertyList.cpp:1.9 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/PropertyList.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 511929 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 511929 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef SDO_EXPORTS #define SDO_EXPORTS http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SdoCheck.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SdoCheck.h diff -u pecl/sdo/commonj/sdo/SdoCheck.h:1.7 pecl/sdo/commonj/sdo/SdoCheck.h:1.8 --- pecl/sdo/commonj/sdo/SdoCheck.h:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SdoCheck.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/export.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XMLDocumentImpl.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/XMLDocumentImpl.cpp diff -u pecl/sdo/commonj/sdo/XMLDocumentImpl.cpp:1.7 pecl/sdo/commonj/sdo/XMLDocumentImpl.cpp:1.8 --- pecl/sdo/commonj/sdo/XMLDocumentImpl.cpp:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/XMLDocumentImpl.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/XMLDocumentImpl.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXSDBufferWriter.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXSDBufferWriter.h diff -u pecl/sdo/commonj/sdo/SDOXSDBufferWriter.h:1.7 pecl/sdo/commonj/sdo/SDOXSDBufferWriter.h:1.8 --- pecl/sdo/commonj/sdo/SDOXSDBufferWriter.h:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SDOXSDBufferWriter.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _SDOXSDBUFFERWRITER_H_ #define _SDOXSDBUFFERWRITER_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SchemaInfo.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SchemaInfo.cpp diff -u pecl/sdo/commonj/sdo/SchemaInfo.cpp:1.7 pecl/sdo/commonj/sdo/SchemaInfo.cpp:1.8 --- pecl/sdo/commonj/sdo/SchemaInfo.cpp:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SchemaInfo.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 553836 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/SchemaInfo.h" namespace commonj @@ -26,7 +26,8 @@ { SchemaInfo::SchemaInfo() - : targetNamespaceURI("") + : targetNamespaceURI(""), + elementFormDefaultQualified(false) { } http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOUtils.cpp?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/SDOUtils.cpp diff -u pecl/sdo/commonj/sdo/SDOUtils.cpp:1.9 pecl/sdo/commonj/sdo/SDOUtils.cpp:1.10 --- pecl/sdo/commonj/sdo/SDOUtils.cpp:1.9 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SDOUtils.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 510951 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 510951 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/SDOUtils.h" #include <stdio.h> http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/TypeDefinitionsImpl.h?r1=1.5&r2=1.6&diff_format=u Index: pecl/sdo/commonj/sdo/TypeDefinitionsImpl.h diff -u pecl/sdo/commonj/sdo/TypeDefinitionsImpl.h:1.5 pecl/sdo/commonj/sdo/TypeDefinitionsImpl.h:1.6 --- pecl/sdo/commonj/sdo/TypeDefinitionsImpl.h:1.5 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/TypeDefinitionsImpl.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 524004 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 524004 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _TYPEDefinitionsImpl_H_ #define _TYPEDefinitionsImpl_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/RefCountingPointer.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/RefCountingPointer.cpp diff -u pecl/sdo/commonj/sdo/RefCountingPointer.cpp:1.8 pecl/sdo/commonj/sdo/RefCountingPointer.cpp:1.9 --- pecl/sdo/commonj/sdo/RefCountingPointer.cpp:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/RefCountingPointer.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/RefCountingPointer.h" #include "commonj/sdo/DataFactory.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/ParserErrorSetter.h?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/ParserErrorSetter.h diff -u pecl/sdo/commonj/sdo/ParserErrorSetter.h:1.9 pecl/sdo/commonj/sdo/ParserErrorSetter.h:1.10 --- pecl/sdo/commonj/sdo/ParserErrorSetter.h:1.9 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/ParserErrorSetter.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 492097 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 549789 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _PARSER_ERROR_SETTER_H_ #define _PARSER_ERROR_SETTER_H_ @@ -26,29 +26,9 @@ #include "commonj/sdo/disable_warn.h" -#include <vector> -#include <map> -#include "libxml/xmlstring.h" - namespace commonj{ namespace sdo{ -template<class _Kty> -struct HashCompare -{ - bool operator()(const _Kty& _Keyval1, const _Kty& _Keyval2) const - { - return strcmp((char*)_Keyval1, (char*)_Keyval2) < 0; - } -}; - -class SDOSchemaSAX2Parser; -typedef std::map<xmlChar*, SDOSchemaSAX2Parser*, HashCompare<xmlChar*> > LocationParserMap; -struct ParsedLocations: public LocationParserMap -{ - virtual ~ParsedLocations(); -}; - /** * The ParserErrorSetter builds a list of all the errors which * occurred during a parse, so they can be displayed for the @@ -62,9 +42,8 @@ virtual void setError(const char* message) = 0; virtual void clearErrors() = 0; - SDOSchemaSAX2Parser* parseIfNot(const void* location, bool loadImportNamespace = false, const void* base=0); protected: - ParsedLocations parsedLocations; + }; }; }; http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/ChangeSummaryBuilder.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/ChangeSummaryBuilder.h diff -u pecl/sdo/commonj/sdo/ChangeSummaryBuilder.h:1.8 pecl/sdo/commonj/sdo/ChangeSummaryBuilder.h:1.9 --- pecl/sdo/commonj/sdo/ChangeSummaryBuilder.h:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/ChangeSummaryBuilder.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _CHANGESUMMARYBUILDER_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataFactoryImpl.h?r1=1.14&r2=1.15&diff_format=u Index: pecl/sdo/commonj/sdo/DataFactoryImpl.h diff -u pecl/sdo/commonj/sdo/DataFactoryImpl.h:1.14 pecl/sdo/commonj/sdo/DataFactoryImpl.h:1.15 --- pecl/sdo/commonj/sdo/DataFactoryImpl.h:1.14 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DataFactoryImpl.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 484703 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 547318 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _DataFactoryIMPL_H_ #define _DataFactoryIMPL_H_ @@ -661,8 +661,6 @@ void removeOpenProperty(const SDOString& name); const propertyMap& getOpenProperties(); virtual const TypeImpl& getTypeImpl(const SDOString& uri, const SDOString& inTypeName) const; - virtual const SDOString& getRootElementName() const; - virtual void setRootElementName(const SDOString& ren); virtual bool generateInterface(const char* fileroot, const char* factoryname); virtual bool generateInterface(const SDOString& fileroot, const SDOString& factoryname); @@ -676,8 +674,6 @@ std::vector<DataFactory*> compatibleFactories; - SDOString rootElementName; - propertyMap openProperties; // Need to validate and 'lock' the data model for base types to http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DASValues.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/DASValues.cpp diff -u pecl/sdo/commonj/sdo/DASValues.cpp:1.8 pecl/sdo/commonj/sdo/DASValues.cpp:1.9 --- pecl/sdo/commonj/sdo/DASValues.cpp:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DASValues.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/DASValues.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DefaultLogWriter.cpp?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/DefaultLogWriter.cpp diff -u pecl/sdo/commonj/sdo/DefaultLogWriter.cpp:1.9 pecl/sdo/commonj/sdo/DefaultLogWriter.cpp:1.10 --- pecl/sdo/commonj/sdo/DefaultLogWriter.cpp:1.9 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DefaultLogWriter.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/disable_warn.h" #include "commonj/sdo/DefaultLogWriter.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SAX2Attribute.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SAX2Attribute.h diff -u pecl/sdo/commonj/sdo/SAX2Attribute.h:1.7 pecl/sdo/commonj/sdo/SAX2Attribute.h:1.8 --- pecl/sdo/commonj/sdo/SAX2Attribute.h:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SAX2Attribute.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _SAX2ATTRIBUTE_H_ #define _SAX2ATTRIBUTE_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXMLFileWriter.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXMLFileWriter.h diff -u pecl/sdo/commonj/sdo/SDOXMLFileWriter.h:1.7 pecl/sdo/commonj/sdo/SDOXMLFileWriter.h:1.8 --- pecl/sdo/commonj/sdo/SDOXMLFileWriter.h:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDOXMLFileWriter.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _SDOXMLFILEWRITER_H_ #define _SDOXMLFILEWRITER_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XMLQName.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/XMLQName.cpp diff -u pecl/sdo/commonj/sdo/XMLQName.cpp:1.7 pecl/sdo/commonj/sdo/XMLQName.cpp:1.8 --- pecl/sdo/commonj/sdo/XMLQName.cpp:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/XMLQName.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/XMLQName.h" namespace commonj http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SAX2Attribute.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SAX2Attribute.cpp diff -u pecl/sdo/commonj/sdo/SAX2Attribute.cpp:1.7 pecl/sdo/commonj/sdo/SAX2Attribute.cpp:1.8 --- pecl/sdo/commonj/sdo/SAX2Attribute.cpp:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SAX2Attribute.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/SAX2Attribute.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/TypeList.cpp?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/TypeList.cpp diff -u pecl/sdo/commonj/sdo/TypeList.cpp:1.9 pecl/sdo/commonj/sdo/TypeList.cpp:1.10 --- pecl/sdo/commonj/sdo/TypeList.cpp:1.9 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/TypeList.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 511929 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 511929 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef SDO_EXPORTS #define SDO_EXPORTS http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXMLString.cpp?r1=1.11&r2=1.12&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXMLString.cpp diff -u pecl/sdo/commonj/sdo/SDOXMLString.cpp:1.11 pecl/sdo/commonj/sdo/SDOXMLString.cpp:1.12 --- pecl/sdo/commonj/sdo/SDOXMLString.cpp:1.11 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDOXMLString.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 509659 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 509659 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/SDOXMLString.h" #include <iostream> http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataObjectInstance.h?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/DataObjectInstance.h diff -u pecl/sdo/commonj/sdo/DataObjectInstance.h:1.9 pecl/sdo/commonj/sdo/DataObjectInstance.h:1.10 --- pecl/sdo/commonj/sdo/DataObjectInstance.h:1.9 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DataObjectInstance.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 489558 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 489558 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef commonj_sdo_DataObjectInstance_h #define commonj_sdo_DataObjectInstance_h http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/CopyHelper.h?r1=1.10&r2=1.11&diff_format=u Index: pecl/sdo/commonj/sdo/CopyHelper.h diff -u pecl/sdo/commonj/sdo/CopyHelper.h:1.10 pecl/sdo/commonj/sdo/CopyHelper.h:1.11 --- pecl/sdo/commonj/sdo/CopyHelper.h:1.10 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/CopyHelper.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 483011 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 483011 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _COPYHELPER_H_ #define _COPYHELPER_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXSDBufferWriter.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXSDBufferWriter.cpp diff -u pecl/sdo/commonj/sdo/SDOXSDBufferWriter.cpp:1.7 pecl/sdo/commonj/sdo/SDOXSDBufferWriter.cpp:1.8 --- pecl/sdo/commonj/sdo/SDOXSDBufferWriter.cpp:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDOXSDBufferWriter.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/SDOXSDBufferWriter.h" #include "commonj/sdo/SDORuntimeException.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/ChangeSummary.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/ChangeSummary.cpp diff -u pecl/sdo/commonj/sdo/ChangeSummary.cpp:1.8 pecl/sdo/commonj/sdo/ChangeSummary.cpp:1.9 --- pecl/sdo/commonj/sdo/ChangeSummary.cpp:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/ChangeSummary.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/Logger.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SequenceImpl.cpp?r1=1.12&r2=1.13&diff_format=u Index: pecl/sdo/commonj/sdo/SequenceImpl.cpp diff -u pecl/sdo/commonj/sdo/SequenceImpl.cpp:1.12 pecl/sdo/commonj/sdo/SequenceImpl.cpp:1.13 --- pecl/sdo/commonj/sdo/SequenceImpl.cpp:1.12 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SequenceImpl.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 506932 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 506932 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/disable_warn.h" #include "commonj/sdo/Property.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SchemaInfo.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/SchemaInfo.h diff -u pecl/sdo/commonj/sdo/SchemaInfo.h:1.8 pecl/sdo/commonj/sdo/SchemaInfo.h:1.9 --- pecl/sdo/commonj/sdo/SchemaInfo.h:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SchemaInfo.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 553836 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _SCHEMAINFO_H_ #define _SCHEMAINFO_H_ @@ -49,9 +49,12 @@ SDO_SPI const SDOXMLString& getTargetNamespaceURI() const {return targetNamespaceURI;} SDO_SPI void setTargetNamespaceURI(const SDOXMLString& URI) {targetNamespaceURI = URI;} + SDO_SPI bool isElementFormDefaultQualified() {return elementFormDefaultQualified;} + SDO_SPI void setElementFormDefaultQualified(bool qualified) {elementFormDefaultQualified = qualified;} private: SAX2Namespaces schemaNamespaces; - SDOXMLString targetNamespaceURI; + SDOXMLString targetNamespaceURI; + bool elementFormDefaultQualified; }; } // End - namespace sdo http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/ChangeSummaryBuilder.cpp?r1=1.11&r2=1.12&diff_format=u Index: pecl/sdo/commonj/sdo/ChangeSummaryBuilder.cpp diff -u pecl/sdo/commonj/sdo/ChangeSummaryBuilder.cpp:1.11 pecl/sdo/commonj/sdo/ChangeSummaryBuilder.cpp:1.12 --- pecl/sdo/commonj/sdo/ChangeSummaryBuilder.cpp:1.11 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/ChangeSummaryBuilder.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 511929 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 511929 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/ChangeSummaryBuilder.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/Logger.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/Logger.h diff -u pecl/sdo/commonj/sdo/Logger.h:1.7 pecl/sdo/commonj/sdo/Logger.h:1.8 --- pecl/sdo/commonj/sdo/Logger.h:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/Logger.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 453262 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 453262 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef SDO_LOGGER_H #define SDO_LOGGER_H http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOSchemaSAX2Parser.cpp?r1=1.16&r2=1.17&diff_format=u Index: pecl/sdo/commonj/sdo/SDOSchemaSAX2Parser.cpp diff -u pecl/sdo/commonj/sdo/SDOSchemaSAX2Parser.cpp:1.16 pecl/sdo/commonj/sdo/SDOSchemaSAX2Parser.cpp:1.17 --- pecl/sdo/commonj/sdo/SDOSchemaSAX2Parser.cpp:1.16 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDOSchemaSAX2Parser.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 534152 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 553836 $ $Date: 2007/08/24 15:20:21 $ */ #include "libxml/uri.h" #include "commonj/sdo/SDOSchemaSAX2Parser.h" @@ -41,8 +41,12 @@ SDOSchemaSAX2Parser::SDOSchemaSAX2Parser(SchemaInfo& schemaInf, ParserErrorSetter* insetter, - bool loadImpNamespace) - : schemaInfo(schemaInf), SAX2Parser(insetter), loadImportNamespace(loadImpNamespace) + PARSED_LOCATIONS& parsedLocs, + DEFINED_NAMESPACES& definedNSs) + : schemaInfo(schemaInf), + SAX2Parser(insetter), + parsedLocations(parsedLocs), + definedNamespaces(definedNSs) { bInSchema = false; bInvalidElement = false; @@ -226,13 +230,21 @@ if (attributes[i].getName().equalsIgnoreCase("targetNamespace")) { schemaInfo.setTargetNamespaceURI(attributes[i].getValue()); + } + + if (attributes[i].getName().equalsIgnoreCase("elementFormDefault")) + { + if (attributes[i].getValue().equals("qualified")) + { + schemaInfo.setElementFormDefaultQualified(true); + } } } - currentType.uri = schemaInfo.getTargetNamespaceURI(); currentType.name = "RootType"; currentType.localname="RootType"; + definedNamespaces.push_back(currentType.uri); return; } // end schema handling @@ -532,38 +544,37 @@ } } - - void SDOSchemaSAX2Parser::free(xmlChar* absoluteUri) - { - delete &schemaInfo; - delete this; - xmlFree(absoluteUri); - } - ParsedLocations::~ParsedLocations() - { - for( iterator iter = begin(); iter != end(); iter++ ) - iter->second->free(iter->first); - } - SDOSchemaSAX2Parser* ParserErrorSetter::parseIfNot(const void* location, bool loadImportNamespace, const void* base) + + int SDOSchemaSAX2Parser::parseURI(const SDOXMLString& location, const SDOXMLString& base) { - xmlChar*const absoluteUri = xmlBuildURI((xmlChar*)location, (xmlChar*)base); + xmlChar* absoluteUri = xmlBuildURI(location, base); if (! absoluteUri) - SDO_THROW_EXCEPTION("parseIfNot", SDOFileNotFoundException, (char*)location); - LocationParserMap::iterator iter = parsedLocations.find(absoluteUri); - if (parsedLocations.end() == iter) - { - SDOSchemaSAX2Parser*const schemaParser = new SDOSchemaSAX2Parser(*new SchemaInfo(), this, loadImportNamespace); - try { - if (0 == schemaParser->parse((char*)absoluteUri)) - return parsedLocations[ absoluteUri ] = schemaParser; - } - catch (SDORuntimeException e) - {} - schemaParser->free(absoluteUri); - return 0; + { + SDO_THROW_EXCEPTION("parseURI", SDOFileNotFoundException, location); } + SDOXMLString absUri(absoluteUri); xmlFree(absoluteUri); - return iter->second; + + // Determine if this location has been parsed already + PARSED_LOCATIONS::iterator iter; + iter = parsedLocations.find(absUri); + if (iter != parsedLocations.end()) + { + schemaInfo.setTargetNamespaceURI(iter->second); + return 0; + } + + + try + { + int rc = parse(absUri); + // add new location to map + parsedLocations[absUri] = schemaInfo.getTargetNamespaceURI(); + return rc; + } + catch (SDORuntimeException) {} + + return -1; } // ============================================================================ @@ -580,61 +591,70 @@ if (!bInSchema) return; - TypeDefinitionsImpl* typedefs; SDOXMLString importNamespace = attributes.getValue("namespace"); SDOXMLString schemaLocation = attributes.getValue("schemaLocation"); + + SchemaInfo schemaInf; + SDOSchemaSAX2Parser schemaParser(schemaInf, setter, parsedLocations, definedNamespaces); + if (!schemaLocation.isNull()) { - SDOSchemaSAX2Parser*const schemaParser = setter->parseIfNot((const char*)schemaLocation, false, getCurrentFile()); - if (!schemaParser) + if (0 != schemaParser.parseURI(schemaLocation, getCurrentFile())) return; - typedefs = &schemaParser->getTypeDefinitions(); } else { // schemaLocation isn't present. Try loading namespace for import - if (loadImportNamespace - && localname.equalsIgnoreCase("import") + if (localname.equalsIgnoreCase("import") && !importNamespace.isNull()) { - SDOSchemaSAX2Parser*const sp = setter->parseIfNot((const char*)importNamespace); - if (!sp) + // Do not attempt to import namespaces alredy defined + for (unsigned int i = 0; i < definedNamespaces.size(); i++) + { + if (definedNamespaces[i].equals(importNamespace)) + { + return; + } + } + + if (0 != schemaParser.parseURI(importNamespace, SDOXMLString())) return; - typedefs = &sp->getTypeDefinitions(); } else { return; } } - - XMLDAS_TypeDefs types = typedefs->types; - XMLDAS_TypeDefs::iterator iter; - for (iter=types.begin(); iter != types.end(); iter++) - { - if ((*iter).second.name.equals("RootType") + + // Add the parsed types to this parsers list + TypeDefinitionsImpl& typedefs = schemaParser.getTypeDefinitions(); + XMLDAS_TypeDefs types = typedefs.types; + XMLDAS_TypeDefs::iterator iter; + for (iter=types.begin(); iter != types.end(); iter++) + { + if ((*iter).second.name.equals("RootType") && currentType.name.equals("RootType") - && (*iter).second.uri.equals(currentType.uri)) + && (*iter).second.uri.equals(currentType.uri)) { - // This must be true for an import/include to be + // This must be true for an import/include to be // legally positioned - + XMLDAS_TypeDefs::iterator find = typeDefinitions.types.find( (*iter).first); - + std::list<PropertyDefinitionImpl>::iterator propit; std::list<PropertyDefinitionImpl>::iterator currpropit; bool found; - + for (propit = (*iter).second.properties.begin() ; - propit != (*iter).second.properties.end(); ++ propit) + propit != (*iter).second.properties.end(); ++ propit) { found = false; // do not merge properties whose names clash for ( currpropit = currentType.properties.begin(); - currpropit != currentType.properties.end(); - ++currpropit) + currpropit != currentType.properties.end(); + ++currpropit) { if ((*currpropit).name.equals((*propit).name)) { @@ -644,16 +664,16 @@ } if (!found) { - currentType.properties.push_back(*propit); + currentType.properties.push_back(*propit); } } } - else - { - typeDefinitions.types.insert(*iter); - } + else + { + typeDefinitions.types.insert(*iter); } - + } + } @@ -733,7 +753,23 @@ thisProperty.name, thisProperty.localname); - thisProperty.namespaceURI = schemaInfo.getTargetNamespaceURI(); + // Set the property's namespace if elementForm is "qualified" + bool elementFormQualified = schemaInfo.isElementFormDefaultQualified(); + SDOXMLString elementForm = attributes.getValue("form"); + if (!elementForm.isNull()) + { + elementFormQualified = false; + if (elementForm.equals("qualified")) + { + elementFormQualified = true; + } + } + + if (elementFormQualified + || currentType.name.equals("RootType")) + { + thisProperty.namespaceURI = schemaInfo.getTargetNamespaceURI(); + } setType(thisProperty, attributes, namespaces); http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXSDStreamWriter.cpp?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXSDStreamWriter.cpp diff -u pecl/sdo/commonj/sdo/SDOXSDStreamWriter.cpp:1.9 pecl/sdo/commonj/sdo/SDOXSDStreamWriter.cpp:1.10 --- pecl/sdo/commonj/sdo/SDOXSDStreamWriter.cpp:1.9 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDOXSDStreamWriter.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/SDOXSDStreamWriter.h" #include <sstream> http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/PropertyDefinitionImpl.h?r1=1.6&r2=1.7&diff_format=u Index: pecl/sdo/commonj/sdo/PropertyDefinitionImpl.h diff -u pecl/sdo/commonj/sdo/PropertyDefinitionImpl.h:1.6 pecl/sdo/commonj/sdo/PropertyDefinitionImpl.h:1.7 --- pecl/sdo/commonj/sdo/PropertyDefinitionImpl.h:1.6 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/PropertyDefinitionImpl.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 486565 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 486565 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _PROPERTYDefinitionImpl_H_ #define _PROPERTYDefinitionImpl_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataGraph.cpp?r1=1.10&r2=1.11&diff_format=u Index: pecl/sdo/commonj/sdo/DataGraph.cpp diff -u pecl/sdo/commonj/sdo/DataGraph.cpp:1.10 pecl/sdo/commonj/sdo/DataGraph.cpp:1.11 --- pecl/sdo/commonj/sdo/DataGraph.cpp:1.10 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DataGraph.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/disable_warn.h" #include "commonj/sdo/DataGraph.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/ChangeSummaryImpl.cpp?r1=1.13&r2=1.14&diff_format=u Index: pecl/sdo/commonj/sdo/ChangeSummaryImpl.cpp diff -u pecl/sdo/commonj/sdo/ChangeSummaryImpl.cpp:1.13 pecl/sdo/commonj/sdo/ChangeSummaryImpl.cpp:1.14 --- pecl/sdo/commonj/sdo/ChangeSummaryImpl.cpp:1.13 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/ChangeSummaryImpl.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 509659 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 509659 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/ChangeSummaryImpl.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXMLWriter.h?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXMLWriter.h diff -u pecl/sdo/commonj/sdo/SDOXMLWriter.h:1.9 pecl/sdo/commonj/sdo/SDOXMLWriter.h:1.10 --- pecl/sdo/commonj/sdo/SDOXMLWriter.h:1.9 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDOXMLWriter.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 546667 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 546667 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _SDOXMLWRITER_H_ #define _SDOXMLWRITER_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/Type.h?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/Type.h diff -u pecl/sdo/commonj/sdo/Type.h:1.9 pecl/sdo/commonj/sdo/Type.h:1.10 --- pecl/sdo/commonj/sdo/Type.h:1.9 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/Type.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 510951 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 510951 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _SDO_TYPE_H_ #define _SDO_TYPE_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/RefCountingObject.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/RefCountingObject.cpp diff -u pecl/sdo/commonj/sdo/RefCountingObject.cpp:1.8 pecl/sdo/commonj/sdo/RefCountingObject.cpp:1.9 --- pecl/sdo/commonj/sdo/RefCountingObject.cpp:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/RefCountingObject.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/RefCountingObject.h" #include "commonj/sdo/Logging.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/Sequence.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/Sequence.h diff -u pecl/sdo/commonj/sdo/Sequence.h:1.8 pecl/sdo/commonj/sdo/Sequence.h:1.9 --- pecl/sdo/commonj/sdo/Sequence.h:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/Sequence.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 506932 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 506932 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _SEQUENCE_H_ #define _SEQUENCE_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XSDTypeInfo.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/XSDTypeInfo.cpp diff -u pecl/sdo/commonj/sdo/XSDTypeInfo.cpp:1.7 pecl/sdo/commonj/sdo/XSDTypeInfo.cpp:1.8 --- pecl/sdo/commonj/sdo/XSDTypeInfo.cpp:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/XSDTypeInfo.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/XSDTypeInfo.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XMLDocument.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/XMLDocument.h diff -u pecl/sdo/commonj/sdo/XMLDocument.h:1.7 pecl/sdo/commonj/sdo/XMLDocument.h:1.8 --- pecl/sdo/commonj/sdo/XMLDocument.h:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/XMLDocument.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _XMLDOCUMENT_H_ #define _XMLDOCUMENT_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOUtils.h?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/SDOUtils.h diff -u pecl/sdo/commonj/sdo/SDOUtils.h:1.9 pecl/sdo/commonj/sdo/SDOUtils.h:1.10 --- pecl/sdo/commonj/sdo/SDOUtils.h:1.9 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SDOUtils.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 524004 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 524004 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _SDOUTILS_H_ #define _SDOUTILS_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/Setting.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/Setting.h diff -u pecl/sdo/commonj/sdo/Setting.h:1.7 pecl/sdo/commonj/sdo/Setting.h:1.8 --- pecl/sdo/commonj/sdo/Setting.h:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/Setting.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef SETTING_H #define SETTING_H http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataGraph.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/DataGraph.h diff -u pecl/sdo/commonj/sdo/DataGraph.h:1.8 pecl/sdo/commonj/sdo/DataGraph.h:1.9 --- pecl/sdo/commonj/sdo/DataGraph.h:1.8 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/DataGraph.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _DATAGRAPH_H_ #define _DATAGRAPH_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/TypeDefinitions.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/TypeDefinitions.h diff -u pecl/sdo/commonj/sdo/TypeDefinitions.h:1.7 pecl/sdo/commonj/sdo/TypeDefinitions.h:1.8 --- pecl/sdo/commonj/sdo/TypeDefinitions.h:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/TypeDefinitions.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 524004 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 524004 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _TYPEDefinitions_H_ #define _TYPEDefinitions_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataObjectImpl.cpp?r1=1.19&r2=1.20&diff_format=u Index: pecl/sdo/commonj/sdo/DataObjectImpl.cpp diff -u pecl/sdo/commonj/sdo/DataObjectImpl.cpp:1.19 pecl/sdo/commonj/sdo/DataObjectImpl.cpp:1.20 --- pecl/sdo/commonj/sdo/DataObjectImpl.cpp:1.19 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/DataObjectImpl.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 527087 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 527087 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/disable_warn.h" #include "commonj/sdo/DataObjectImpl.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SAX2Parser.cpp?r1=1.10&r2=1.11&diff_format=u Index: pecl/sdo/commonj/sdo/SAX2Parser.cpp diff -u pecl/sdo/commonj/sdo/SAX2Parser.cpp:1.10 pecl/sdo/commonj/sdo/SAX2Parser.cpp:1.11 --- pecl/sdo/commonj/sdo/SAX2Parser.cpp:1.10 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SAX2Parser.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 510021 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 510021 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/SAX2Parser.h" #include "libxml/SAX2.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SdoRuntime.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SdoRuntime.h diff -u pecl/sdo/commonj/sdo/SdoRuntime.h:1.7 pecl/sdo/commonj/sdo/SdoRuntime.h:1.8 --- pecl/sdo/commonj/sdo/SdoRuntime.h:1.7 Fri Jun 22 14:32:28 2007 +++ pecl/sdo/commonj/sdo/SdoRuntime.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:28 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef SDO_RUNTIME_H #define SDO_RUNTIME_H http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOString.h?r1=1.5&r2=1.6&diff_format=u Index: pecl/sdo/commonj/sdo/SDOString.h diff -u pecl/sdo/commonj/sdo/SDOString.h:1.5 pecl/sdo/commonj/sdo/SDOString.h:1.6 --- pecl/sdo/commonj/sdo/SDOString.h:1.5 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDOString.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ // #include "commonj/sdo/disable_warn.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XpathHelper.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/XpathHelper.h diff -u pecl/sdo/commonj/sdo/XpathHelper.h:1.8 pecl/sdo/commonj/sdo/XpathHelper.h:1.9 --- pecl/sdo/commonj/sdo/XpathHelper.h:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/XpathHelper.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef XPATH_HELPER_H #define XPATH_HELPER_H http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SAX2Parser.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/SAX2Parser.h diff -u pecl/sdo/commonj/sdo/SAX2Parser.h:1.8 pecl/sdo/commonj/sdo/SAX2Parser.h:1.9 --- pecl/sdo/commonj/sdo/SAX2Parser.h:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SAX2Parser.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef _SAX2PARSER_H_ #define _SAX2PARSER_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XpathHelper.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/XpathHelper.cpp diff -u pecl/sdo/commonj/sdo/XpathHelper.cpp:1.7 pecl/sdo/commonj/sdo/XpathHelper.cpp:1.8 --- pecl/sdo/commonj/sdo/XpathHelper.cpp:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/XpathHelper.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/XpathHelper.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/Property.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/Property.cpp diff -u pecl/sdo/commonj/sdo/Property.cpp:1.7 pecl/sdo/commonj/sdo/Property.cpp:1.8 --- pecl/sdo/commonj/sdo/Property.cpp:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/Property.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include <iostream> using namespace std; http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/LogWriter.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/LogWriter.h diff -u pecl/sdo/commonj/sdo/LogWriter.h:1.7 pecl/sdo/commonj/sdo/LogWriter.h:1.8 --- pecl/sdo/commonj/sdo/LogWriter.h:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/LogWriter.h Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #ifndef SDO_LOGWriter_H #define SDO_LOGWriter_H http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/TypeDefinitionsImpl.cpp?r1=1.5&r2=1.6&diff_format=u Index: pecl/sdo/commonj/sdo/TypeDefinitionsImpl.cpp diff -u pecl/sdo/commonj/sdo/TypeDefinitionsImpl.cpp:1.5 pecl/sdo/commonj/sdo/TypeDefinitionsImpl.cpp:1.6 --- pecl/sdo/commonj/sdo/TypeDefinitionsImpl.cpp:1.5 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/TypeDefinitionsImpl.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 524004 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 524004 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/TypeDefinitionsImpl.h" namespace commonj http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/CopyHelper.cpp?r1=1.12&r2=1.13&diff_format=u Index: pecl/sdo/commonj/sdo/CopyHelper.cpp diff -u pecl/sdo/commonj/sdo/CopyHelper.cpp:1.12 pecl/sdo/commonj/sdo/CopyHelper.cpp:1.13 --- pecl/sdo/commonj/sdo/CopyHelper.cpp:1.12 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/CopyHelper.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 532769 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 532769 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/Property.h" #include "commonj/sdo/Type.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XSDPropertyInfo.cpp?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/XSDPropertyInfo.cpp diff -u pecl/sdo/commonj/sdo/XSDPropertyInfo.cpp:1.8 pecl/sdo/commonj/sdo/XSDPropertyInfo.cpp:1.9 --- pecl/sdo/commonj/sdo/XSDPropertyInfo.cpp:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/XSDPropertyInfo.cpp Fri Aug 24 15:20:21 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:21 $ */ #include "commonj/sdo/XSDPropertyInfo.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DataObjectListImpl.cpp?r1=1.16&r2=1.17&diff_format=u Index: pecl/sdo/commonj/sdo/DataObjectListImpl.cpp diff -u pecl/sdo/commonj/sdo/DataObjectListImpl.cpp:1.16 pecl/sdo/commonj/sdo/DataObjectListImpl.cpp:1.17 --- pecl/sdo/commonj/sdo/DataObjectListImpl.cpp:1.16 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DataObjectListImpl.cpp Fri Aug 24 15:20:22 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 527087 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 527087 $ $Date: 2007/08/24 15:20:22 $ */ #include "commonj/sdo/DataObjectListImpl.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XMLQName.h?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/XMLQName.h diff -u pecl/sdo/commonj/sdo/XMLQName.h:1.7 pecl/sdo/commonj/sdo/XMLQName.h:1.8 --- pecl/sdo/commonj/sdo/XMLQName.h:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/XMLQName.h Fri Aug 24 15:20:22 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:22 $ */ #ifndef _XMLQName_H_ #define _XMLQName_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SAX2Namespaces.cpp?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/SAX2Namespaces.cpp diff -u pecl/sdo/commonj/sdo/SAX2Namespaces.cpp:1.9 pecl/sdo/commonj/sdo/SAX2Namespaces.cpp:1.10 --- pecl/sdo/commonj/sdo/SAX2Namespaces.cpp:1.9 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SAX2Namespaces.cpp Fri Aug 24 15:20:22 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 549789 $ $Date: 2007/08/24 15:20:22 $ */ #include "commonj/sdo/SAX2Namespaces.h" @@ -88,7 +88,7 @@ void SAX2Namespaces::empty() { - namespaceMap.empty(); + namespaceMap.clear(); } } // End - namespace sdo http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDO.h?r1=1.8&r2=1.9&diff_format=u Index: pecl/sdo/commonj/sdo/SDO.h diff -u pecl/sdo/commonj/sdo/SDO.h:1.8 pecl/sdo/commonj/sdo/SDO.h:1.9 --- pecl/sdo/commonj/sdo/SDO.h:1.8 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDO.h Fri Aug 24 15:20:22 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:22 $ */ #include "commonj/sdo/Property.h" #include "commonj/sdo/Type.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/DASType.h?r1=1.9&r2=1.10&diff_format=u Index: pecl/sdo/commonj/sdo/DASType.h diff -u pecl/sdo/commonj/sdo/DASType.h:1.9 pecl/sdo/commonj/sdo/DASType.h:1.10 --- pecl/sdo/commonj/sdo/DASType.h:1.9 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/DASType.h Fri Aug 24 15:20:22 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:22 $ */ #ifndef _DASTYPE_H_ #define _DASTYPE_H_ http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/export.h?r1=1.10&r2=1.11&diff_format=u Index: pecl/sdo/commonj/sdo/export.h diff -u pecl/sdo/commonj/sdo/export.h:1.10 pecl/sdo/commonj/sdo/export.h:1.11 --- pecl/sdo/commonj/sdo/export.h:1.10 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/export.h Fri Aug 24 15:20:22 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:22 $ */ #define SDO4CPP_VERSION 20051202 http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXMLBufferWriter.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXMLBufferWriter.cpp diff -u pecl/sdo/commonj/sdo/SDOXMLBufferWriter.cpp:1.7 pecl/sdo/commonj/sdo/SDOXMLBufferWriter.cpp:1.8 --- pecl/sdo/commonj/sdo/SDOXMLBufferWriter.cpp:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDOXMLBufferWriter.cpp Fri Aug 24 15:20:22 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:22 $ */ #include "commonj/sdo/SDOXMLBufferWriter.h" #include "commonj/sdo/SDORuntimeException.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/XSDHelper.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/commonj/sdo/XSDHelper.cpp diff -u pecl/sdo/commonj/sdo/XSDHelper.cpp:1.7 pecl/sdo/commonj/sdo/XSDHelper.cpp:1.8 --- pecl/sdo/commonj/sdo/XSDHelper.cpp:1.7 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/XSDHelper.cpp Fri Aug 24 15:20:22 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 452786 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 452786 $ $Date: 2007/08/24 15:20:22 $ */ #include "commonj/sdo/XSDHelper.h" http://cvs.php.net/viewvc.cgi/pecl/sdo/commonj/sdo/SDOXSDWriter.cpp?r1=1.11&r2=1.12&diff_format=u Index: pecl/sdo/commonj/sdo/SDOXSDWriter.cpp diff -u pecl/sdo/commonj/sdo/SDOXSDWriter.cpp:1.11 pecl/sdo/commonj/sdo/SDOXSDWriter.cpp:1.12 --- pecl/sdo/commonj/sdo/SDOXSDWriter.cpp:1.11 Fri Jun 22 14:32:29 2007 +++ pecl/sdo/commonj/sdo/SDOXSDWriter.cpp Fri Aug 24 15:20:22 2007 @@ -17,7 +17,7 @@ * under the License. */ -/* $Rev: 518720 $ $Date: 2007/06/22 14:32:29 $ */ +/* $Rev: 518720 $ $Date: 2007/08/24 15:20:22 $ */ #include "commonj/sdo/SDOXSDWriter.h" #include "iostream" http://cvs.php.net/viewvc.cgi/pecl/sdo/tests/SCA/phpunit/TestSuite.php?r1=1.4&r2=1.5&diff_format=u Index: pecl/sdo/tests/SCA/phpunit/TestSuite.php diff -u pecl/sdo/tests/SCA/phpunit/TestSuite.php:1.4 pecl/sdo/tests/SCA/phpunit/TestSuite.php:1.5 --- pecl/sdo/tests/SCA/phpunit/TestSuite.php:1.4 Fri Jun 22 14:32:34 2007 +++ pecl/sdo/tests/SCA/phpunit/TestSuite.php Fri Aug 24 15:20:26 2007 @@ -51,6 +51,7 @@ require_once 'RestRpc/RestRpcTest.php'; require_once 'eBaySoap/eBaySoapTest.php'; require_once 'TargetTests/SCA_TargetTest.php'; +require_once 'RegressionTests/SCA_RegressionTestSuite.php'; //require_once 'LogTests/SCALoggerTest.php' ; //require_once 'LogTests/SCALogFilterTest.php' ; @@ -82,6 +83,8 @@ $suite->addTest(new PHPUnit_Framework_TestSuite("SCA_eBaySoapTest")); $suite->addTest(new PHPUnit_Framework_TestSuite("SCA_JsonRpcTest")); $suite->addTest(new PHPUnit_Framework_TestSuite("SCA_TargetTest")); + $suite->addTest(SCA_RegressionTestSuite::suite()); + // TODO // interface to logger has changed - rework the tests // $suite->addTest( new PHPUnit_Framework_TestSuite("SCALoggerTest")); http://cvs.php.net/viewvc.cgi/pecl/sdo/tests/DAS/XML/phpunit/XMLDASTest.php?r1=1.3&r2=1.4&diff_format=u Index: pecl/sdo/tests/DAS/XML/phpunit/XMLDASTest.php diff -u pecl/sdo/tests/DAS/XML/phpunit/XMLDASTest.php:1.3 pecl/sdo/tests/DAS/XML/phpunit/XMLDASTest.php:1.4 --- pecl/sdo/tests/DAS/XML/phpunit/XMLDASTest.php:1.3 Fri Jun 22 14:32:39 2007 +++ pecl/sdo/tests/DAS/XML/phpunit/XMLDASTest.php Fri Aug 24 15:20:26 2007 @@ -575,7 +575,7 @@ $this->assertEquals(SOAP_NAMESPACE, $port->address->getTypeNamespaceURI(), "testSoap - wrong namespace URI for address;"); $stringified = $xmldas->saveString($wsdl_doc); - $this->assertFalse(strpos($stringified, '<port><soap:address') === FALSE, "testSoap - wrong namespace prefix for address;"); + $this->assertFalse(strpos($stringified, '<wsdl:port><soap:address') === FALSE, "testSoap - wrong namespace prefix for address;"); } catch (SDO_Exception $e) { $this->assertTrue(false, "testSoap - Unexpected Exception Caught: " . $e->getMessage()); } http://cvs.php.net/viewvc.cgi/pecl/sdo/SCA/SCA.php?r1=1.6&r2=1.7&diff_format=u Index: pecl/sdo/SCA/SCA.php diff -u pecl/sdo/SCA/SCA.php:1.6 pecl/sdo/SCA/SCA.php:1.7 --- pecl/sdo/SCA/SCA.php:1.6 Fri Jun 22 14:32:34 2007 +++ pecl/sdo/SCA/SCA.php Fri Aug 24 15:20:26 2007 @@ -1,5 +1,5 @@ <?php -/* +/** +-----------------------------------------------------------------------------+ | (c) Copyright IBM Corporation 2006, 2007. | | All Rights Reserved. | @@ -22,7 +22,7 @@ | Chris Miller. | | | +-----------------------------------------------------------------------------+ -$Id: SCA.php,v 1.6 2007/06/22 14:32:34 mfp Exp $ +$Id: SCA.php,v 1.7 2007/08/24 15:20:26 mfp Exp $ */ /** @@ -97,7 +97,8 @@ public static function sendHttpHeader($header) { if (self::$http_header_catcher === null) { - header ($header); + self::$logger->log("sending http header: $header"); + header($header); } else { self::$http_header_catcher->catchHeader($header); } @@ -124,32 +125,32 @@ self::$logger = SCA_LogFactory::create(); // Turn on logging here by removing the comment from the following line - // self::$logger->startLog(); + // self::$logger->startLog(); self::$logger->log('Entering'); self::$logger->log("Called from $calling_component_filename"); if (isset($_SERVER['HTTP_HOST'])) - self::$logger->log('$_SERVER[\'HTTP_HOST\'] = ' . $_SERVER['HTTP_HOST'] ); + self::$logger->log('$_SERVER[\'HTTP_HOST\'] = ' . $_SERVER['HTTP_HOST']); if (isset($_SERVER['REQUEST_METHOD'])) - self::$logger->log('$_SERVER[\'REQUEST_METHOD\'] = ' . $_SERVER['REQUEST_METHOD'] ); + self::$logger->log('$_SERVER[\'REQUEST_METHOD\'] = ' . $_SERVER['REQUEST_METHOD']); if (isset($_SERVER['CONTENT_TYPE']) ) - self::$logger->log('$_SERVER[\'CONTENT_TYPE\'] = ' . $_SERVER['CONTENT_TYPE'] ); + self::$logger->log('$_SERVER[\'CONTENT_TYPE\'] = ' . $_SERVER['CONTENT_TYPE']); // contains the X.wsdl in http://..../X.php/X.wsdl if (isset($_SERVER[ 'PATH_INFO' ])) - self::$logger->log('$_SERVER[\'PATH_INFO\'] = ' . $_SERVER['PATH_INFO'] ); + self::$logger->log('$_SERVER[\'PATH_INFO\'] = ' . $_SERVER['PATH_INFO']); if (isset($_SERVER[ 'PHP_SELF' ])) - self::$logger->log('$_SERVER[\'PHP_SELF\'] = ' . $_SERVER['PHP_SELF'] ); + self::$logger->log('$_SERVER[\'PHP_SELF\'] = ' . $_SERVER['PHP_SELF']); if (isset($_SERVER[ 'REQUEST_URI' ])) - self::$logger->log('$_SERVER[\'REQUEST_URI\'] = ' . $_SERVER['REQUEST_URI'] ); + self::$logger->log('$_SERVER[\'REQUEST_URI\'] = ' . $_SERVER['REQUEST_URI']); if (isset($_GET[ 'wsdl' ])) - self::$logger->log('$_GET[\'wsdl\'] = ' . $_GET['wsdl'] ); + self::$logger->log('$_GET[\'wsdl\'] = ' . $_GET['wsdl']); /** * The instance check around the class - if (!class_exists... - @@ -172,7 +173,7 @@ * HTTP request and we have the expected ?wsdl, ?smd etc. on the URL * 3. Consider this is a web request otherwise, since we have been included * - * We would get caught out if a non-SCA script were simply to simply + * We would get caught out if a non-SCA script were simply to * to include a component rather than including SCA and using getService * to get a proxy to it. */ @@ -191,8 +192,6 @@ $service_description->script_name = $_SERVER['SCRIPT_NAME']; $service_description->http_host = $http_host; - $class_name = SCA_Helper::guessClassName($calling_component_filename); - foreach ($service_description->binding as $binding_string) { SCA::$logger->log("Applying tests for a $binding_string binding"); @@ -213,12 +212,11 @@ } } - /** - * There are other reasons you can get to here - a component loaded - * locally, for example, or loaded as a result of a SOAP request - * but some other component is the real destination. - * None of them are errors though, so nothing needs to be done. - */ + /* There are other reasons you can get to here - a component loaded + * locally, for example, or loaded as a result of a SOAP request + * but some other component is the real destination. + * None of them are errors though, so nothing needs to be done. + */ self::$logger->log('Request was not ATOM, JSON, SOAP, or a request for a .smd or .wsdl file.'); } @@ -243,29 +241,17 @@ * This is where decisions about what type of service is to be made, * are made. * - * @param string $target + * @param string $target the file name - could be a php file, wsdl, json smd etc + * @param string $type what sort of binding if ambiguous - could be local, soap, jsonrpc, atom, xmlrpc, ... + * @param array $binding_config array of parameters found in the annotations - ebaysoap for example needs * @return proxy - * @throws SCA_RuntimeException + * @throws SCA_RuntimeException if the target is null or empty string */ public static function getService($target, $type = null, $binding_config = null) { self::$logger->log("Entering"); - self::$logger->log("Target is $target , Type is $type"); - - // automatically create a tuscany proxy if SCA is embedded in tuscany C++ SCA - // there isn't really a sound reason for doing this but the following - // path manipulation code crashes with php running in embedded mode. - // needs further investigation - if (self::$is_embedded ) { - return new SCA_TuscanyProxy($target); - } - /** - * Calculate the directory against which we will resolve relative paths - * If getService has been called directly from a client script, - * this is the immediate caller, just one step back up the call stack - */ - $backtrace = debug_backtrace(); + $backtrace = debug_backtrace(); $immediate_caller_filename = $backtrace[0]['file']; if ($target === null) { @@ -278,12 +264,20 @@ throw new SCA_RuntimeException($msg); } - SCA::$logger->log("immediate caller = $immediate_caller_filename"); + self::$logger->log("Target is $target , Type is $type"); + + // automatically create a tuscany proxy if SCA is embedded in tuscany C++ SCA + // there isn't really a sound reason for doing this but the following + // path manipulation code crashes with php running in embedded mode. + // needs further investigation + if (self::$is_embedded ) { + return new SCA_TuscanyProxy($target); + } // set up the type in the case where getService has been // called from a client script and the type has defaulted to null - if ($type == null && (strstr($target, '.php') == '.php') && (strstr($target, 'http:') || strstr($target,'https:'))) { + if ($type == null && (strstr($target, '.php') == '.php') && (strstr($target, 'http:') || strstr($target, 'https:'))) { throw new SCA_RuntimeException("The target $target appears to be for a remote component, but needs a binding to be specified"); } @@ -291,34 +285,36 @@ if (strstr($target, '.wsdl') == '.wsdl' || strstr($target, '?wsdl') == '?wsdl') { // end with .wsdl or ?wsdl SCA::$logger->log("Inferring from presence of .wsdl or ?wsdl that a soap proxy is required for this target."); $type = 'soap'; - } else if (strstr($target, '.smd') == '.smd' || strstr($target,'?smd') == '?smd') { + } else if (strstr($target, '.smd') == '.smd' || strstr($target, '?smd') == '?smd') { SCA::$logger->log("Inferring from presence of .smd or ?smd that a jsonrpc proxy is required for this target."); $type = 'jsonrpc'; } else if (strstr($target, '.php') == '.php') { // .php on the end - SCA::$logger->log("A local proxy is required for this target."); + SCA::$logger->log("Inferring from the fact that the target ends in .php that a local proxy is required for this target."); $type = 'local'; } } - if (isset($type) && $type !== null) { - if (!isset($binding_config)) { - $binding_config = null; - } - SCA::$logger->log("A $type proxy is required for target $target."); - $base_path_for_relative_paths = dirname($immediate_caller_filename); - return SCA_Binding_Factory::createProxy($type, - $target, - $base_path_for_relative_paths, - $binding_config); + if (!isset($type) || $type == null) { + $msg = "The right binding to use could not be inferred from the target {$target}. The binding must be specified as the second argument to SCA::getService()." ; + throw new SCA_RuntimeException($msg); } - $file = basename($target); - $dir = dirname($target); - $msg = "The right binding to use could not be inferred from the target {$target}. The binding must be specified as the second argument to getService()." ; + /** + * Calculate the directory against which we will resolve relative paths + * If getService has been called directly from a client script, + * this is the immediate caller, just one step back up the call stack + */ + $base_path_for_relative_paths = dirname($immediate_caller_filename); + + SCA::$logger->log("About to create a $type proxy for target $target. Base path for relative paths is $base_path_for_relative_paths"); - throw new SCA_RuntimeException($msg); + $proxy = SCA_Binding_Factory::createProxy($type, + $target, + $base_path_for_relative_paths, + $binding_config); self::$logger->log("Exiting"); + return $proxy; } /** @@ -336,9 +332,8 @@ * instance variables. The call(s) to getService may recurse back through here * if those dependencies also have dependencies * - * @param name of the class + * @param string $class_name name of the class * @return class instance - * @throws SCA_Exeption */ public static function createInstanceAndFillInReferences($class_name) { @@ -363,7 +358,7 @@ $reference_proxy = SCA::getService($ref_value); } - $prop = $reflection->getProperty($ref_name); + $prop = $reflection->getProperty($ref_name); // add the reference information to the proxy // this is added just in case there are any @@ -381,12 +376,14 @@ /** * Instantiate the component + * @param string $class_name class to instantiate + * @return object instance of the class */ public static function createInstance($class_name) { self::$logger->log("Entering"); self::$logger->log("Class name of component to instantiate is $class_name"); - $instance = new $class_name; + $instance = new $class_name; return $instance; } @@ -396,17 +393,18 @@ * instance variables. The call(s) to getService may recurse back through here * if those dependencies also have dependencies * - * @param instance of a class which may or may not contain references to other components - * @return class instance - * @throws SCA_Exeption + * @param object $instance instance of a class which may or may not contain references to other components + * @return object instance */ public static function fillInReferences($instance) { self::$logger->log("Entering"); $class_name = get_class($instance); - $file = SCA_Helper::getFileContainingClass($class_name); + $file = SCA_Helper::getFileContainingClass($class_name); + $path_to_resolve_relative_paths_against = dirname($file); + self::$logger->log("Path to resolve relative paths against is $path_to_resolve_relative_paths_against"); $reader = new SCA_AnnotationReader($instance); $references = $reader->reflectReferencesFull(); @@ -414,12 +412,12 @@ $reflection = new ReflectionObject($instance); foreach ($references as $ref_name => $ref_type) { - self::$logger->log("Reference name = $ref_name, ref_type = " . print_r($ref_type,true)); - $ref_value = $ref_type->getBinding(); - $prop = $reflection->getProperty($ref_name); + // self::$logger->log("Reference name = $ref_name, ref_type = " . print_r($ref_type,true)); + self::$logger->log("Reference name = $ref_name"); - $reference_proxy = SCA_Binding_Factory::createProxy( - $ref_type->getBindingType(), + $ref_value = $ref_type->getBinding(); + $prop = $reflection->getProperty($ref_name); + $reference_proxy = SCA_Binding_Factory::createProxy($ref_type->getBindingType(), $ref_value, $path_to_resolve_relative_paths_against, $ref_type->getBindingConfig()); // NB recursion here @@ -442,15 +440,15 @@ * Create an array containing the service descriptions from the annotations * found in the class file. * - * @param object ( Class file containing the service annotations ) - * @return array ( Containing the service decscriptions ) + * @param string $class_file Class file containing the service annotations ) + * @return object The service description object * @throws SCA_RuntimeException ... when things go wrong */ public static function constructServiceDescription($class_file) { $class_name = SCA_Helper::guessClassName($class_file); - if ( ! class_exists($class_name, false)){ + if ( ! class_exists($class_name, false)) { // The code analyzer marks the following include with a variable name as // unsafe. It is safe, however as the class file name can only come from // a getService call or an annotation. @@ -478,55 +476,42 @@ * This function can be called directly by a component to * create a dataobject from the namespaces defined in the @types annotations. * - * @param string $namespace_uri Namespace identifying the xsd - * @param string $type_name Element being reference in the xsd - * @return object Empty Data Object structure + * @param string $namespace_uri Namespace identifying the xsd + * @param string $type_name Element being reference in the xsd + * @return object Empty Data Object structure */ public static function createDataObject( $namespace_uri, $type_name ) { - $xmldas = null ; // Find out who/what called this function so that the type annotations // that define the xml used to create a 'das' can be scanned. - $backtrace = debug_backtrace(); - $caller = $backtrace[0]; - $filepath = $caller['file']; - // the key to the xmldas array. - $keyname = md5( serialize( $filepath ) ) ; + $backtrace = debug_backtrace(); + $caller = $backtrace[0]; + $filepath = $caller['file']; + $keyname = md5(serialize($filepath)); // Check if there is a matching xsd in the xmldas array - if ( array_key_exists( $keyname, self::$xml_das_array ) ) { + if ( array_key_exists($keyname, self::$xml_das_array) ) { $xmldas = self::$xml_das_array[ $keyname ] ; - } else { // The trap will only trigger if the Annotations cannot be found // normally this is because a SCA Client Component has incorrectly // attempted to use this method, rather than the 'createDataObject' // method of either the 'Proxy, or LocalProxy. try { - $class_name = SCA_Helper::guessClassName( $filepath ); - $xmldas = SCA_Helper::getXmldas( $class_name, null ) ; + $class_name = SCA_Helper::guessClassName($filepath); + $xmldas = SCA_Helper::getXmldas($class_name, null); self::$xml_das_array[ $keyname ] = $xmldas ; - } catch( ReflectionException $e ) { - $msg = $e->getMessage() ; - throw new SCA_RuntimeException( "SCA::createdDataObject can only be used from a Service Component" ); + $msg = $e->getMessage(); + throw new SCA_RuntimeException( "A PHP ReflectionException was thrown with message $msg. " + . "This is usually the result of calling SCA::createDataObject from a user script. " + . "User scripts should only call createDataObject on an SCA Proxy object."); } } return $xmldas->createDataObject($namespace_uri, $type_name); } - // public static function createDataObject( $namespace_uri, $type_name) - // { - // /* we have been called directly by SCA::createDataObject(), find calling class */ - // $backtrace = debug_backtrace(); - // $caller = $backtrace[0]; - // $file_name = $caller['file']; - // $class_name = SCA_Helper::guessClassName($file_name); - // - // return SCA_Helper::createDataObject($namespace_uri, - // $type_name, $class_name); - // } /** * This function can be called directly by a php script to dispatch a request to @@ -535,16 +520,17 @@ * by in a script that is just a wrapper script and is not acting as a client for * the service. This can happen if you want keep php files that define service * outside of the htdocs directory - * - * @param string $class_name The class_name that implements the target service + * + * @param string $class_name The class_name that implements the target service + * @return void */ public static function dispatch($class_name) { - $file_name = SCA_Helper::getFileContainingClass($class_name); + $file_name = SCA_Helper::getFileContainingClass($class_name); $_SERVER['SCRIPT_FILENAME'] = $file_name; SCA::initComponent($file_name); } - }/* End SCA Class */ + } /** http://cvs.php.net/viewvc.cgi/pecl/sdo/SCA/SCA_Logger.php?r1=1.4&r2=1.5&diff_format=u Index: pecl/sdo/SCA/SCA_Logger.php diff -u pecl/sdo/SCA/SCA_Logger.php:1.4 pecl/sdo/SCA/SCA_Logger.php:1.5 --- pecl/sdo/SCA/SCA_Logger.php:1.4 Fri May 4 15:05:41 2007 +++ pecl/sdo/SCA/SCA_Logger.php Fri Aug 24 15:20:26 2007 @@ -22,7 +22,7 @@ | Chris Miller. | | | +-----------------------------------------------------------------------------+ -$Id: SCA_Logger.php,v 1.4 2007/05/04 15:05:41 mfp Exp $ +$Id: SCA_Logger.php,v 1.5 2007/08/24 15:20:26 mfp Exp $ */ require 'SCA/SCA_LogInterface.php' ; @@ -247,6 +247,10 @@ * */ public function startLog() { + if ($this->run == SCA_LOGGER_START) + // we are already started; this is a second or subsequent call to startLog() - do nothing + return; + $dirpath = SCA_Helper::getTempDir().'/log'; $file = 'SCA'; $command = SCA_LOGGER_UPDATE; @@ -265,6 +269,9 @@ $this->logfile = "{$this->dirpath}/{$this->file}.{$this->extn}" ; + // turn on if you cannot remember where the log is written to +// trigger_error("SCA logging started; logging to $this->logfile"); + date_default_timezone_set('UTC'); /* Delete an existing file, or get the last message index */ @@ -316,7 +323,7 @@ * @return array Contains the contents of the log file */ public function fromLog( $categorisation = null ) { - $this->stopLog(); //lock + // $this->stopLog(); //lock $logList = array() ; if ( $categorisation === null ) @@ -324,7 +331,7 @@ $logList = $this->_getMsg(null, $this->logfile, $categorisation ); - $this->startLog(); //unlock + // $this->startLog(); //unlock return $logList ; @@ -377,7 +384,7 @@ */ private function _tolog( $msg , $filename = "", $line = "", $level = null ) { - $this->stopLog() ; //lock + // $this->stopLog() ; //lock $stack_depth = substr('....', 1, 2 ) ; $calling_class = $filename ; $calling_method = $line ; @@ -409,7 +416,7 @@ file_put_contents($this->logfile, $log_msg, FILE_APPEND ); - $this->startLog() ; //unlock + // $this->startLog() ; //unlock }/* End to log function */ http://cvs.php.net/viewvc.cgi/pecl/sdo/tests/SDO/phpt/bug9867.phpt?r1=1.1&r2=1.2&diff_format=u Index: pecl/sdo/tests/SDO/phpt/bug9867.phpt diff -u /dev/null pecl/sdo/tests/SDO/phpt/bug9867.phpt:1.2 --- /dev/null Fri Aug 24 15:20:28 2007 +++ pecl/sdo/tests/SDO/phpt/bug9867.phpt Fri Aug 24 15:20:26 2007 @@ -0,0 +1,80 @@ +--TEST-- +SDO test for namespaces +--INI-- +display_errors=off +--SKIPIF-- +<?php +if (!extension_loaded("sdo")) + echo "skip sdo not loaded"; +?> +--FILE-- +<?php + +$person_xsd = <<<EOF +<?xml version="1.0" encoding="UTF-8"?> +<schema xmlns="http://www.w3.org/2001/XMLSchema" + targetNamespace="http://www.test.com/info" + xmlns:info="http://www.test.com/info"> + <complexType name="nameType"> + <sequence> + <element name="first" type="string"></element> + <element name="last" type="string"></element> + </sequence> + </complexType> + <complexType name="personType"> + <sequence> + <element name="name" type="info:nameType"></element> + </sequence> + </complexType> +</schema> +EOF; + +$types_xsd = <<< EOF + <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns:ns0="http://www.test.com/info" + targetNamespace="http://Component" + elementNameDefault="qualified"> + <xs:import schemaLocation="person.xsd" namespace="http://www.test.com/info"/> + <xs:element name="add"> + <xs:complexType> + <xs:sequence> + <xs:element name="person" type="ns0:personType" nillable="true"/> + </xs:sequence> + </xs:complexType> + </xs:element> + </xs:schema> +EOF; + +file_put_contents('person.xsd', $person_xsd); +file_put_contents('types.xsd', $types_xsd); + +$xmldas = SDO_DAS_XML::create('types.xsd'); + +unlink('person.xsd'); +unlink('types.xsd'); + +$xdoc = $xmldas->createDocument('', 'add'); +$add = $xdoc->getRootDataObject(); + +$person = $xmldas->createDataObject('http://www.test.com/info','personType'); +$name = $person->createDataObject('name'); +$name->first = "Will"; +$name->last = "Shakespeare"; + +$add->person = $person; + +$xmlstr = $xmldas->saveString($xdoc, 2); +echo $xmlstr; + + +?> +--EXPECT-- +<?xml version="1.0" encoding="UTF-8"?> +<tns:add xmlns:tns="http://Component" xmlns:tns2="http://www.test.com/info" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <person> + <name> + <first>Will</first> + <last>Shakespeare</last> + </name> + </person> +</tns:add> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pecl/sdo/tests/SDO/phpt/bug8694.phpt?r1=1.4&r2=1.5&diff_format=u Index: pecl/sdo/tests/SDO/phpt/bug8694.phpt diff -u pecl/sdo/tests/SDO/phpt/bug8694.phpt:1.4 pecl/sdo/tests/SDO/phpt/bug8694.phpt:1.5 --- pecl/sdo/tests/SDO/phpt/bug8694.phpt:1.4 Fri Jun 22 14:32:38 2007 +++ pecl/sdo/tests/SDO/phpt/bug8694.phpt Fri Aug 24 15:20:26 2007 @@ -6,8 +6,7 @@ <?php if (!extension_loaded("sdo")) echo "skip sdo not loaded"; -else if (phpversion('sdo') <= '1.2.2') - echo "skip test requires version > 1.2.2"; +echo "skip bug8694 is bogus"; ?> --FILE-- <?php http://cvs.php.net/viewvc.cgi/pecl/sdo/tests/SCA/phpunit/RegressionTests/SCA_RegressionTestSuite.php?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: pecl/sdo/tests/SCA/phpunit/RegressionTests/SCA_RegressionTestSuite.php diff -u pecl/sdo/tests/SCA/phpunit/RegressionTests/SCA_RegressionTestSuite.php:1.1.2.1 pecl/sdo/tests/SCA/phpunit/RegressionTests/SCA_RegressionTestSuite.php:1.1.2.2 --- pecl/sdo/tests/SCA/phpunit/RegressionTests/SCA_RegressionTestSuite.php:1.1.2.1 Wed Aug 22 13:02:13 2007 +++ pecl/sdo/tests/SCA/phpunit/RegressionTests/SCA_RegressionTestSuite.php Fri Aug 24 15:20:26 2007 @@ -32,7 +32,7 @@ require_once 'PHPUnit/Framework.php'; require_once 'PHPUnit/TextUI/TestRunner.php'; -require_once 'Tuscany1566Test.php'; +//require_once 'Tuscany1566Test.php'; require_once 'Bug11774Test.php'; class SCA_RegressionTestSuite { @@ -44,7 +44,7 @@ public static function suite() { $suite = new PHPUnit_Framework_TestSuite(); - $suite->addTest(new PHPUnit_Framework_TestSuite("Tuscany1566Test")); +// $suite->addTest(new PHPUnit_Framework_TestSuite("Tuscany1566Test")); $suite->addTest(new PHPUnit_Framework_TestSuite("Bug11774Test")); return $suite; http://cvs.php.net/viewvc.cgi/pecl/sdo/tests/SCA/phpunit/RestRpc/RestRpcTestService.response?r1=1.2&r2=1.3&diff_format=u Index: pecl/sdo/tests/SCA/phpunit/RestRpc/RestRpcTestService.response diff -u pecl/sdo/tests/SCA/phpunit/RestRpc/RestRpcTestService.response:1.2 pecl/sdo/tests/SCA/phpunit/RestRpc/RestRpcTestService.response:1.3 --- pecl/sdo/tests/SCA/phpunit/RestRpc/RestRpcTestService.response:1.2 Fri May 4 15:05:52 2007 +++ pecl/sdo/tests/SCA/phpunit/RestRpc/RestRpcTestService.response Fri Aug 24 15:20:26 2007 @@ -1,2 +1,2 @@ <?xml version="1.0" encoding="UTF-8"?> -<HelloType xmlns="http://www.example.org/Hello" xsi:type="HelloType" xmlns:tns="http://www.example.org/Hello" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><name>name</name><greeting>Hello Fred</greeting><reversed>derF olleH</reversed></HelloType> +<HelloType xsi:type="tns2:HelloType" xmlns:tns2="http://www.example.org/Hello" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><name>name</name><greeting>Hello Fred</greeting><reversed>derF olleH</reversed></HelloType> http://cvs.php.net/viewvc.cgi/pecl/sdo/tests/SCA/phpunit/RestRpc/RestRpcTest.php?r1=1.2&r2=1.3&diff_format=u Index: pecl/sdo/tests/SCA/phpunit/RestRpc/RestRpcTest.php diff -u pecl/sdo/tests/SCA/phpunit/RestRpc/RestRpcTest.php:1.2 pecl/sdo/tests/SCA/phpunit/RestRpc/RestRpcTest.php:1.3 --- pecl/sdo/tests/SCA/phpunit/RestRpc/RestRpcTest.php:1.2 Fri May 4 15:05:52 2007 +++ pecl/sdo/tests/SCA/phpunit/RestRpc/RestRpcTest.php Fri Aug 24 15:20:26 2007 @@ -106,7 +106,6 @@ } -// Call SCA_JsonRpcTest::main() if this source file is executed directly. if (!defined("PHPUnit_MAIN_METHOD")) { define("PHPUnit_MAIN_METHOD", "SCA_RestRpcTest::main"); SCA_RestRpcTest::main(); http://cvs.php.net/viewvc.cgi/pecl/sdo/SCA/Bindings/soap/ServiceRequestHandler.php?r1=1.3&r2=1.4&diff_format=u Index: pecl/sdo/SCA/Bindings/soap/ServiceRequestHandler.php diff -u pecl/sdo/SCA/Bindings/soap/ServiceRequestHandler.php:1.3 pecl/sdo/SCA/Bindings/soap/ServiceRequestHandler.php:1.4 --- pecl/sdo/SCA/Bindings/soap/ServiceRequestHandler.php:1.3 Fri Jun 22 14:32:38 2007 +++ pecl/sdo/SCA/Bindings/soap/ServiceRequestHandler.php Fri Aug 24 15:20:26 2007 @@ -72,7 +72,8 @@ $class_name = SCA_Helper::guessClassName($calling_component_filename); $service_wrapper = new SCA_Bindings_soap_Wrapper($class_name, $handler); $server->setObject($service_wrapper); - $server->handle(); + global $HTTP_RAW_POST_DATA; + $server->handle($HTTP_RAW_POST_DATA); } } http://cvs.php.net/viewvc.cgi/pecl/sdo/SCA/Bindings/soap/ServiceDescriptionGenerator.php?r1=1.4&r2=1.5&diff_format=u Index: pecl/sdo/SCA/Bindings/soap/ServiceDescriptionGenerator.php diff -u pecl/sdo/SCA/Bindings/soap/ServiceDescriptionGenerator.php:1.4 pecl/sdo/SCA/Bindings/soap/ServiceDescriptionGenerator.php:1.5 --- pecl/sdo/SCA/Bindings/soap/ServiceDescriptionGenerator.php:1.4 Fri Jun 22 14:32:38 2007 +++ pecl/sdo/SCA/Bindings/soap/ServiceDescriptionGenerator.php Fri Aug 24 15:20:26 2007 @@ -288,9 +288,9 @@ /*********************************************************************** * Find the <types/> element and replace it with the generated one ***********************************************************************/ - $types_pos = strpos($str, '<types/>'); + $types_pos = strpos($str, '<wsdl:types/>'); $front = substr($str, 0, $types_pos); // the bit before <types/> - $back = substr($str, $types_pos + 8); // the bit after <types/> + $back = substr($str, $types_pos + 13); // the bit after <types/> $str = $front . $types_element . $back; $our_comment = "<!-- this line identifies this file as WSDL generated by SCA for PHP. Do not remove -->"; http://cvs.php.net/viewvc.cgi/pecl/sdo/tests/SCA/phpt/004.phpt?r1=1.4&r2=1.5&diff_format=u Index: pecl/sdo/tests/SCA/phpt/004.phpt diff -u pecl/sdo/tests/SCA/phpt/004.phpt:1.4 pecl/sdo/tests/SCA/phpt/004.phpt:1.5 --- pecl/sdo/tests/SCA/phpt/004.phpt:1.4 Fri Jun 22 14:32:37 2007 +++ pecl/sdo/tests/SCA/phpt/004.phpt Fri Aug 24 15:20:26 2007 @@ -13,7 +13,7 @@ ?> --EXPECT-- <?xml version="1.0" encoding="UTF-8"?> -<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns2="http://Component" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" targetNamespace="http://Component"> +<wsdl:definitions xmlns:tns2="http://Component" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" targetNamespace="http://Component"> <types> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns0="http://www.test.com/info" @@ -52,49 +52,49 @@ </xs:schema> </types> - <message name="reverseRequest"> - <part name="reverseRequest" element="tns2:reverse"/> - </message> - <message name="reverseResponse"> - <part name="return" element="tns2:reverseResponse"/> - </message> - <message name="addRequest"> - <part name="addRequest" element="tns2:add"/> - </message> - <message name="addResponse"> - <part name="return" element="tns2:addResponse"/> - </message> - <portType name="ComponentPortType"> - <operation name="reverse"> - <input message="tns2:reverseRequest"/> - <output message="tns2:reverseResponse"/> - </operation> - <operation name="add"> - <input message="tns2:addRequest"/> - <output message="tns2:addResponse"/> - </operation> - </portType> - <binding name="ComponentBinding" type="tns2:ComponentPortType"> + <wsdl:message name="reverseRequest"> + <wsdl:part name="reverseRequest" element="tns2:reverse"/> + </wsdl:message> + <wsdl:message name="reverseResponse"> + <wsdl:part name="return" element="tns2:reverseResponse"/> + </wsdl:message> + <wsdl:message name="addRequest"> + <wsdl:part name="addRequest" element="tns2:add"/> + </wsdl:message> + <wsdl:message name="addResponse"> + <wsdl:part name="return" element="tns2:addResponse"/> + </wsdl:message> + <wsdl:portType name="ComponentPortType"> + <wsdl:operation name="reverse"> + <wsdl:input message="tns2:reverseRequest"/> + <wsdl:output message="tns2:reverseResponse"/> + </wsdl:operation> + <wsdl:operation name="add"> + <wsdl:input message="tns2:addRequest"/> + <wsdl:output message="tns2:addResponse"/> + </wsdl:operation> + </wsdl:portType> + <wsdl:binding name="ComponentBinding" type="tns2:ComponentPortType"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> - <operation name="reverse"> + <wsdl:operation name="reverse"> <soap:operation soapAction=""/> - <input> + <wsdl:input> <soap:body use="literal"/> - </input> - <output> + </wsdl:input> + <wsdl:output> <soap:body use="literal"/> - </output> - </operation> - <operation name="add"> + </wsdl:output> + </wsdl:operation> + <wsdl:operation name="add"> <soap:operation soapAction=""/> - <input> + <wsdl:input> <soap:body use="literal"/> - </input> - <output> + </wsdl:input> + <wsdl:output> <soap:body use="literal"/> - </output> - </operation> - </binding> - <service name="ComponentService"> - <port name="ComponentPort" binding="tns2:ComponentBinding"> + </wsdl:output> + </wsdl:operation> + </wsdl:binding> + <wsdl:service name="ComponentService"> + <wsdl:port name="ComponentPort" binding="tns2:ComponentBinding"> <soap:address \ No newline at end of file http://cvs.php.net/viewvc.cgi/pecl/sdo/tests/SCA/phpt/002.phpt?r1=1.3&r2=1.4&diff_format=u Index: pecl/sdo/tests/SCA/phpt/002.phpt diff -u pecl/sdo/tests/SCA/phpt/002.phpt:1.3 pecl/sdo/tests/SCA/phpt/002.phpt:1.4 --- pecl/sdo/tests/SCA/phpt/002.phpt:1.3 Fri Jun 22 14:32:37 2007 +++ pecl/sdo/tests/SCA/phpt/002.phpt Fri Aug 24 15:20:26 2007 @@ -4,19 +4,19 @@ <?php if (!extension_loaded("sdo")) echo "skip sdo not loaded"; -else if (phpversion('sdo') <= '1.2.2') - echo "skip test until pecl bug 11388 resolved"; ?> --FILE-- <?php $HTTP_RAW_POST_DATA = <<<EOF <?xml version="1.0" encoding="UTF-8"?> -<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://Component"><SOAP-ENV:Body><ns1:reverse xmlns="http://Component" xmlns:tns="http://Component" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="reverse"> +<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://Component"> +<SOAP-ENV:Body> +<ns1:reverse xmlns="http://Component" xmlns:tns="http://Component" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="reverse"> <in>IBM</in> -</ns1:reverse></SOAP-ENV:Body></SOAP-ENV:Envelope> - - +</ns1:reverse> +</SOAP-ENV:Body> +</SOAP-ENV:Envelope> EOF; require "SCA/SCA.php"; @@ -33,4 +33,4 @@ ?> --EXPECT-- <?xml version="1.0" encoding="UTF-8"?> -<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://Component"><SOAP-ENV:Body><ns1:reverseResponse xmlns="http://Component"><reverseReturn>MBI</reverseReturn></ns1:reverseResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> \ No newline at end of file +<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://Component"><SOAP-ENV:Body><ns1:reverseResponse><reverseReturn>MBI</reverseReturn></ns1:reverseResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pecl/sdo/tests/SCA/phpt/003.phpt?r1=1.3&r2=1.4&diff_format=u Index: pecl/sdo/tests/SCA/phpt/003.phpt diff -u pecl/sdo/tests/SCA/phpt/003.phpt:1.3 pecl/sdo/tests/SCA/phpt/003.phpt:1.4 --- pecl/sdo/tests/SCA/phpt/003.phpt:1.3 Fri Jun 22 14:32:37 2007 +++ pecl/sdo/tests/SCA/phpt/003.phpt Fri Aug 24 15:20:26 2007 @@ -4,15 +4,15 @@ <?php if (!extension_loaded("sdo")) echo "skip sdo not loaded"; -else if (phpversion('sdo') <= '1.2.2') - echo "skip test until pecl bug 11388 resolved"; ?> --FILE-- <?php $HTTP_RAW_POST_DATA = <<<EOF <?xml version="1.0" encoding="UTF-8"?> -<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://Component"><SOAP-ENV:Body><ns1:add xmlns="http://Component" xmlns:tns="http://Component" xmlns:tns2="http://www.test.com/info" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="add"> +<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://Component"> +<SOAP-ENV:Body> +<ns1:add xmlns="http://Component" xmlns:tns="http://Component" xmlns:tns2="http://www.test.com/info" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="add"> <tns2:person> <tns2:name> <first>William</first> @@ -28,9 +28,9 @@ <type>home</type> <number>123-456</number> </tns2:phone> -</ns1:add></SOAP-ENV:Body></SOAP-ENV:Envelope> - - +</ns1:add> +</SOAP-ENV:Body> +</SOAP-ENV:Envelope> EOF; require "SCA/SCA.php"; @@ -47,4 +47,4 @@ ?> --EXPECT-- <?xml version="1.0" encoding="UTF-8"?> -<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://Component"><SOAP-ENV:Body><ns1:addResponse xmlns="http://Component"><addReturn><name><first>William</first><last>Shakespeare</last></name><phone><type>home</type><number>123-456</number></phone><address><street>456 Evergreen</street><city>Austin</city><state>TX</state></address></addReturn></ns1:addResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> \ No newline at end of file +<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://Component"><SOAP-ENV:Body><ns1:addResponse><addReturn><name><first>William</first><last>Shakespeare</last></name><phone><type>home</type><number>123-456</number></phone><address><street>456 Evergreen</street><city>Austin</city><state>TX</state></address></addReturn></ns1:addResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> \ No newline at end of file