summaryrefslogtreecommitdiff
path: root/ext/mysql/php_mysql.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2006-02-21 20:12:43 +0000
committerDmitry Stogov <dmitry@php.net>2006-02-21 20:12:43 +0000
commit0f1209ab3d1f9ec0f1ea7295fa987ba4dea270c8 (patch)
treef599e4188e236ccf04fa0f74518e6c10bbcb5d14 /ext/mysql/php_mysql.c
parentfca6eecbe944effb6374e63271a008947b266e64 (diff)
downloadphp-git-0f1209ab3d1f9ec0f1ea7295fa987ba4dea270c8.tar.gz
Portable unicode string API:
- use the same type (int) for zval.value.usr.len and zval.value.str.len - use union "zstr" as char*/UChar* mixture instead of void* - Z_UNISTR() and Z_UNILEN() no longer check for Z_TYPE() - nuke int32_t from ZE (not finisned)
Diffstat (limited to 'ext/mysql/php_mysql.c')
-rw-r--r--ext/mysql/php_mysql.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c
index 66b0eb92d5..b9288c6bf6 100644
--- a/ext/mysql/php_mysql.c
+++ b/ext/mysql/php_mysql.c
@@ -1380,8 +1380,9 @@ PHP_FUNCTION(mysql_db_query)
WRONG_PARAM_COUNT;
break;
}
-
- if (MySG(trace_mode) || !strcasecmp(get_active_function_name(TSRMLS_C), "mysql")) {
+
+ /* FIXME: Unicode support??? */
+ if (MySG(trace_mode) || !strcasecmp(get_active_function_name(TSRMLS_C).s, "mysql")) {
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "This function is deprecated; use mysql_query() instead.");
}