cvs: pecl /sdo sdo.cpp

From: Date: Fri, 29 Sep 2006 15:04:22 +0000
Subject: cvs: pecl /sdo sdo.cpp
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-6435@lists.php.net to get a copy of this message
cem Fri Sep 29 15:04:22 2006 UTC Modified files: /pecl/sdo sdo.cpp Log: Update the fix for inherited static methods to work with 5.2.x http://cvs.php.net/viewvc.cgi/pecl/sdo/sdo.cpp?r1=1.14&r2=1.15&diff_format=u Index: pecl/sdo/sdo.cpp diff -u pecl/sdo/sdo.cpp:1.14 pecl/sdo/sdo.cpp:1.15 --- pecl/sdo/sdo.cpp:1.14 Fri Sep 29 13:02:21 2006 +++ pecl/sdo/sdo.cpp Fri Sep 29 15:04:22 2006 @@ -20,7 +20,7 @@ */ -static char rcs_id[] = "$Id: sdo.cpp,v 1.14 2006/09/29 13:02:21 cem Exp $"; +static char rcs_id[] = "$Id: sdo.cpp,v 1.15 2006/09/29 15:04:22 cem Exp $"; #ifdef PHP_WIN32 #include <iostream> @@ -330,12 +330,17 @@ 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. + * For me, on Linux AMD_64 non-debug build, the export method (and + * hence the entire class) gets defined as abstract. + * The variants below works round this. */ +#if PHP_MAJOR_VERSION > 5 || (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION > 1) + ZEND_FENTRY(export, ZEND_MN(SDO_Model_ReflectionDataObject_export), arginfo_sdo_model_reflectiondataobject_export, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC) +#else ZEND_FENTRY(export, ZEND_FN(SDO_Model_ReflectionDataObject_export), arginfo_sdo_model_reflectiondataobject_export, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC) +#endif 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)

« previous php.pecl.cvs (#6435) next »