CVS update: php31/ext/msql
| From: | zeev | Date: | Fri, 11 Sep 1998 00:22:36 +0000 |
| Subject: | CVS update: php31/ext/msql | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-953@lists.php.net to get a copy of this message | ||
Date: Thursday September 10, 1998 @ 20:22
Author: zeev
Update of /repository/php31/ext/msql
In directory asf:/u2/tmp/cvs-serv334/ext/msql
Modified Files:
msql.c
Log Message:
pval naming patch
Index: php31/ext/msql/msql.c
diff -c php31/ext/msql/msql.c:2.3 php31/ext/msql/msql.c:2.4
*** php31/ext/msql/msql.c:2.3 Sun Sep 6 17:34:26 1998
--- php31/ext/msql/msql.c Thu Sep 10 20:22:36 1998
***************
*** 27,33 ****
+----------------------------------------------------------------------+
*/
! /* $Id: msql.c,v 2.3 1998/09/06 21:34:26 zeev Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif
--- 27,33 ----
+----------------------------------------------------------------------+
*/
! /* $Id: msql.c,v 2.4 1998/09/11 00:22:36 zeev Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif
***************
*** 1043,1049 ****
int type;
int num_fields;
int i;
! pval *yystype_ptr;
MSQL_TLS_VARS;
if (ARG_COUNT(ht)!=1 || getParameters(ht, 1, &result)==FAILURE) {
--- 1043,1049 ----
int type;
int num_fields;
int i;
! pval *pval_ptr;
MSQL_TLS_VARS;
if (ARG_COUNT(ht)!=1 || getParameters(ht, 1, &result)==FAILURE) {
***************
*** 1071,1084 ****
for (msql_field=msqlFetchField(msql_result),i=0; msql_field;
msql_field=msqlFetchField(msql_result),i++) {
if (msql_row[i]) {
if (php3_ini_master.magic_quotes_runtime) {
! add_get_index_string(return_value, i, _php3_addslashes(msql_row[i],0,NULL,0), (void **)
&yystype_ptr, 0);
} else {
! add_get_index_string(return_value, i, msql_row[i], (void **) &yystype_ptr, 1);
}
} else {
! add_get_index_stringl(return_value, i, empty_string, 0, (void **) &yystype_ptr, 1);
}
! _php3_hash_pointer_update(return_value->value.ht, msql_field->name,
strlen(msql_field->name)+1, yystype_ptr);
}
}
--- 1071,1084 ----
for (msql_field=msqlFetchField(msql_result),i=0; msql_field;
msql_field=msqlFetchField(msql_result),i++) {
if (msql_row[i]) {
if (php3_ini_master.magic_quotes_runtime) {
! add_get_index_string(return_value, i, _php3_addslashes(msql_row[i],0,NULL,0), (void **)
&pval_ptr, 0);
} else {
! add_get_index_string(return_value, i, msql_row[i], (void **) &pval_ptr, 1);
}
} else {
! add_get_index_stringl(return_value, i, empty_string, 0, (void **) &pval_ptr, 1);
}
! _php3_hash_pointer_update(return_value->value.ht, msql_field->name,
strlen(msql_field->name)+1, pval_ptr);
}
}
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net