]> granicus.if.org Git - php/commitdiff
Fix bug: #16707
authorfoobar <sniper@php.net>
Fri, 5 Jul 2002 19:34:42 +0000 (19:34 +0000)
committerfoobar <sniper@php.net>
Fri, 5 Jul 2002 19:34:42 +0000 (19:34 +0000)
ext/dio/dio.c

index 60c6ab5a47f3a84cbff21897405bed2cee11c4da..ef872f34033852f3aa8885a86fad4b9fa6fe4c57 100644 (file)
@@ -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 {