summaryrefslogtreecommitdiff
path: root/ext/pgsql
diff options
context:
space:
mode:
authorDavid Hill <ddhill@php.net>2003-03-06 23:07:28 +0000
committerDavid Hill <ddhill@php.net>2003-03-06 23:07:28 +0000
commit5c90216d2ce8d8cc8d1453eee1a1e5099bd46631 (patch)
tree588ccc95099ca43c0bf46f8078fcb77fefa2f765 /ext/pgsql
parent0338111950edcec427cfa2f1610dd6efcd43a14c (diff)
downloadphp-git-5c90216d2ce8d8cc8d1453eee1a1e5099bd46631.tar.gz
64-bit correction to variables passed to zend_parse_parameters
@64-bit correction to variables passed to zend_parse_parameters (Dave)
Diffstat (limited to 'ext/pgsql')
-rw-r--r--ext/pgsql/pgsql.c25
1 files changed, 15 insertions, 10 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c
index dd01001a0f..d05a74962a 100644
--- a/ext/pgsql/pgsql.c
+++ b/ext/pgsql/pgsql.c
@@ -1439,7 +1439,7 @@ PHP_FUNCTION(pg_fetch_all)
PHP_FUNCTION(pg_result_seek)
{
zval *result;
- int row;
+ long row;
pgsql_result_handle *pg_result;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl", &result, &row) == FAILURE) {
@@ -2190,7 +2190,7 @@ PHP_FUNCTION(pg_lo_export)
PHP_FUNCTION(pg_lo_seek)
{
zval *pgsql_id = NULL;
- int offset = 0, whence = SEEK_CUR;
+ long offset = 0, whence = SEEK_CUR;
pgLofp *pgsql;
int argc = ZEND_NUM_ARGS();
@@ -2599,7 +2599,8 @@ PHP_FUNCTION(pg_copy_from)
PHP_FUNCTION(pg_escape_string)
{
char *from = NULL, *to = NULL;
- size_t from_len, to_len;
+ size_t to_len;
+ long from_len;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s",
&from, &from_len) == FAILURE) {
return;
@@ -2616,7 +2617,8 @@ PHP_FUNCTION(pg_escape_string)
PHP_FUNCTION(pg_escape_bytea)
{
char *from = NULL, *to = NULL;
- size_t from_len, to_len;
+ size_t to_len;
+ long from_len;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s",
&from, &from_len) == FAILURE) {
return;
@@ -2737,7 +2739,8 @@ static unsigned char * php_pgsql_unescape_bytea(unsigned char *strtext, size_t *
PHP_FUNCTION(pg_unescape_bytea)
{
char *from = NULL, *to = NULL;
- size_t from_len, to_len;
+ size_t to_len;
+ long from_len;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s",
&from, &from_len) == FAILURE) {
return;
@@ -3905,7 +3908,7 @@ PHP_FUNCTION(pg_convert)
{
zval *pgsql_link, *values;
char *table_name;
- size_t table_name_len;
+ int table_name_len;
ulong option = 0;
PGconn *pg_link;
int id = -1;
@@ -4064,7 +4067,7 @@ PHP_FUNCTION(pg_insert)
{
zval *pgsql_link, *values;
char *table, *sql = NULL;
- ulong table_len;
+ int table_len;
ulong option = PGSQL_DML_EXEC;
PGconn *pg_link;
int id = -1, argc = ZEND_NUM_ARGS();
@@ -4213,7 +4216,7 @@ PHP_FUNCTION(pg_update)
{
zval *pgsql_link, *values, *ids;
char *table, *sql = NULL;
- ulong table_len;
+ int table_len;
ulong option = PGSQL_DML_EXEC;
PGconn *pg_link;
int id = -1, argc = ZEND_NUM_ARGS();
@@ -4302,7 +4305,8 @@ PHP_FUNCTION(pg_delete)
{
zval *pgsql_link, *ids;
char *table, *sql = NULL;
- ulong table_len, option = PGSQL_DML_EXEC;
+ int table_len;
+ ulong option = PGSQL_DML_EXEC;
PGconn *pg_link;
int id = -1, argc = ZEND_NUM_ARGS();
@@ -4439,7 +4443,8 @@ PHP_FUNCTION(pg_select)
{
zval *pgsql_link, *ids;
char *table, *sql = NULL;
- ulong table_len, option = PGSQL_DML_EXEC;
+ int table_len;
+ ulong option = PGSQL_DML_EXEC;
PGconn *pg_link;
int id = -1, argc = ZEND_NUM_ARGS();