projects
/
m6w6
/
ext-pq
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Fix incompatible pointer types
[m6w6/ext-pq]
/
src
/
php_pqres.c
diff --git
a/src/php_pqres.c
b/src/php_pqres.c
index e9de4631dc46ccf8d7c65aea2e38d9b90f5f25a8..c8262ac7e428b1b1dbb350572bd733e1e07942c7 100644
(file)
--- a/
src/php_pqres.c
+++ b/
src/php_pqres.c
@@
-398,24
+398,24
@@
static zend_object_iterator_funcs php_pqres_iterator_funcs = {
#endif
};
#endif
};
-static inline ZEND_RESULT_CODE php_pqres_count_elements_ex(zend_object *object, long *count)
+static inline ZEND_RESULT_CODE php_pqres_count_elements_ex(zend_object *object,
zend_
long *count)
{
php_pqres_object_t *obj = PHP_PQ_OBJ(NULL, object);
if (!obj->intern) {
return FAILURE;
} else {
{
php_pqres_object_t *obj = PHP_PQ_OBJ(NULL, object);
if (!obj->intern) {
return FAILURE;
} else {
- *count = (long) PQntuples(obj->intern->res);
+ *count = (
zend_
long) PQntuples(obj->intern->res);
return SUCCESS;
}
}
#if PHP_VERSION_ID >= 80000
return SUCCESS;
}
}
#if PHP_VERSION_ID >= 80000
-static ZEND_RESULT_CODE php_pqres_count_elements(zend_object *object, long *count)
+static ZEND_RESULT_CODE php_pqres_count_elements(zend_object *object,
zend_
long *count)
{
return php_pqres_count_elements_ex(object, count);
}
#else
{
return php_pqres_count_elements_ex(object, count);
}
#else
-static ZEND_RESULT_CODE php_pqres_count_elements(zval *object, long *count)
+static ZEND_RESULT_CODE php_pqres_count_elements(zval *object,
zend_
long *count)
{
return php_pqres_count_elements_ex(Z_OBJ_P(object), count);
}
{
return php_pqres_count_elements_ex(Z_OBJ_P(object), count);
}