ID: 15983 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Assigned +Status: Feedback Bug Type: Session related Operating System: Debian/Linux mips platform PHP Version: 4.1.2 and 4.2.0 Assigned To: sascha New Comment:
If you want us to avoid using certain features of your platform, then you need to provide specific testcases. We will use these testcases to determine whether pread/pwrite work on a platform. Currently, we use this for pread (after echo test > conftest_in): #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> main() { char buf[3]; return !(pread(open("conftest_in", O_RDONLY), buf, 2, 0) == 2); And this for pwrite: #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> main() { return !(pwrite(open("conftest_in", O_WRONLY|O_CREAT, 0600), "hi", 2, 0) == 2); Previous Comments: ------------------------------------------------------------------------ [2002-09-12 16:15:34] [EMAIL PROTECTED] I'd like to see this fixed for 4.3.0. Right now the simple answer is to remove PREAD (again). ------------------------------------------------------------------------ [2002-09-12 16:06:39] [EMAIL PROTECTED] Assigning to sascha as he was busy with it. Derick ------------------------------------------------------------------------ [2002-09-12 16:03:22] [EMAIL PROTECTED] http://snaps.php.net/php4-latest.tar.gz and the cvs fails. Only if one change the php_config.h so HAVE_PREAD is #undef the session variables work. Regards, Søren, ------------------------------------------------------------------------ [2002-09-11 09:40:36] [EMAIL PROTECTED] Since confidence is high, I'm marking as closed. The PREAD check is still in effect yes, I didn't remove that. It would be nice if you could test the latest snapshot, as the PREAD was re-introduced, but with added protective measures. ------------------------------------------------------------------------ [2002-09-11 08:34:47] [EMAIL PROTECTED] Still the same problem with the snapshot php4-200209110300: [...] checking for pread... (cached) yes checking for pwrite... yes checking whether pwrite works... yes checking whether pread works... yes [...] I have not tried with PHP 4.2.3, but I have seen that, for version 4.2.3, the code that I commented out in 4.2.2 has been removed, hence I am rather confident that 4.2.3 is OK on Debian Woody PPC :-) ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/15983 -- Edit this bug report at http://bugs.php.net/?id=15983&edit=1