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

From: Date: Tue, 30 Jul 2002 16:02:28 +0000
Subject: #18623 [Fbk->Ver]: touch, fopen, fwrite don't work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15602@lists.php.net to get a copy of this message
ID: 18623 Updated by: nohn@php.net Reported By: nohn@php.net -Status: Feedback +Status: Verified Bug Type: Filesystem function related Operating System: Compaq Tru64/Alpha PHP Version: 4CVS-2002-07-29 New Comment: changed this to be verfied by msopacua@idg.nl Previous Comments: ------------------------------------------------------------------------ [2002-07-30 08:03:35] msopacua@idg.nl reproduced on AIX 4.3.3. Relevant compiler warnings: /data/mdev/_src/php-HEAD/ext/standard/filestat.c: In function `php_stat': /data/mdev/_src/php-HEAD/ext/standard/filestat.c:560: warning: passing arg 1 of `php_check_open_basedir' discar ds qualifiers from pointer target type /home/thies/devel/php4/ext/standard/url_scanner_ex.re: In function `php_url_scanner_output_handler': /home/thies/devel/php4/ext/standard/url_scanner_ex.re:392: warning: passing arg 3 of `url_adapt_ext' from incom patible pointer type /data/mdev/_src/php-HEAD/sapi/cgi/cgi_main.c: In function `main': /data/mdev/_src/php-HEAD/sapi/cgi/cgi_main.c:603: warning: passing arg 2 of `cfg_get_long' from incompatible po inter type Since 'man' means installing X and a whole lot of other stuff on AIX I don't have them available, but will get back with some links from the IBM docserver, later today. ------------------------------------------------------------------------ [2002-07-30 04:32:12] nohn@php.net When copying filestat.c like you described, everything works fine. PHP compiles as expected (well there are some warnings, but it runs at least). The file-functions work too. strip_slashes from my bug-testing-script still failes ( http://nohn.net/lalafarm/php4-test.zip ) When starting PHP it still gives some strange errors: > ~/php4-200207292100_install/bin/php Unaligned access pid=20430 <php> va=0x14006387c pc=0x1201b2870 ra=0x1201b2864 inst=0xb4010000 Like described in Bugs #18558 #16360 #17449 ------------------------------------------------------------------------ [2002-07-30 04:17:42] nohn@php.net First the compiler warnings: http://www.phpcrawler.de/news/newsdetail.php?id=33 (im going to put that in a "real" file this afternoon, but from here, I can't use FTP to put it on server that is accessable for everyone) ------------------------------------------------------------------------ [2002-07-29 18:37:02] mfischer@php.net 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 ? ------------------------------------------------------------------------ [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 (#15602) next »