#18623 [Opn->Fbk]: touch, fopen, fwrite don't work

From: Date: Mon, 29 Jul 2002 22:37:03 +0000
Subject: #18623 [Opn->Fbk]: touch, fopen, fwrite don't work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15527@lists.php.net to get a copy of this message
ID: 18623 Updated by: mfischer@php.net Reported By: nohn@php.net -Status: Open +Status: Feedback Bug Type: Filesystem function related Operating System: Compaq Tru64/Alpha PHP Version: 4CVS-2002-07-29 New Comment: Does it work if you simply copy ext/standard/filestat.c from 4.2.0 over current CVS ? There has been only a little modification which at a brief glance shouldn't do anything bad .. but you never know. For CVS with it's original filestat.c, do you get any compiler warnings about pointer mismatch ? Previous Comments: ------------------------------------------------------------------------ [2002-07-29 10:17:49] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18623&edit=1

« previous php.bugs (#15527) next »