From: foobar Date: Fri, 5 Jul 2002 19:34:42 +0000 (+0000) Subject: Fix bug: #16707 X-Git-Tag: INITIAL_IMPORT_SOURCEFORGE~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f56450ff14fcc6f0183f25d606d89f0905f2f417;p=php Fix bug: #16707 --- 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 {