-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
require_once(geshi.php) in svnlook.php #199
Comments
I consider the issue as invalid because it is only happens when you enable Geshi highlighting, don't use composer, but are expected to manually drop geshi or use pear to install it. Can you double check that Geshi highlighting is enabled, but Geshi not installed? |
This PHP warning was last thrown 2 months ago, and currently I have My include/config.php contains:
I have one question and one improvement suggestion: Question: As I commented in my config file, is Improvement suggestion: Instead of throwing the PHP error |
I believe that the call is not required. We expect that geshi through pear is on the default include path. Check it with
I am against silently disabled it, then the admin will not know about this issue. As for the warning, I am a bit split because I expect that it is installed by php means. Otherwise we'd need to do these catches for all optional components which we don't. |
For my environment (installed via Debian package) geshi.php is in |
I see, this makes it quite unportable und need to explicitly reference that. Have you considered using composer? We have removed geshi from WebSVN because there is pear and composer. |
Ideas:
In regards a warning: The problem is that an user installing WebSVN might not notice that Geshi is not installed, because they might not look in a source file. |
I have not considered composer. I think it is good to use the Debian package, because it is automatically updated with aptitude |
I double checked: #153 (comment). Geshi form pear is too old, it does not work with PHP 8. Either manual or composer. |
We have dropped some code years ago: Have you considered to add this to |
Have you also considered to modify your |
I have now changed my php.ini file to:
The downside of the include_path setting is that you cannot extend it. So you need to repeat the value it had previously (in my case the previous setting was I still think it would be nice if there would be a config setting that lets the user choose a path to a custom geshi installation. How about an optional argument to useGeshi?
|
I agree, but that is a PHP problem we cannot solve and the change happens only once.
Did you try a hack? How does Geshi find its other files using require/include? |
What do you mean with hack? |
Hack the code locally to see you fully qualified path loading works without changing php.ini. |
Ok, I removed the include_path (and verified that it fails then), and then altered include/svnlook.inc.php to change the two Geshi achieves this by using |
Very good! I think we can reuse the semantics in |
Would it also be possible to do this for Parsedown.php? I just noticed this feature, and I am using the Debian package Thank you very much |
Technically, yes, but I consider this feature partially broken, please see: #174 Do you want to work on a PR for Geshi first? |
I hit this same problem setting up websvn in php:8.2-apache docker container. https://websvnphp.github.io/docs/install.html
I'll figure it out, now that I know it was actually removed. |
I never have read this documentation. I think large parts of it needs to be extended or replaced.
because I rather just install |
I had to switch to enscript because I couldn't find any packages available for geshi. php-pear is blocked in the official php docker image so I couldn't use the above steps either. |
That is actually a conceptual flaw of your distro, IMHO. Here on FreeBSD, I install the channel and the pear-packages by |
Have you tried composer? It works for me. |
The following problem has been found in my PHP error log
include/svnlook.php
(I will try to find an instance in my access.log)
The text was updated successfully, but these errors were encountered: