#19354 [Com]: utime (fopen) error in safe mode
| From: | tamas at mile dot hu | Date: | Tue, 08 Oct 2002 07:04:29 +0000 |
| Subject: | #19354 [Com]: utime (fopen) error in safe mode | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-21787@lists.php.net to get a copy of this message | ||
ID: 19354
Comment by: tamas@mile.hu
Reported By: tamas@mile.hu
Status: Feedback
Bug Type: Filesystem function related
Operating System: Linux Slackware 8
PHP Version: 4.2.3, 4.3.0-dev
New Comment:
This developer version seems fine.
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2002-10-07 21:55:19] iliaa@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
------------------------------------------------------------------------
[2002-09-16 15:53:03] tamas@mile.hu
After a little localization i've found the message is coming from this
section:
ret = VCWD_UTIME(Z_STRVAL_PP(filename), newtime);
if (ret == -1) {
php_error(E_WARNING, "utime failed (debug 1): %s",
strerror(errno)$
RETURN_FALSE;
}
RETURN_TRUE;
So the bug is in the VCWD_UTIME(Z_STRVAL_PP(filename), newtime);
function.
------------------------------------------------------------------------
[2002-09-16 15:40:36] tamas@mile.hu
Warning: utime failed: Operation not permitted in
/home/www.akcio7.hu/botmenu.php on line 117
"
It hasn't changed the problem in the 4.2.3 the message is same
"Warning: utime failed: Operation not permitted in x.php on line 6
"
In one thing you are right I switched off the safe_mode for a minute
and the error is the same.
------------------------------------------------------------------------
[2002-09-13 12:50:07] sesser@php.net
I am quite sure that this bug has nothing todo with SAFE_MODE. Could
you please search for
newtime->modtime = newtime->actime = time(NULL);
in ext/standard/filestat.c (must be withing
touch() function)
and then comment this line out and recompile...
It it very likely that this line causes your utime problem.
------------------------------------------------------------------------
[2002-09-13 12:20:04] sniper@php.net
Updated version information.
------------------------------------------------------------------------
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/19354
--
Edit this bug report at http://bugs.php.net/?id=19354&edit=1