Req #38567 [Opn->Fbk]: file operations make loads of lstat64() calls and making code ineffective

From: Date: Fri, 20 Jan 2017 21:51:24 +0000
Subject: Req #38567 [Opn->Fbk]: file operations make loads of lstat64() calls and making code ineffective
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-206803@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=38567&edit=1

 ID:                 38567
 Updated by:         heiglandreas@php.net
 Reported by:        glen at delfi dot ee
 Summary:            file operations make loads of lstat64() calls and
                     making code ineffective
-Status:             Open
+Status:             Feedback
 Type:               Feature/Change Request
-Package:            Feature/Change Request
+Package:            *General Issues
 Operating System:   PLD Linux
 PHP Version:        5.1.5
 Block user comment: N
 Private report:     N

 New Comment:

Is this still relevant?


Previous Comments:
------------------------------------------------------------------------
[2006-08-23 16:15:47] glen at delfi dot ee

no changes. tried php5.2-200608231430

------------------------------------------------------------------------
[2006-08-23 15:27:19] tony2001@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip



------------------------------------------------------------------------
[2006-08-23 15:03:20] glen at delfi dot ee

Description:
------------
$ strace php -r 'for ($i=0;$i<5;$i++) 
{$fp=fopen("/home/glen/tmp/php/long/test/dir/is/here/$i","w");fclose($fp);}'

2>&1 |grep /home

this will call lstat64() each time on:
/home
/home/glen
/home/glen/tmp
/home/glen/tmp/php
/home/glen/tmp/php/long
/home/glen/tmp/php/long/test
/home/glen/tmp/php/long/test/dir
/home/glen/tmp/php/long/test/dir/is
/home/glen/tmp/php/long/test/dir/is/here

while it should either don't do them at all or at least 
cache the paths that haven't been altered (i only write to 
last dir)



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=38567&edit=1


Thread (14 messages)

« previous php.bugs (#206803) next »