mirror of
https://github.com/danog/ext-pq.git
synced 2025-01-22 13:51:20 +01:00
fix #27
A left over int/size_t conversion of a string argument in pq\Connection::escapeBytea() was discovered.
This commit is contained in:
parent
34c0954363
commit
868303fdfb
@ -1571,7 +1571,7 @@ ZEND_BEGIN_ARG_INFO_EX(ai_pqconn_escape_bytea, 0, 0, 1)
|
||||
ZEND_END_ARG_INFO();
|
||||
static PHP_METHOD(pqconn, escapeBytea) {
|
||||
char *str;
|
||||
int len;
|
||||
size_t len;
|
||||
|
||||
if (SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS(), "s", &str, &len)) {
|
||||
php_pqconn_object_t *obj = PHP_PQ_OBJ(getThis(), NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user