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

From: Date: Tue, 30 Jul 2002 20:51:28 +0000
Subject: #18623 [Ver]: touch, fopen, fwrite don't work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15624@lists.php.net to get a copy of this message
ID: 18623 Updated by: nohn@php.net Reported By: nohn@php.net Status: Verified Bug Type: Filesystem function related Operating System: Compaq Tru64/Alpha PHP Version: 4CVS-2002-07-29 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2002-07-30 14:52:41] kalowsky@php.net can you test the patch that stef@php.net just sent to PHP-Dev and see if this solves the touch issues? ------------------------------------------------------------------------ [2002-07-30 13:43:29] nohn@php.net Now the Error-Log is at http://www.nohn.net/lalafarm/php4-test/error.log ------------------------------------------------------------------------ [2002-07-30 12:02:27] nohn@php.net changed this to be verfied by msopacua@idg.nl ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ 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/18623 -- Edit this bug report at http://bugs.php.net/?id=18623&edit=1

« previous php.bugs (#15624) next »