cvs: pecl /ingres CHANGELOG ii.c ii.h

From: Date: Fri, 11 Apr 2008 17:50:14 +0000
Subject: cvs: pecl /ingres CHANGELOG ii.c ii.h
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-10355@lists.php.net to get a copy of this message
grantc Fri Apr 11 17:50:14 2008 UTC Modified files: /pecl/ingres ii.c ii.h CHANGELOG Log: - Replaced "long long int" with "__int64" to allow the extension to build with VC6 - Use PZVAL_ISREF instead of pointing at (*val)->is_ref http://cvs.php.net/viewvc.cgi/pecl/ingres/ii.c?r1=1.107&r2=1.108&diff_format=u Index: pecl/ingres/ii.c diff -u pecl/ingres/ii.c:1.107 pecl/ingres/ii.c:1.108 --- pecl/ingres/ii.c:1.107 Tue Apr 8 05:15:17 2008 +++ pecl/ingres/ii.c Fri Apr 11 17:50:14 2008 @@ -21,7 +21,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: ii.c,v 1.107 2008/04/08 05:15:17 grantc Exp $ */ +/* $Id: ii.c,v 1.108 2008/04/11 17:50:14 grantc Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -825,7 +825,7 @@ php_info_print_table_start(); php_info_print_table_header(2, "Ingres Support", "enabled"); php_info_print_table_row(2, "Ingres Extension Version", II_VERSION); - php_info_print_table_row(2, "Revision", "$Revision: 1.107 $"); + php_info_print_table_row(2, "Revision", "$Revision: 1.108 $"); sprintf(buf, "%ld", IIAPI_VERSION ); php_info_print_table_row(2, "Ingres OpenAPI Version", buf); sprintf(buf, "%ld", IIG(num_persistent)); @@ -2917,7 +2917,7 @@ int i, j, k, l; double value_double = 0; long value_long = 0; - long long int value_long_long = 0; + ingres_int64 value_long_long = 0; char value_long_long_str[21]; int value_long_long_str_len=0; char *value_char_p; @@ -3165,10 +3165,10 @@ /* PHP does not support BIGINT/INTEGER8 so we have to return */ /* values greater/smaller than the max/min size of a LONG value as a string */ /* Anyone wanting to manipulate this value can use PECL big_int */ - if ((*((long long int *) columnData[k].dv_value) > LONG_MAX ) || - (*((long long int *) columnData[k].dv_value) < LONG_MIN )) + if ((*((ingres_int64 *) columnData[k].dv_value) > LONG_MAX ) || + (*((ingres_int64 *) columnData[k].dv_value) < LONG_MIN )) { - value_long_long = *((long long int *) columnData[k].dv_value); + value_long_long = *((ingres_int64 *) columnData[k].dv_value); sprintf(value_long_long_str, "%lld\0", value_long_long); value_long_long_str_len = strlen(value_long_long_str); } @@ -4668,12 +4668,12 @@ efree(descriptorInfo); return II_FAIL; } - if ((ii_result->procname) && ((*val)->is_ref )) { + if ((ii_result->procname) && (PZVAL_IS_REF(val))) { php_error_docref(NULL TSRMLS_CC, E_ERROR,"Byref parameters can only be used against procedures"); return II_FAIL; } - if ((ii_result->procname != NULL) && ((*val)->is_ref)) { + if ((ii_result->procname != NULL) && (PZVAL_IS_REF(val))) { columnType = IIAPI_COL_PROCBYREFPARM; } http://cvs.php.net/viewvc.cgi/pecl/ingres/ii.h?r1=1.33&r2=1.34&diff_format=u Index: pecl/ingres/ii.h diff -u pecl/ingres/ii.h:1.33 pecl/ingres/ii.h:1.34 --- pecl/ingres/ii.h:1.33 Mon Sep 17 15:30:15 2007 +++ pecl/ingres/ii.h Fri Apr 11 17:50:14 2008 @@ -21,7 +21,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: ii.h,v 1.33 2007/09/17 15:30:15 grantc Exp $ */ +/* $Id: ii.h,v 1.34 2008/04/11 17:50:14 grantc Exp $ */ #ifndef II_H #define II_H @@ -63,6 +63,14 @@ int link_id; /* the link to which this result belongs */ } II_RESULT; +/* The following was added to allow the extension to build on Windows using */ +/* Visual C++ 6.0 */ +#ifdef WIN32 + typedef __int64 ingres_int64; +#else + typedef long long int ingres_int64; +#endif + #define II_FAIL 0 #define II_OK 1 #define II_NO_DATA 2 http://cvs.php.net/viewvc.cgi/pecl/ingres/CHANGELOG?r1=1.43&r2=1.44&diff_format=u Index: pecl/ingres/CHANGELOG diff -u pecl/ingres/CHANGELOG:1.43 pecl/ingres/CHANGELOG:1.44 --- pecl/ingres/CHANGELOG:1.43 Tue Apr 8 08:32:30 2008 +++ pecl/ingres/CHANGELOG Fri Apr 11 17:50:14 2008 @@ -1,5 +1,7 @@ CVS - 2.0.1-dev -- Add the ability to generated php_ingres2.dll for windows +- Replaced "long long int" with "__int64" to allow the extension to build with VC6 +- Use PZVAL_ISREF instead of pointing at (*val)->is_ref +- Added --enable-ingres2 to generate php_ingres2.dll for Windows - Fixed regression with IIAPI_CP_LOGIN_LOCAL being used at the wrong API level - Revised PECL_INGRES_VERSION to take in to consideration --enable-ingres2 - Fixed LOB retrieval when used with scollable cursors Ingres 2006 release 3

« previous php.pecl.cvs (#10355) next »