cvs: pecl /sdo SDO_DAS_DataFactory.cpp SDO_DAS_Setting.cpp SDO_DataObject.cpp SDO_List.cpp SDO_Model_Property.cpp SDO_Sequence.cpp php_sdo_int.h
| From: | Caroline Maynard | Date: | Thu, 07 Dec 2006 14:22:59 +0000 |
| Subject: | cvs: pecl /sdo SDO_DAS_DataFactory.cpp SDO_DAS_Setting.cpp SDO_DataObject.cpp SDO_List.cpp SDO_Model_Property.cpp SDO_Sequence.cpp php_sdo_int.h | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-6765@lists.php.net to get a copy of this message | ||
cem Thu Dec 7 14:22:59 2006 UTC
Modified files:
/pecl/sdo SDO_DAS_DataFactory.cpp SDO_DAS_Setting.cpp
SDO_DataObject.cpp SDO_List.cpp SDO_Model_Property.cpp
SDO_Sequence.cpp php_sdo_int.h
Log:
First pass at fix for bug#9426 - may need more
http://cvs.php.net/viewvc.cgi/pecl/sdo/SDO_DAS_DataFactory.cpp?r1=1.12&r2=1.13&diff_format=u Index: pecl/sdo/SDO_DAS_DataFactory.cpp diff -u pecl/sdo/SDO_DAS_DataFactory.cpp:1.12 pecl/sdo/SDO_DAS_DataFactory.cpp:1.13 --- pecl/sdo/SDO_DAS_DataFactory.cpp:1.12 Thu Oct 12 12:14:22 2006 +++ pecl/sdo/SDO_DAS_DataFactory.cpp Thu Dec 7 14:22:59 2006 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -static char rcs_id[] = "$Id: SDO_DAS_DataFactory.cpp,v 1.12 2006/10/12 12:14:22 cem Exp $"; +static char rcs_id[] = "$Id: SDO_DAS_DataFactory.cpp,v 1.13 2006/12/07 14:22:59 cem Exp $"; #ifdef PHP_WIN32 #include <iostream> @@ -527,6 +527,7 @@ my_object->dfp->setDefault(parentType, property_name, Z_STRVAL(temp_zval)); break; case Type::DataObjectType: + case Type::OpenDataObjectType: zend_throw_exception_ex(sdo_unsupportedoperationexception_class_entry, 0 TSRMLS_CC, "DataObject property %s cannot have a default value", property_name); http://cvs.php.net/viewvc.cgi/pecl/sdo/SDO_DAS_Setting.cpp?r1=1.17&r2=1.18&diff_format=u Index: pecl/sdo/SDO_DAS_Setting.cpp diff -u pecl/sdo/SDO_DAS_Setting.cpp:1.17 pecl/sdo/SDO_DAS_Setting.cpp:1.18 --- pecl/sdo/SDO_DAS_Setting.cpp:1.17 Fri Oct 13 11:08:47 2006 +++ pecl/sdo/SDO_DAS_Setting.cpp Thu Dec 7 14:22:59 2006 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -static char rcs_id[] = "$Id: SDO_DAS_Setting.cpp,v 1.17 2006/10/13 11:08:47 cem Exp $"; +static char rcs_id[] = "$Id: SDO_DAS_Setting.cpp,v 1.18 2006/12/07 14:22:59 cem Exp $"; #ifdef PHP_WIN32 #include <iostream> @@ -189,6 +189,7 @@ RETVAL_STRING((char *)setting->getCStringValue(), 1); break; case Type::DataObjectType: + case Type::OpenDataObjectType: doh_value = setting->getDataObjectValue(); if (!doh_value) { /* An old value may legitimately be null */ http://cvs.php.net/viewvc.cgi/pecl/sdo/SDO_DataObject.cpp?r1=1.25&r2=1.26&diff_format=u Index: pecl/sdo/SDO_DataObject.cpp diff -u pecl/sdo/SDO_DataObject.cpp:1.25 pecl/sdo/SDO_DataObject.cpp:1.26 --- pecl/sdo/SDO_DataObject.cpp:1.25 Fri Nov 24 10:44:04 2006 +++ pecl/sdo/SDO_DataObject.cpp Thu Dec 7 14:22:59 2006 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -static char rcs_id[] = "$Id: SDO_DataObject.cpp,v 1.25 2006/11/24 10:44:04 cem Exp $"; +static char rcs_id[] = "$Id: SDO_DataObject.cpp,v 1.26 2006/12/07 14:22:59 cem Exp $"; #ifdef PHP_WIN32 #include <iostream> @@ -281,6 +281,7 @@ return_value = (dop->getLength(xpath) > 0); break; case Type::DataObjectType: + case Type::OpenDataObjectType: /* since the property is set, the data object cannot be 'empty' */ break; case Type::ChangeSummaryType: @@ -441,6 +442,7 @@ RETVAL_STRING((char *)dop->getCString(xpath), 1); break; case Type::DataObjectType: + case Type::OpenDataObjectType: doh_value = dop->getDataObject(xpath); if (!doh_value) { class_name = get_active_class_name(&space TSRMLS_CC); @@ -657,6 +659,7 @@ dop->setCString(xpath, Z_STRVAL(temp_zval)); break; case Type::DataObjectType: + case Type::OpenDataObjectType: if (Z_TYPE_P(z_propertyValue) != IS_OBJECT) { class_name = get_active_class_name(&space TSRMLS_CC); sdo_throw_exception_ex (sdo_unsupportedoperationexception_class_entry, 0,0 TSRMLS_CC, http://cvs.php.net/viewvc.cgi/pecl/sdo/SDO_List.cpp?r1=1.19&r2=1.20&diff_format=u Index: pecl/sdo/SDO_List.cpp diff -u pecl/sdo/SDO_List.cpp:1.19 pecl/sdo/SDO_List.cpp:1.20 --- pecl/sdo/SDO_List.cpp:1.19 Fri Oct 13 11:08:47 2006 +++ pecl/sdo/SDO_List.cpp Thu Dec 7 14:22:59 2006 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -static char rcs_id[] = "$Id: SDO_List.cpp,v 1.19 2006/10/13 11:08:47 cem Exp $"; +static char rcs_id[] = "$Id: SDO_List.cpp,v 1.20 2006/12/07 14:22:59 cem Exp $"; #ifdef PHP_WIN32 #include <iostream> @@ -262,6 +262,7 @@ RETVAL_STRING((char *)dol.getCString(index), 1); break; case Type::DataObjectType: + case Type::OpenDataObjectType: doh_value = dol[index]; /*find PHP object from C++ object */ if (!doh_value) { @@ -509,6 +510,7 @@ dol.setCString(index, Z_STRVAL(temp_zval)); break; case Type::DataObjectType: + case Type::OpenDataObjectType: convert_to_object(&temp_zval); if (!instanceof_function(Z_OBJCE(temp_zval), sdo_dataobjectimpl_class_entry TSRMLS_CC)) { zend_throw_exception_ex(sdo_unsupportedoperationexception_class_entry, 0 TSRMLS_CC, @@ -595,6 +597,7 @@ return_value = (dol.getLength(index) > 0); break; case Type::DataObjectType: + case Type::OpenDataObjectType: return_value = (!(dol[index])); break; case Type::ChangeSummaryType: http://cvs.php.net/viewvc.cgi/pecl/sdo/SDO_Model_Property.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/SDO_Model_Property.cpp diff -u pecl/sdo/SDO_Model_Property.cpp:1.7 pecl/sdo/SDO_Model_Property.cpp:1.8 --- pecl/sdo/SDO_Model_Property.cpp:1.7 Fri Oct 13 11:08:47 2006 +++ pecl/sdo/SDO_Model_Property.cpp Thu Dec 7 14:22:59 2006 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -static char rcs_id[] = "$Id: SDO_Model_Property.cpp,v 1.7 2006/10/13 11:08:47 cem Exp $"; +static char rcs_id[] = "$Id: SDO_Model_Property.cpp,v 1.8 2006/12/07 14:22:59 cem Exp $"; #ifdef PHP_WIN32 #include <iostream> @@ -212,6 +212,7 @@ /* RETVAL_STRING((char *)property.getCStringDefault(), 1); */ break; case Type::DataObjectType: + case Type::OpenDataObjectType: /* A data object type cannot have a default */ RETVAL_NULL(); break; http://cvs.php.net/viewvc.cgi/pecl/sdo/SDO_Sequence.cpp?r1=1.17&r2=1.18&diff_format=u Index: pecl/sdo/SDO_Sequence.cpp diff -u pecl/sdo/SDO_Sequence.cpp:1.17 pecl/sdo/SDO_Sequence.cpp:1.18 --- pecl/sdo/SDO_Sequence.cpp:1.17 Fri Oct 13 11:08:47 2006 +++ pecl/sdo/SDO_Sequence.cpp Thu Dec 7 14:22:59 2006 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -static char rcs_id[] = "$Id: SDO_Sequence.cpp,v 1.17 2006/10/13 11:08:47 cem Exp $"; +static char rcs_id[] = "$Id: SDO_Sequence.cpp,v 1.18 2006/12/07 14:22:59 cem Exp $"; #ifdef PHP_WIN32 #include <iostream> @@ -111,6 +111,7 @@ return_value = (seq.getLength(sequence_index) > 0); break; case Type::DataObjectType: + case Type::OpenDataObjectType: return_value = (!seq.getDataObjectValue(sequence_index)); break; case Type::ChangeSummaryType: @@ -210,6 +211,7 @@ RETVAL_STRING((char *)seq.getCStringValue(sequence_index), 1); break; case Type::DataObjectType: + case Type::OpenDataObjectType: doh_value = seq.getDataObjectValue(sequence_index); if (!doh_value) { class_name = get_active_class_name(&space TSRMLS_CC); @@ -393,6 +395,7 @@ seq.setCStringValue(sequence_index, Z_STRVAL(temp_zval)); break; case Type::DataObjectType: + case Type::OpenDataObjectType: convert_to_object(&temp_zval); if (!instanceof_function(Z_OBJCE(temp_zval), sdo_dataobjectimpl_class_entry TSRMLS_CC)) { zend_throw_exception_ex(sdo_unsupportedoperationexception_class_entry, 0 TSRMLS_CC, http://cvs.php.net/viewvc.cgi/pecl/sdo/php_sdo_int.h?r1=1.20&r2=1.21&diff_format=u Index: pecl/sdo/php_sdo_int.h diff -u pecl/sdo/php_sdo_int.h:1.20 pecl/sdo/php_sdo_int.h:1.21 --- pecl/sdo/php_sdo_int.h:1.20 Fri Nov 24 10:44:04 2006 +++ pecl/sdo/php_sdo_int.h Thu Dec 7 14:22:59 2006 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_sdo_int.h,v 1.20 2006/11/24 10:44:04 cem Exp $ */ +/* $Id: php_sdo_int.h,v 1.21 2006/12/07 14:22:59 cem Exp $ */ #ifndef PHP_SDO_INT_H #define PHP_SDO_INT_H @@ -35,7 +35,7 @@ using namespace commonj::sdo; using std::ostringstream; -#define SDO_VERSION "1.1.0" +#define SDO_VERSION "1.1.1" #define SDO_NAMESPACE_URI "namespaceURI" #define SDO_TYPE_NAME "typeName"
http://cvs.php.net/viewvc.cgi/pecl/sdo/SDO_DAS_DataFactory.cpp?r1=1.12&r2=1.13&diff_format=u Index: pecl/sdo/SDO_DAS_DataFactory.cpp diff -u pecl/sdo/SDO_DAS_DataFactory.cpp:1.12 pecl/sdo/SDO_DAS_DataFactory.cpp:1.13 --- pecl/sdo/SDO_DAS_DataFactory.cpp:1.12 Thu Oct 12 12:14:22 2006 +++ pecl/sdo/SDO_DAS_DataFactory.cpp Thu Dec 7 14:22:59 2006 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -static char rcs_id[] = "$Id: SDO_DAS_DataFactory.cpp,v 1.12 2006/10/12 12:14:22 cem Exp $"; +static char rcs_id[] = "$Id: SDO_DAS_DataFactory.cpp,v 1.13 2006/12/07 14:22:59 cem Exp $"; #ifdef PHP_WIN32 #include <iostream> @@ -527,6 +527,7 @@ my_object->dfp->setDefault(parentType, property_name, Z_STRVAL(temp_zval)); break; case Type::DataObjectType: + case Type::OpenDataObjectType: zend_throw_exception_ex(sdo_unsupportedoperationexception_class_entry, 0 TSRMLS_CC, "DataObject property %s cannot have a default value", property_name); http://cvs.php.net/viewvc.cgi/pecl/sdo/SDO_DAS_Setting.cpp?r1=1.17&r2=1.18&diff_format=u Index: pecl/sdo/SDO_DAS_Setting.cpp diff -u pecl/sdo/SDO_DAS_Setting.cpp:1.17 pecl/sdo/SDO_DAS_Setting.cpp:1.18 --- pecl/sdo/SDO_DAS_Setting.cpp:1.17 Fri Oct 13 11:08:47 2006 +++ pecl/sdo/SDO_DAS_Setting.cpp Thu Dec 7 14:22:59 2006 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -static char rcs_id[] = "$Id: SDO_DAS_Setting.cpp,v 1.17 2006/10/13 11:08:47 cem Exp $"; +static char rcs_id[] = "$Id: SDO_DAS_Setting.cpp,v 1.18 2006/12/07 14:22:59 cem Exp $"; #ifdef PHP_WIN32 #include <iostream> @@ -189,6 +189,7 @@ RETVAL_STRING((char *)setting->getCStringValue(), 1); break; case Type::DataObjectType: + case Type::OpenDataObjectType: doh_value = setting->getDataObjectValue(); if (!doh_value) { /* An old value may legitimately be null */ http://cvs.php.net/viewvc.cgi/pecl/sdo/SDO_DataObject.cpp?r1=1.25&r2=1.26&diff_format=u Index: pecl/sdo/SDO_DataObject.cpp diff -u pecl/sdo/SDO_DataObject.cpp:1.25 pecl/sdo/SDO_DataObject.cpp:1.26 --- pecl/sdo/SDO_DataObject.cpp:1.25 Fri Nov 24 10:44:04 2006 +++ pecl/sdo/SDO_DataObject.cpp Thu Dec 7 14:22:59 2006 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -static char rcs_id[] = "$Id: SDO_DataObject.cpp,v 1.25 2006/11/24 10:44:04 cem Exp $"; +static char rcs_id[] = "$Id: SDO_DataObject.cpp,v 1.26 2006/12/07 14:22:59 cem Exp $"; #ifdef PHP_WIN32 #include <iostream> @@ -281,6 +281,7 @@ return_value = (dop->getLength(xpath) > 0); break; case Type::DataObjectType: + case Type::OpenDataObjectType: /* since the property is set, the data object cannot be 'empty' */ break; case Type::ChangeSummaryType: @@ -441,6 +442,7 @@ RETVAL_STRING((char *)dop->getCString(xpath), 1); break; case Type::DataObjectType: + case Type::OpenDataObjectType: doh_value = dop->getDataObject(xpath); if (!doh_value) { class_name = get_active_class_name(&space TSRMLS_CC); @@ -657,6 +659,7 @@ dop->setCString(xpath, Z_STRVAL(temp_zval)); break; case Type::DataObjectType: + case Type::OpenDataObjectType: if (Z_TYPE_P(z_propertyValue) != IS_OBJECT) { class_name = get_active_class_name(&space TSRMLS_CC); sdo_throw_exception_ex (sdo_unsupportedoperationexception_class_entry, 0,0 TSRMLS_CC, http://cvs.php.net/viewvc.cgi/pecl/sdo/SDO_List.cpp?r1=1.19&r2=1.20&diff_format=u Index: pecl/sdo/SDO_List.cpp diff -u pecl/sdo/SDO_List.cpp:1.19 pecl/sdo/SDO_List.cpp:1.20 --- pecl/sdo/SDO_List.cpp:1.19 Fri Oct 13 11:08:47 2006 +++ pecl/sdo/SDO_List.cpp Thu Dec 7 14:22:59 2006 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -static char rcs_id[] = "$Id: SDO_List.cpp,v 1.19 2006/10/13 11:08:47 cem Exp $"; +static char rcs_id[] = "$Id: SDO_List.cpp,v 1.20 2006/12/07 14:22:59 cem Exp $"; #ifdef PHP_WIN32 #include <iostream> @@ -262,6 +262,7 @@ RETVAL_STRING((char *)dol.getCString(index), 1); break; case Type::DataObjectType: + case Type::OpenDataObjectType: doh_value = dol[index]; /*find PHP object from C++ object */ if (!doh_value) { @@ -509,6 +510,7 @@ dol.setCString(index, Z_STRVAL(temp_zval)); break; case Type::DataObjectType: + case Type::OpenDataObjectType: convert_to_object(&temp_zval); if (!instanceof_function(Z_OBJCE(temp_zval), sdo_dataobjectimpl_class_entry TSRMLS_CC)) { zend_throw_exception_ex(sdo_unsupportedoperationexception_class_entry, 0 TSRMLS_CC, @@ -595,6 +597,7 @@ return_value = (dol.getLength(index) > 0); break; case Type::DataObjectType: + case Type::OpenDataObjectType: return_value = (!(dol[index])); break; case Type::ChangeSummaryType: http://cvs.php.net/viewvc.cgi/pecl/sdo/SDO_Model_Property.cpp?r1=1.7&r2=1.8&diff_format=u Index: pecl/sdo/SDO_Model_Property.cpp diff -u pecl/sdo/SDO_Model_Property.cpp:1.7 pecl/sdo/SDO_Model_Property.cpp:1.8 --- pecl/sdo/SDO_Model_Property.cpp:1.7 Fri Oct 13 11:08:47 2006 +++ pecl/sdo/SDO_Model_Property.cpp Thu Dec 7 14:22:59 2006 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -static char rcs_id[] = "$Id: SDO_Model_Property.cpp,v 1.7 2006/10/13 11:08:47 cem Exp $"; +static char rcs_id[] = "$Id: SDO_Model_Property.cpp,v 1.8 2006/12/07 14:22:59 cem Exp $"; #ifdef PHP_WIN32 #include <iostream> @@ -212,6 +212,7 @@ /* RETVAL_STRING((char *)property.getCStringDefault(), 1); */ break; case Type::DataObjectType: + case Type::OpenDataObjectType: /* A data object type cannot have a default */ RETVAL_NULL(); break; http://cvs.php.net/viewvc.cgi/pecl/sdo/SDO_Sequence.cpp?r1=1.17&r2=1.18&diff_format=u Index: pecl/sdo/SDO_Sequence.cpp diff -u pecl/sdo/SDO_Sequence.cpp:1.17 pecl/sdo/SDO_Sequence.cpp:1.18 --- pecl/sdo/SDO_Sequence.cpp:1.17 Fri Oct 13 11:08:47 2006 +++ pecl/sdo/SDO_Sequence.cpp Thu Dec 7 14:22:59 2006 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -static char rcs_id[] = "$Id: SDO_Sequence.cpp,v 1.17 2006/10/13 11:08:47 cem Exp $"; +static char rcs_id[] = "$Id: SDO_Sequence.cpp,v 1.18 2006/12/07 14:22:59 cem Exp $"; #ifdef PHP_WIN32 #include <iostream> @@ -111,6 +111,7 @@ return_value = (seq.getLength(sequence_index) > 0); break; case Type::DataObjectType: + case Type::OpenDataObjectType: return_value = (!seq.getDataObjectValue(sequence_index)); break; case Type::ChangeSummaryType: @@ -210,6 +211,7 @@ RETVAL_STRING((char *)seq.getCStringValue(sequence_index), 1); break; case Type::DataObjectType: + case Type::OpenDataObjectType: doh_value = seq.getDataObjectValue(sequence_index); if (!doh_value) { class_name = get_active_class_name(&space TSRMLS_CC); @@ -393,6 +395,7 @@ seq.setCStringValue(sequence_index, Z_STRVAL(temp_zval)); break; case Type::DataObjectType: + case Type::OpenDataObjectType: convert_to_object(&temp_zval); if (!instanceof_function(Z_OBJCE(temp_zval), sdo_dataobjectimpl_class_entry TSRMLS_CC)) { zend_throw_exception_ex(sdo_unsupportedoperationexception_class_entry, 0 TSRMLS_CC, http://cvs.php.net/viewvc.cgi/pecl/sdo/php_sdo_int.h?r1=1.20&r2=1.21&diff_format=u Index: pecl/sdo/php_sdo_int.h diff -u pecl/sdo/php_sdo_int.h:1.20 pecl/sdo/php_sdo_int.h:1.21 --- pecl/sdo/php_sdo_int.h:1.20 Fri Nov 24 10:44:04 2006 +++ pecl/sdo/php_sdo_int.h Thu Dec 7 14:22:59 2006 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_sdo_int.h,v 1.20 2006/11/24 10:44:04 cem Exp $ */ +/* $Id: php_sdo_int.h,v 1.21 2006/12/07 14:22:59 cem Exp $ */ #ifndef PHP_SDO_INT_H #define PHP_SDO_INT_H @@ -35,7 +35,7 @@ using namespace commonj::sdo; using std::ostringstream; -#define SDO_VERSION "1.1.0" +#define SDO_VERSION "1.1.1" #define SDO_NAMESPACE_URI "namespaceURI" #define SDO_TYPE_NAME "typeName"