summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli_prop.c
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2008-01-28 18:25:50 +0000
committerAndrey Hristov <andrey@php.net>2008-01-28 18:25:50 +0000
commit7932ccba6d4e71bf50bba9797134a047d36e10e1 (patch)
tree703adc6e5e0fea41ffb536a1ac50def65fbdae19 /ext/mysqli/mysqli_prop.c
parenta7dabd575a1e852999ed9a64341e07737f48ec81 (diff)
downloadphp-git-7932ccba6d4e71bf50bba9797134a047d36e10e1.tar.gz
More optimizations - less MM calls
Clearly separated fetching (physical reading) from decoding phases (data interpretation). Threaded fetching added but disabled as needs more work for Windows. For Linux needs some touches to add pthreads if this is enabled, probably with a compile-time switch. The code reorganisation makes it easy to add also async API, similar to cURL's one.
Diffstat (limited to 'ext/mysqli/mysqli_prop.c')
-rw-r--r--ext/mysqli/mysqli_prop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqli/mysqli_prop.c b/ext/mysqli/mysqli_prop.c
index 62afad2ac1..1e06a694bf 100644
--- a/ext/mysqli/mysqli_prop.c
+++ b/ext/mysqli/mysqli_prop.c
@@ -211,7 +211,7 @@ static int result_type_read(mysqli_object *obj, zval **retval TSRMLS_DC)
if (!p) {
ZVAL_NULL(*retval);
} else {
- ZVAL_LONG(*retval, (p->data) ? MYSQLI_STORE_RESULT : MYSQLI_USE_RESULT);
+ ZVAL_LONG(*retval, mysqli_result_is_unbuffered(p) ? MYSQLI_USE_RESULT:MYSQLI_STORE_RESULT);
}
return SUCCESS;
}