summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli_api.c
diff options
context:
space:
mode:
authorGeorg Richter <georg@php.net>2003-03-11 01:19:21 +0000
committerGeorg Richter <georg@php.net>2003-03-11 01:19:21 +0000
commit7cf921a56f3e85af996a9d13b99d808c277a693e (patch)
tree1a514764d14e27983a37949be030ccc60fa50f53 /ext/mysqli/mysqli_api.c
parentfebb535db08d96ff47c74b679a14afc6bd6b7906 (diff)
downloadphp-git-7cf921a56f3e85af996a9d13b99d808c277a693e.tar.gz
profiler:
moved profiler stuff from php_mysql.h to separate include file added port communication added xml support for file and port output
Diffstat (limited to 'ext/mysqli/mysqli_api.c')
-rw-r--r--ext/mysqli/mysqli_api.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/ext/mysqli/mysqli_api.c b/ext/mysqli/mysqli_api.c
index d03d43eae4..e0e4fc901d 100644
--- a/ext/mysqli/mysqli_api.c
+++ b/ext/mysqli/mysqli_api.c
@@ -48,7 +48,7 @@ PHP_FUNCTION(mysqli_affected_rows)
MYSQLI_PROFILER_COMMAND_START(prcommand, prmysql);
rc = mysql_affected_rows(mysql);
- MYSQLI_PROFILER_COMMAND_RETURNLONG(prcommand, rc);
+ MYSQLI_PROFILER_COMMAND_RETURNLONG(prcommand, (long)rc);
MYSQLI_RETURN_LONG_LONG(rc);
}
/* }}} */
@@ -491,14 +491,17 @@ PHP_FUNCTION(mysqli_data_seek)
*/
PHP_FUNCTION(mysqli_debug)
{
- char *debug;
- int debug_len;
+ char *debug;
+ int debug_len;
+ PR_COMMAND *prcommand;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &debug, &debug_len) == FAILURE) {
return;
}
+ MYSQLI_PROFILER_COMMAND_START(prcommand, prmain);
mysql_debug(debug);
+ MYSQLI_PROFILER_COMMAND_RETURNSTRING(prcommand, NULL);
RETURN_TRUE;
}
/* }}} */