|  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
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
 [2008-01-27 22:26 UTC] hugo at barafranca dot com

The difference: (when open_basedir was disabled is obvious)

Reproduce code:

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-01-28 00:12 UTC]
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]
Try increasing the size of the realpath cache.



in your .ini and see if that helps.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Jan 21 09:01:23 2021 UTC