X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=src%2Fphp_pqstm.c;h=1eb943bea1b4cac83db2d29c41c353f9fa28c5f0;hp=0f74b2b65ef7aaa238179663588abaedf640d0d1;hb=a015d26134e7d557fee53eb12a945c45de2ec890;hpb=df586b558795570822225a3a458bd91a1f7ab433 diff --git a/src/php_pqstm.c b/src/php_pqstm.c index 0f74b2b..1eb943b 100644 --- a/src/php_pqstm.c +++ b/src/php_pqstm.c @@ -448,7 +448,7 @@ static inline void php_pqstm_prepare_handler(INTERNAL_FUNCTION_PARAMETERS, zend_ obj->intern->allocated = 1; zend_hash_add(&obj->intern->conn->intern->statements, - obj->intern->name, strlen(obj->intern->name)+1, &obj, sizeof(obj), NULL); + obj->intern->name, strlen(obj->intern->name)+1, &obj->intern, sizeof(obj->intern), NULL); } } }