|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-02-24 13:36 UTC] pgod@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Fri Feb 06 01:00:01 2026 UTC |
Description: ------------ I just switched linux kernels from 2.4.10 to 2.4.25, and now a script like this: <?php $fp = fopen("./test.txt", "w"); fputs($fp, "lalala"); fclose($fp); ?> tells me: Warning: fopen(./test.txt): failed to open stream: Invalid argument in /var/wwwroot/test.php on line 3 Warning: fputs(): supplied argument is not a valid stream resource in /var/wwwroot/test.php on line 4 Warning: fclose(): supplied argument is not a valid stream resource in /var/wwwroot/test.php on line 5 I then switched from PHP 4.3.1 to 4.3.4, with the same result. Apache ist 1.3.27. Ran smooth since month. Apache process runs as user "wwwadmin", creating the file via commandline with "touch ./test.txt" works. Safe mode definitifely not enabled. No error messages in Apache error log or system logs. When I create the file on the command line, the error does not occur and fopen() works as expected. When I boot with Linux kernel 2.4.10, the error does not occur.