cvs: pecl /sdo sdo.cpp
| From: | Caroline Maynard | Date: | Fri, 29 Sep 2006 13:02:21 +0000 |
| Subject: | cvs: pecl /sdo sdo.cpp | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-6432@lists.php.net to get a copy of this message | ||
cem Fri Sep 29 13:02:21 2006 UTC
Modified files:
/pecl/sdo sdo.cpp
Log:
Fix for problem with inherited static method which occurs only in some environments
http://cvs.php.net/viewvc.cgi/pecl/sdo/sdo.cpp?r1=1.13&r2=1.14&diff_format=u
Index: pecl/sdo/sdo.cpp
diff -u pecl/sdo/sdo.cpp:1.13 pecl/sdo/sdo.cpp:1.14
--- pecl/sdo/sdo.cpp:1.13 Thu Sep 28 19:24:57 2006
+++ pecl/sdo/sdo.cpp Fri Sep 29 13:02:21 2006
@@ -20,7 +20,7 @@
*/
-static char rcs_id[] = "$Id: sdo.cpp,v 1.13 2006/09/28 19:24:57 cem Exp $";
+static char rcs_id[] = "$Id: sdo.cpp,v 1.14 2006/09/29 13:02:21 cem Exp $";
#ifdef PHP_WIN32
#include <iostream>
@@ -330,7 +330,12 @@
function_entry sdo_model_reflectiondataobject_methods[] = {
ZEND_ME(SDO_Model_ReflectionDataObject, __construct, arginfo_sdo_dataobject, ZEND_ACC_PUBLIC)
ZEND_ME(SDO_Model_ReflectionDataObject, __toString, 0, ZEND_ACC_PUBLIC)
- ZEND_ME(SDO_Model_ReflectionDataObject, export, arginfo_sdo_model_reflectiondataobject_export,
ZEND_ACC_PUBLIC | ZEND_ACC_STATIC)
+ /* ZEND_ME(SDO_Model_ReflectionDataObject, export,
arginfo_sdo_model_reflectiondataobject_export, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC) */
+ /* The above definition fails on some (but not all) platforms.
+ * The export method (and hence the entire class) gets defined as abstract.
+ * The variant below works round this.
+ */
+ ZEND_FENTRY(export, ZEND_FN(SDO_Model_ReflectionDataObject_export),
arginfo_sdo_model_reflectiondataobject_export, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC)
ZEND_ME(SDO_Model_ReflectionDataObject, getType, 0, ZEND_ACC_PUBLIC)
ZEND_ME(SDO_Model_ReflectionDataObject, getInstanceProperties, 0, ZEND_ACC_PUBLIC)
ZEND_ME(SDO_Model_ReflectionDataObject, getContainmentProperty, 0, ZEND_ACC_PUBLIC)
@@ -377,6 +382,7 @@
{NULL, NULL, NULL}
};
#endif
+/* }}} */
/* {{{ sdo_module_entry
*/
@@ -418,7 +424,7 @@
if (SdoRuntime::getMajor() != 0 ||
SdoRuntime::getMinor() != 9 ||
SdoRuntime::getFix() < 4) {
- php_error (E_ERROR, "SDO: incompatible versions of SDO extension and Tuscany SDO C++
library. Expected 00:09:0004, found %s",
+ php_error (E_WARNING, "SDO: incompatible versions of SDO extension and Tuscany SDO C++
library. Expected 00:09:0004, found %s",
SdoRuntime::getVersion());
}
@@ -428,7 +434,7 @@
* TODO remove this code when ZEND_MOD_CONFLICTS is better supported.
*/
if (zend_get_module_version("sdo_das_xml")) {
- zend_error(E_CORE_WARNING, "Cannot load module sdo because conflicting module sdo_das_xml is
already loaded");
+ php_error(E_ERROR, "Cannot load module sdo because obsolete conflicting module sdo_das_xml
is already loaded. Remove sdo_das_xml from you php.ini.");
return FAILURE;
}