Bug #52312 [Fbk]: PHP lstat problem
| From: | rasmus@php.net | Date: | Mon, 12 Jul 2010 22:33:15 +0000 |
| Subject: | Bug #52312 [Fbk]: PHP lstat problem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-152334@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52312&edit=1
ID: 52312
Updated by: rasmus@php.net
Reported by: v dot damore at gmail dot com
Summary: PHP lstat problem
Status: Feedback
Type: Bug
Package: Safe Mode/open_basedir
Operating System: Linux
PHP Version: 5.2.13
New Comment:
Actually, try this simple test.php script:
<pre>
<?php
var_dump(realpath_cache_get());
?>
</pre>
That should tell you what is getting cached.
Previous Comments:
------------------------------------------------------------------------
[2010-07-13 00:17:16] rasmus@php.net
It seems like your realpath cache isn't working at all.
Could you set a breakpoint on realpath_cache_find and step into it the
second time
it hits those stat calls. Does it go into the while(bucket) loop there
at all?
------------------------------------------------------------------------
[2010-07-12 23:48:10] v dot damore at gmail dot com
gdb reproduce the behavior reported in my comments, I have uploaded
result of your request at
http://damore.xoom.it/apache-2.2_php-5.3.2_break-lstat.txt
------------------------------------------------------------------------
[2010-07-12 19:09:00] rasmus@php.net
5.3. I haven't looked at 5.2 in 2+ years.
------------------------------------------------------------------------
[2010-07-12 19:07:06] v dot damore at gmail dot com
where I have attach gdb, on 5.2.13 or on 5.3.2 ?
------------------------------------------------------------------------
[2010-07-12 19:00:40] rasmus@php.net
I don't see that here. Attach gdb and set a breakpoint on lstat and see
who is
calling them.
------------------------------------------------------------------------
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/bug.php?id=52312
--
Edit this bug report at http://bugs.php.net/bug.php?id=52312&edit=1