diff options
| author | Andrey Hristov <andrey@php.net> | 2011-03-18 14:56:20 +0000 |
|---|---|---|
| committer | Andrey Hristov <andrey@php.net> | 2011-03-18 14:56:20 +0000 |
| commit | f06443593eb832dd1c796c787f079f9aeb3fe691 (patch) | |
| tree | 82099e891e7d610625e3435a72cf15be15e09fa3 /ext/mysqlnd/mysqlnd_ps.c | |
| parent | c90df5850b6540e5b14e7db81bbe64880b5c98a6 (diff) | |
| download | php-git-f06443593eb832dd1c796c787f079f9aeb3fe691.tar.gz | |
add a proxy for sppintf and vspprintf
Diffstat (limited to 'ext/mysqlnd/mysqlnd_ps.c')
| -rw-r--r-- | ext/mysqlnd/mysqlnd_ps.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/mysqlnd/mysqlnd_ps.c b/ext/mysqlnd/mysqlnd_ps.c index 3a6b6e5ac1..8cd1d0c1f1 100644 --- a/ext/mysqlnd/mysqlnd_ps.c +++ b/ext/mysqlnd/mysqlnd_ps.c @@ -660,11 +660,11 @@ MYSQLND_METHOD(mysqlnd_stmt, execute)(MYSQLND_STMT * const s TSRMLS_DC) } if (not_bound) { char * msg; - spprintf(&msg, 0, "No data supplied for %u parameter%s in prepared statement", - not_bound, not_bound>1 ?"s":""); + mnd_sprintf(&msg, 0, "No data supplied for %u parameter%s in prepared statement", + not_bound, not_bound>1 ?"s":""); SET_STMT_ERROR(stmt, CR_PARAMS_NOT_BOUND, UNKNOWN_SQLSTATE, msg); if (msg) { - efree(msg); /* allocated by spprintf */ + mnd_sprintf_free(msg); } DBG_INF("FAIL"); DBG_RETURN(FAIL); |
