|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2002-07-29 10:17 UTC] nohn@php.net
   touch("reports/test.txt");
  $fp = fopen("reports/test.txt","w");
  fwrite($fp, $wddx);
  fclose($fp);
Fails on Compaq Tru64/Alpha:
Warning: Unable to access reports/test.txt in test.php on line 76
Warning: Unable to access reports/test.txt in test.php on line 77
Warning: fopen("reports/test.txt ") - No such file or directory in test.php on line 77
Warning: fwrite(): supplied argument is not a valid File-Handle resource in test.php on line 78
Warning: fclose(): supplied argument is not a valid File-Handle resource in test.php on line 79
Works fine with PHP 4.2.0 on the same machine.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 02:00:02 2025 UTC | 
I think, you meant this one (it's from sfox@php.net, not stef@php.net): --- old_filestat.c 2002-07-28 23:35:50.000000000 +0000 +++ filestat.c 2002-07-30 17:16:48.000000000 +0000 @@ -481,9 +481,7 @@ newtime = &newtimebuf; if (ac == 1 && zend_get_parameters_ex(1, &filename) != FAILURE) { -#ifndef HAVE_UTIME_NULL newtime->modtime = newtime->actime = time(NULL); -#endif } else if (ac == 2 && zend_get_parameters_ex(2, &filename, &filetime) != FAILURE) { convert_to_long_ex(filetime); newtime->actime = time(NULL); ---- and yes... It works fine. Tested with php4-200207301200 tested on Compaq Testdrive machine (a little bit slow, but it does what it should do). Full report here: http://www.nohn.net/lalafarm/php4-test-reports/4.3.0-dev-1028061991.xml