Re: Results

[email protected] (Shane Caraveo) Sun, 04 Oct 1998 15:36:26 -0400
Newsgroups php.beta
Message-ID <[email protected]>
Egon Schmid wrote:
> 
> Can this also be fixed in 3.0.5 (I think this was introduced this
> morning):
> 
> functions/mysql.c: In function `php3_mysql_result':
> functions/mysql.c:1222: warning: assignment from incompatible pointer type
> functions/mysql.c: In function `php3_mysql_fetch_row':
> functions/mysql.c:1367: warning: assignment from incompatible pointer type
> functions/mysql.c: In function `php3_mysql_fetch_hash':
> functions/mysql.c:1419: warning: assignment from incompatible pointer type
> functions/mysql.c: In function `php3_mysql_fetch_lengths':
> functions/mysql.c:1515: warning: assignment from incompatible pointer type
> 
> -Egon

Ok, first, msvc6 doesnt give me any warnings on this stuff irregardless,
so, try this in those functions that give you warngings:

#if MYSQL_VERSION_ID > 32199 
	unsigned long *sql_row_lengths;
#else
	unsigned int *sql_row_lengths;
#endif

(or it might just be a long *)

Shane