From f56450ff14fcc6f0183f25d606d89f0905f2f417 Mon Sep 17 00:00:00 2001 From: foobar Date: Fri, 5 Jul 2002 19:34:42 +0000 Subject: [PATCH] Fix bug: #16707 --- ext/dio/dio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/dio/dio.c b/ext/dio/dio.c index 60c6ab5a47..ef872f3403 100644 --- a/ext/dio/dio.c +++ b/ext/dio/dio.c @@ -346,10 +346,10 @@ PHP_FUNCTION(dio_fcntl) lk.l_whence = 0; } else { - lk.l_whence = SEEK_SET; + lk.l_whence = Z_LVAL_PP(element); } - if (zend_hash_find(fh, "type", 6, (void **) &element) == FAILURE) { + if (zend_hash_find(fh, "type", 4, (void **) &element) == FAILURE) { lk.l_type = 0; } else { -- 2.40.0