php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43946 open_basedir tremendously degraded performance on FreeBSD
Submitted: 2008-01-27 22:26 UTC Modified: 2008-01-29 21:22 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: hugo at barafranca dot com Assigned:
Status: Not a bug Package: Safe Mode/open_basedir
PHP Version: 5.2.5 OS: FreeBSD 7.0-RC1 amd64
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hugo at barafranca dot com
New email:
PHP Version: OS:

 

 [2008-01-27 22:26 UTC] hugo at barafranca dot com
Description:
------------
Reference: http://lists.freebsd.org/pipermail/freebsd-performance/2008-January/003096.html

The difference: http://www.barafranca.com/open_basedir.png (when open_basedir was disabled is obvious)



Reproduce code:
---------------
-

Expected result:
----------------
-

Actual result:
--------------
-

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-01-28 00:12 UTC] johannes@php.net
The realpath() function is quite slow with FreeBSD's libc implememntation, but we need to get the real name (without symlinks and similar stuff) of a file name to be opened for doing the open_basedir check. Nothing we can easily fix but we are awae of the problem and are  open for good patches. The best advise i can give you is to try to reduce the amount of include/require[_once] calls. 
 [2008-01-29 21:22 UTC] rasmus@php.net
Try increasing the size of the realpath cache.

eg.

realpath_cache_size=128k

in your .ini and see if that helps.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 14 08:01:27 2024 UTC