From 0f1209ab3d1f9ec0f1ea7295fa987ba4dea270c8 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 21 Feb 2006 20:12:43 +0000 Subject: 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) --- ext/mysql/php_mysql.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ext/mysql/php_mysql.c') 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."); } -- cgit v1.2.1