summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2002-07-07 00:54:38 +0000
committerfoobar <sniper@php.net>2002-07-07 00:54:38 +0000
commitd85eeba77c6d82e227d7ec39b772f992640c1ecd (patch)
tree6367683ba24b291a22b2ebdec46d193ec0fa2cc8
parentb989395478c2cd326d8f562fd60a3ef681d4c1ea (diff)
downloadphp-git-d85eeba77c6d82e227d7ec39b772f992640c1ecd.tar.gz
Fix the fix properly.
-rw-r--r--ext/dio/dio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/dio/dio.c b/ext/dio/dio.c
index ef872f3403..fe8d84e8af 100644
--- a/ext/dio/dio.c
+++ b/ext/dio/dio.c
@@ -328,28 +328,28 @@ PHP_FUNCTION(dio_fcntl)
}
if (Z_TYPE_P(arg) == IS_ARRAY) {
fh = HASH_OF(arg);
- if (zend_hash_find(fh, "start", 5, (void **) &element) == FAILURE) {
+ if (zend_hash_find(fh, "start", sizeof("start"), (void **) &element) == FAILURE) {
lk.l_start = 0;
}
else {
lk.l_start = Z_LVAL_PP(element);
}
- if (zend_hash_find(fh, "length", 6, (void **) &element) == FAILURE) {
+ if (zend_hash_find(fh, "length", sizeof("length"), (void **) &element) == FAILURE) {
lk.l_len = 0;
}
else {
lk.l_len = Z_LVAL_PP(element);
}
- if (zend_hash_find(fh, "whence", 6, (void **) &element) == FAILURE) {
+ if (zend_hash_find(fh, "whence", sizeof("whence"), (void **) &element) == FAILURE) {
lk.l_whence = 0;
}
else {
lk.l_whence = Z_LVAL_PP(element);
}
- if (zend_hash_find(fh, "type", 4, (void **) &element) == FAILURE) {
+ if (zend_hash_find(fh, "type", sizeof("type"), (void **) &element) == FAILURE) {
lk.l_type = 0;
}
else {