+#if PHP_VERSION_ID >= 80000
+# define php_pqtypes_object_write_dimension php_pqtypes_object_write_dimension_80
+#else
+# define php_pqtypes_object_write_dimension php_pqtypes_object_write_dimension_70
+#endif
+static void php_pqtypes_object_write_dimension_80(zend_object *object, zval *offset, zval *value)
+{
+ throw_exce(EX_RUNTIME, "pq\\Types object must not be modified");
+}
+static void php_pqtypes_object_write_dimension_70(zval *object, zval *offset, zval *value)