sas Tue Oct 1 15:19:11 2002 EDT Modified files: /php4/ext/session mod_files.c Log: Disable pread/pwrite for now until we can clarify why it should be impossible to write a check for a broken OS feature. Index: php4/ext/session/mod_files.c diff -u php4/ext/session/mod_files.c:1.81 php4/ext/session/mod_files.c:1.82 --- php4/ext/session/mod_files.c:1.81 Mon Sep 30 06:18:57 2002 +++ php4/ext/session/mod_files.c Tue Oct 1 15:19:10 2002 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: mod_files.c,v 1.81 2002/09/30 10:18:57 wez Exp $ */ +/* $Id: mod_files.c,v 1.82 2002/10/01 19:19:10 sas Exp $ */ #include "php.h" @@ -271,7 +271,7 @@ data->st_size = *vallen = sbuf.st_size; *val = emalloc(sbuf.st_size); -#ifdef HAVE_PREAD +#if defined(HAVE_WORKING_PREAD_TEST) && defined(HAVE_PREAD) n = pread(data->fd, *val, sbuf.st_size, 0); #else lseek(data->fd, 0, SEEK_SET); @@ -307,7 +307,7 @@ if (vallen < (int)data->st_size) ftruncate(data->fd, 0); -#ifdef HAVE_PWRITE +#if defined(HAVE_WORKING_PWRITE_TEST) && defined(HAVE_PWRITE) n = pwrite(data->fd, val, vallen, 0); #else lseek(data->fd, 0, SEEK_SET);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php